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

  • In a nutshell if you are using Nordic Soft Device and you want to use SVC software interrupts inside your application you still have range of 16 values for your custom definitions. All the rest should be used according to SD API definition and end up in SoftDevice SVC handler.

Reply Children
No Data
Related