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

example code that uses cortex M4F with FPU enabled on RTX

Been having a bit of trouble porting our nRF51 project to nRF52 SDK11. It seems to not like using hal_cm4.c from RTX_CM4.lib with FPU. Seems to get stuck on OS_Tick_Handler. However, when I replace it with RTX_CM3.lib and disable FPU, it seems to work.

Is there a reference example that also uses CORTEX_M4F define with FPU and RTX_CM4.lib? I can't seem to find any in SDK11, 12, 13. I just see blinky_rtx use RTX_CM3.lib. Or a guide on how to setup and configure nRF52 on Keil for RTX and Cortex_M4F with FPU enabled would be helpful.

What I have defined in compiler: __CORTEX_M4F RTX S132 __CMSIS_RTOS NRF52 BLE_STACK_SUPPORT_REQD

Parents Reply
  • Thanks for the link. I've actually seen that before and tried to match it, but no success. Should I be using the RTX_CM4.lib from SDK v11 or should I use the one from Keil pack? I tried to overwrite RTX_CM4.lib in the Keil installation dir with the one from the SDK. I also tried including the cm4.lib in my project itself. In nRF51, we were using HAL_CM0.c in our project. I noticed that in SDK, it doesn't package that file with it. But instead, it's there in Keil dir. Any other suggestions?

Children
No Data
Related