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

restricted functionalities in ISR context

Hi,

I've noticed that the following s110 API work in my application, when called from the main context, but fail when called from an ISR context (button press interrupt or system event) :

  • pstorage_clear()
  • pstorage_store()
  • bootloader_app_start()

Any suggestions as for what I may be missing ?

Parents
  • what does 'fail' mean? They give error codes, they don't run, the code goes into the error handler or hardfault handler?

    What's the interrupt priority of the ISR you're using? If it's higher priority than the SVC handler (which is level 2) then you'll hardfault because you can't call a SVC call from a higher priority handler. If you're using APP_HIGH, that's too high.

Reply
  • what does 'fail' mean? They give error codes, they don't run, the code goes into the error handler or hardfault handler?

    What's the interrupt priority of the ISR you're using? If it's higher priority than the SVC handler (which is level 2) then you'll hardfault because you can't call a SVC call from a higher priority handler. If you're using APP_HIGH, that's too high.

Children
Related