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

How to find Soft Device Code Number without nRFgo Studio?

Hello,

I develop entirely on Linux and I am unable to find the --sd-req / --sd-id required for generating a dfu package zip using nrfutil. I am using developing for the nRF52840 using s140_nrf52840_5.0.0-2.alpha_softdevice.hex.

I have seen others mentioned that you can use nRFgo Studio to find this value, but this is not an option for me. 

Using urfutil pkg generate --help does not provide any s140 versions.

Thanks!

Parents
  • Hi,

    The number you are looking for is what the SoftDevice calls "firmware_id" which is located in the 15th and 16th byte of the SoftDevice information structure:

    To get this number you can use any software capable of reading out the flash of the device. Flash the SoftDevice to a nRF52840 and read out the value at address 0x300C by using any software you prefer. I recommend using "nrfjprog" which is part of "nrf command line tools" as shown in this screenshot:

    For completeness, here is how you find the number in nRF Go Studio if it's of interest:

    Best regards,
    Rune Holmgren

Reply
  • Hi,

    The number you are looking for is what the SoftDevice calls "firmware_id" which is located in the 15th and 16th byte of the SoftDevice information structure:

    To get this number you can use any software capable of reading out the flash of the device. Flash the SoftDevice to a nRF52840 and read out the value at address 0x300C by using any software you prefer. I recommend using "nrfjprog" which is part of "nrf command line tools" as shown in this screenshot:

    For completeness, here is how you find the number in nRF Go Studio if it's of interest:

    Best regards,
    Rune Holmgren

Children
Related