..\..\Middlewares\FreeRTOS\portable\RVDS\ARM_CM3\port.c(407): error: A1586E: Bad operand types (UnDefOT, Constant) for operator (
时间: 2023-09-01 16:14:10 浏览: 159
这个错误是由于在port.c文件的第407行使用了错误的操作数类型(UnDefOT, Constant)导致的。根据引用中提到的错误信息,最后发现是main.h中的#include "stm32f1xx_hal.h"的问题。根据引用中提供的解决方法,问题可能出现在中断中使用了不正确的函数。应该将xTimerReset替换为xTimerResetFromISR。此外,引用中提到的问题可能是由于中断优先级的设置不正确导致的。需要检查FreeRTOSConfig.h文件中配置的宏configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY,确保串口中断的优先级低于该宏定义的优先级。如果不是,则需要进行修改。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [STM32CubeMX的main.h文件生成脚本](https://download.csdn.net/download/mickey35/10120997)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [FreeRTOS学习遇到的问题:Error:..\..\FreeRTOS\portable\RVDS\ARM_CM3\port.c,374](https://blog.csdn.net/qq_51643989/article/details/130493989)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Error:..\FreeRTOS\portable\RVDS\ARM_CM3\port.c](https://blog.csdn.net/qq_37459242/article/details/122773520)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文