FreeRTOS hard fault when using Newlib

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS hard fault when using Newlib

451 Views
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?

Tags (1)
0 Kudos
Reply
1 Reply

421 Views
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 Kudos
Reply