This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Hardfault when jumping to relocated library code - FreeRTOS

We are working on a project using the nrf52832 (SoftDevice s332 v0.9.1alpha, nRF5 SDK 11.0.0) in which we build a library as a hex file and and load it into a known flash location separately from when/where we load our main application. The application then uses a header file with definitions of the library function addresses in order to access the library. The library makes use of the ANT.

We have had no problem doing this in Keil with no RTOS. Now we are trying to get a project working in IAR using FreeRTOS. We are experiencing hardfaults when we try to call functions from that hex library from within FreeRTOS tasks.

Do you know if there would be any reason FreeRTOS would not allow jumping into a library as described?

Thank you,

Tom

Related