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

Warning when compiling task_manager

Hello Dear Developers!

I have a warning when I compile Task Manager

The warning is generated at this code in cmsis_gcc.h file:

__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
{
  __ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp");
}

Despite this my program with Task Manager works fine. But could you tell me if this could lead to potential problems?


Environment:

  • NRF5 SDK 16.0.0
  • SES 5.32
  • nrf52832
Parents
  • Hi,

    I do not see how this should cause problems, so it should be safe to ignore it. That said, the __set_PSP implementation has changed in the CMSIS that is part of SDK 17, so that should be good. Also note that you may see some compatibility issues when using a different Segger Embedded Studio version than what the SDK was tested with (though usually not anything major), and SDK was tested with SES 4.18.

Reply
  • Hi,

    I do not see how this should cause problems, so it should be safe to ignore it. That said, the __set_PSP implementation has changed in the CMSIS that is part of SDK 17, so that should be good. Also note that you may see some compatibility issues when using a different Segger Embedded Studio version than what the SDK was tested with (though usually not anything major), and SDK was tested with SES 4.18.

Children
Related