FreeRTOS hard fault when using Newlib

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FreeRTOS hard fault when using Newlib

443 次查看
chect1
Contributor III

Trying to get Segger RTT working and found I needed reentr.h, so I tried switching to newlib to solve that problem. Once I do, I get hard fault (Imprecise data bus) when I try and use the idle function in FreeRTOS

Project attached

Switching to Redlib works fine, newlib crashes

Seems to work ok if I turn the idle function off, although I haven't troubleshot it further

My goal is to get Segger RTT working on the CM4 core, which is proving much more difficult than anticipated. Are there any examples for this?

标记 (1)
0 项奖励
回复
1 回复

413 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @chect1,

Unfortunately we do not have any documentation or example of how to integrate Segger RTT with the RT1170's CM4 core. However, Erich Styger does have a post on how to properly integrate newlib (and newlib-nano) with FreeRTOS for our MCUs, so please look into that and let me know if it works for you: Using FreeRTOS with newlib and newlib-nano | MCU on Eclipse

BR,
Edwin.

0 项奖励
回复