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

Nuttx port question on SVC handler

Hi Nordic,

I'm porting hrs application on nuttx OS. But when I call sd_softdevice_enable function, it goes to "RESET". I read below article which mentions that SVC handler is in soft device, but my coworker said that we have to implement our SVC handler on nuttx OS by ourselves. So I'm very confused. When sd_softdevice_enable gets called, it'll go to SVC assembly code which specify the SVC number. Then what else will the application do? Or will it just pass to SVC handler in Softdevice?

devzone.nordicsemi.com/.../Introduction_to_the_S110_SoftDevice_v1.0.pdf

Thanks, Mich

Parents
  • Thanks for your answer. How do I know that the SVCcall in the application actually call SVC handler in softdevice handler?
    I have SVC handler at my application and I do see it goes to SVC handler at my application. I'm not sure if it goes to SVC handler in softdevice first or directly go to SVC handler at my application. BTW, I get a an error code 0x200055C0 when calling sd_softdevice_enable(). It looks like an address... Please help!

    Mich

  • Well it most probably is bad memory ranges in LD file because that's #1 reason of #1 problem asked on this forum. I would suggest to go back to the posts I've linked above and follow suggestions there (also following SDK examples typically leads to success). I'm not able to spend time on recompiling your project and finding out where is exactly the problem, sorry.

Reply
  • Well it most probably is bad memory ranges in LD file because that's #1 reason of #1 problem asked on this forum. I would suggest to go back to the posts I've linked above and follow suggestions there (also following SDK examples typically leads to success). I'm not able to spend time on recompiling your project and finding out where is exactly the problem, sorry.

Children
No Data
Related