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

Using MbedOS 6 with Nordic SDK 17

Hi guys,

I am a long term Nordic user since SDK12 and i know that Nordic does not support MbedOS by any means but maybe you could help me try and understand what needs to be done to make such an effort.

I use NRF52840.

FLASHING THE APP

So looking at the https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory i need to put my application after the SoftDevice in my case this at 0x00027000.

So at this point the mbed app should start and work without any problem with SoftDevice in place waiting to be enabled.

ENABLING AND USING THE SOFTDEVICE

Next i would have to use https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_softdevice_handler.html?cp=7_1_3_48  for propagating SoftDevice events to the application.

For now i would want to be able to use the BLE stack.

RESOLVING CONFLICTS

So there would probably be some priority issues who uses what, who should and who should not.

Does this make any sense?

Any help, tips or info would be appreciated.

Parents
  • Hi Schef,

    Does this make any sense?

    All of your understanding and description is correct, I am not sure if MbedOS can be tuned not to use the priorities and peripherals reserved by softdevice. If they can be, then what you do should be implementable.

    Please look at the FreeRTOS port in our SDK\external\freertos\portable\ register to see what modifications we had to make for the FreeRTOS port to make it work along with our softdevice. You probably would have to do something similar with MbedOS

Reply
  • Hi Schef,

    Does this make any sense?

    All of your understanding and description is correct, I am not sure if MbedOS can be tuned not to use the priorities and peripherals reserved by softdevice. If they can be, then what you do should be implementable.

    Please look at the FreeRTOS port in our SDK\external\freertos\portable\ register to see what modifications we had to make for the FreeRTOS port to make it work along with our softdevice. You probably would have to do something similar with MbedOS

Children
Related