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

NRF52832 is stuck in DFU_Targ

Hello Team,

First of all thanks a lot.

I learned so many things from your Nordic devzone:)

My problem: I have uploaded the blinky code using pca10040_s132_ble [ secure_bootloader ] but after successfully uploadation  NRF52832  is stuck in DFU_Targ mode . 

I have used,

- NRF52832 dk

- SDK --> nRF5SDK160098a08e2

- Softdevice --> s132_nrf52_7.0.1_softdevice.hex

 - used micro-ecc library.

and I also  confused at some points, please  guide me,

1) NRF52832 has 512 kb of flash and pca10040_s132_ble [ secure_bootloader ] example takes 511.0KB of flash

    so if I add other applications code [SGTL5000 and 2 two ADC interface ] inside it then it is possible?

my app code size is 256KB

My end goal is, I want to add DFU service with my existing code [ interfaced SGTL500 sensor on I2C and 2 Adc ].

Here is the pca10040_s132_ble [ secure_bootloader ] example code zie.

 

here is my customized code size.

Thanks in advacne!

Parents
  • Hello,

    I see that the bootloader project in SES says that it uses 511kB, but it doesn't actually do that. It is just something that is not completely right in the configuration of the project or something.

    To see how large the bootloader actually is, you can use nRF Connect for Desktop, and drag the bootloader hex file into the programmer app, and it will show you the start address and the size of the bootloader.

    I used SDK17.0.2 and the ses project in the secure bootloader to test this:

    You can see that it claims to be 511 bytes, but when I plug the hex file found in Output\Release\Exe\secure_bootloader_ble_s132_pca10040.hex into nRF Connect for Desktop -> Programmer:

    You can see that the bootloader starts at address 0x78000. The size is a little bit bigger than 22198 bytes, because the black line above the red one also belongs to the bootloader. In fact, all flash above 0x78000 belongs to the bootloader, but that means that all flash below 0x78000 can be used for the softdevice and your application.

    Best regards,

    Edvin

Reply
  • Hello,

    I see that the bootloader project in SES says that it uses 511kB, but it doesn't actually do that. It is just something that is not completely right in the configuration of the project or something.

    To see how large the bootloader actually is, you can use nRF Connect for Desktop, and drag the bootloader hex file into the programmer app, and it will show you the start address and the size of the bootloader.

    I used SDK17.0.2 and the ses project in the secure bootloader to test this:

    You can see that it claims to be 511 bytes, but when I plug the hex file found in Output\Release\Exe\secure_bootloader_ble_s132_pca10040.hex into nRF Connect for Desktop -> Programmer:

    You can see that the bootloader starts at address 0x78000. The size is a little bit bigger than 22198 bytes, because the black line above the red one also belongs to the bootloader. In fact, all flash above 0x78000 belongs to the bootloader, but that means that all flash below 0x78000 can be used for the softdevice and your application.

    Best regards,

    Edvin

Children
Related