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

Softdevice S140 source code

Hi,

Where can i get softdevices140 source code.

Sudhir

Parents Reply Children
  • Sudhir Foujadar said:
    Can you let me know how is the execution happening for softdevice when the code is running in main function. how does the softdevice hex file executed. 

     This is covered in the SoftDevice Specification(SDS). See this link: https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html

    Sudhir Foujadar said:
    Since i am trying to debug the code for ble but after the breakpoint is hit, then the code runs to app fault error whereas the without breakpoint it runs smoothly. Why is this happning.??

     When you are debugging with the SoftDevice, and you are advertising/scanning/in a BLE connection, and you hit a breakpoint, the CPU will be halted, and the radio will therefore not be able to transmit the necessary BLE packets at correct time. When the SoftDevice detects that it was not able to transmit the packets at the correct time, due to e.g. breakpoints, the SoftDevice will assert. The BLE protocol have timing requirements, and when they are not meet the SoftDevice will assert.

Related