This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Downloading softdevice and application(using SDK) from Linux system to nrf51822 yunjia board.

hi , I am trying to download the softdevice(v8) and cross compiled application(using makefile in nrf51822 sdk v6) from my Linux PC using JLinkExe. following is the memory layout of my softdevice :

image description

following steps show how i downloaded the softdevice to nrf51822 using JLinkExe from my linux PC. image description

next I have to download the application which I compiled using the sdk and its makefile. but I don't know to which location I should load it to like I did for softdevice sec1,2 and sec3. Thank you in advance.

Parents
  • You can flash the softdevice directly using loadbin in JLinkExe:

    loadbin s110_nrf51_8.0.0_softdevice.hex 0x0  #flash in address location 0
    

    Since you are using softdevice 8 the application should be flashed to location 0x18000. This is documented in the softdevice specification: infocenter.nordicsemi.com/.../s110.html In section 11.2 "Memory resource map and usage" (APP_CODE_BASE)

    loadbin application.hex 0x18000  #flash in address location 0x18000
    

    Check out this thread to see how to make a script that erase and flash SD and app (this is for nRF52, so just change device to nrf51822 and app address to 0x18000)

Reply
  • You can flash the softdevice directly using loadbin in JLinkExe:

    loadbin s110_nrf51_8.0.0_softdevice.hex 0x0  #flash in address location 0
    

    Since you are using softdevice 8 the application should be flashed to location 0x18000. This is documented in the softdevice specification: infocenter.nordicsemi.com/.../s110.html In section 11.2 "Memory resource map and usage" (APP_CODE_BASE)

    loadbin application.hex 0x18000  #flash in address location 0x18000
    

    Check out this thread to see how to make a script that erase and flash SD and app (this is for nRF52, so just change device to nrf51822 and app address to 0x18000)

Children
Related