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

Not able to download program with GCC setup

FormerMember
FormerMember

Hi all, I have the exact issue mentioned here - github.com/.../9 I have updated my makefile to generate only one bin file from the Softdevice Hex file, but still I'm getting the ' Failed to download RAMCode!' Error. I'm using S110 v8.1.0 with the nrf51-DK PCA10028 on a Linux machine. Regards, Prithvi

Parents
  • The new Softdevice from v7.x doesn't need data to be written to UICR. So you don't have to program UICR binary if you simply want to flash application and softdevice. Just have to loadbin each of them. Mind the start address of the application.

    But if you want to flash bootloader, you would need to write to UICR. What you need to do is to open the bootloader hex file and copy the data at the end of the hex file where we write to address 0x10001014. Something like this:

    :020000041000EA
    :0410140000C0030015
    :040000050003C0C173
    :00000001FF
    

    And create a separate hex file, then you can convert it to bin and flash to UICR using loadbin filename.bin 0x10001014

Reply
  • The new Softdevice from v7.x doesn't need data to be written to UICR. So you don't have to program UICR binary if you simply want to flash application and softdevice. Just have to loadbin each of them. Mind the start address of the application.

    But if you want to flash bootloader, you would need to write to UICR. What you need to do is to open the bootloader hex file and copy the data at the end of the hex file where we write to address 0x10001014. Something like this:

    :020000041000EA
    :0410140000C0030015
    :040000050003C0C173
    :00000001FF
    

    And create a separate hex file, then you can convert it to bin and flash to UICR using loadbin filename.bin 0x10001014

Children
No Data
Related