WCH沁恒单片机
直播中

楼斌

8年用户 863经验值
私信 关注
[问答]

CH32V307 FreeRTOS Hardfault的问题求解

I have ported the FreeRTOS Example to Linux Makefile. It builds, but it enters the HardFault handler on portDISABLE_INTERRUPTS(). Any ideas?

我已将 FreeRTOS 示例移植到 Linux Makefile。它构建,但它进入 portDISABLE_INTERRUPTS() 上的 HardFault 处理程序。有任何想法吗?

#define portDISABLE_INTERRUPTS()    __asm volatile( "csrw mstatus,%0" ::"r"(0x7800) )



  

回帖(1)

陈连香

2022-10-17 09:37:34
Found the issue, the FreeRTOS Example needs a different Startup File.


发现问题,FreeRTOS 示例需要不同的启动文件。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分