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

  • This error looks strange, it's almost like you would speak about app_ram_base and not return value. Luckily problems with SD enabling are almost #1 on this forum so you can get hundreds of hints, just use search (e.g. this one has some useful code examples but you will get this when reading Soft Device migration guide...)

    To the SVC aka SuperVisor Calls: you can read more about that in chapters 4 and 7.4 of SoctDevice specification (I refer to the latest S132 SDS V4.1)... (1/2)

Reply Children
No Data
Related