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

NRF51822 Steps for Upload Bootloader,Softdevice,Application

  Hello Supporter,

I'm going to develop one BLE nrf51822 based custom device. in which i want to use BLE DFU.

i am able to load DFU and APPLICATION with  KEIL uvison 5.

and i am able to load softdevice using openocd

as i done.

first i upload DFU using KEIL

than upload button less DFU application using KEIL

than Softdevice using Openocd

after that run the device ..it's working and it's advertising Buttonless DFU service.

But the problem is when i try to upload it using DFU device doesn't do in DFU mode nor able to upload new application.

so please tell me steps and ROM(Flash) configuration if needed .

and also tell me if any mistake done by me.

and other methods .if available.

i uploaded two pics one for nrf51.config file used with opencd.....

one for DFU rom address..

to verify

when i tried to combine all three file it gives conflict error like this as below link

devzone.nordicsemi.com/.../s310v2-mergehex-bootloader-hex-bootloader_settings-hex-conflict

Thank You,.

Parents
  • Hi,

    The linker settings shown in you screen-dump is incorrect, the first section of flash is actually reserved for the softdevice (memory layout). Recommend that you get a clean copy of the SDK, and use the default bootloader example as reference.

  • i didn't change anything i used dfu bootloader example as it is and sent you screenshot of it's rom location..so tell me what ROM configuration i should do.and for what i mean bootloader, softdevice and application.and make change in softdevice because i have only hex file for it.

    when i upload flash using opencd like following

    flash write_image softdevice.hex 0

    than loaded ....than after i load application

    flash write_image application.hex 0

    also loaded than i give

    reset run

    after this command device running and advertising service...it's works fine

    but when after this i upload dfu bootloader ..by keil uvision

    bootloader get uploaded but device stop to running and doesn;'t advertsing

    so what is the problem ..is dfu overwrite or something like that.

    i can't understand

Reply
  • i didn't change anything i used dfu bootloader example as it is and sent you screenshot of it's rom location..so tell me what ROM configuration i should do.and for what i mean bootloader, softdevice and application.and make change in softdevice because i have only hex file for it.

    when i upload flash using opencd like following

    flash write_image softdevice.hex 0

    than loaded ....than after i load application

    flash write_image application.hex 0

    also loaded than i give

    reset run

    after this command device running and advertising service...it's works fine

    but when after this i upload dfu bootloader ..by keil uvision

    bootloader get uploaded but device stop to running and doesn;'t advertsing

    so what is the problem ..is dfu overwrite or something like that.

    i can't understand

Children
Related