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

SDK 12.1.0 Example don"t work

Hi,

I want to update the DFU with application nRF Connect (Bluetooth) for beginning I want to try with nRF Example in example/dfu/bootloader_secure. The file secure_dfu_secure_dfu_ble_s130_pca10028_debug.hex in pca10028_debug work when I drag and drop but when I want to build armgcc I have three erros :

  • Cannot find include folder: ../../config/secure_dfu_secure_dfu_ble_s130_pca10028_debug
  • Cannot find include folder: ../../config
  • Cannot find include folder: ../../../../../components/libraries/bootloader/ble_dfu/includes

But I still have a new folder _build and a file .hex in this folder.

I don't know if I do something bad or if I need to add something.

Someone can help me ?

Thank You,

Téo Dhien-Fane

  • Did you find this somewhere in the SDK? The hex file contains an application and the softdevice. 

    If you are trying to upload the ble_app_blinky application for the pca10028, you should compile the project and use the .hex file generated when you compile.

    Depending on what IDE you are using, it is located a bit differently, but if you compile using armgcc, then it should generate a folder named _build, and then put a .hex file in that folder. If you are using keil, it will also generate a _build folder in the same way.

    I compiled the unmodified ble_app_blinky using armgcc, and it generated this hex file:

    4532.nrf51422_xxac.hex

    Try to generate your DFU image using that.

    That explains why there wasn't any room. The .hex file that you used also contained a softdevice, so it was a lot larger than only the application. This is a representation of the flash used in the .hex file that you sent:

    The orange and blue represents the softdevice, and the green is the application. The application is 8600 bytes, while the softdevice is 108448 bytes (more than 10 times as large as the application).

    So try the attached file, or compile your own version.

    Best regards,

    Edvin

  • Thank you for you answer.

    I understand I do a mistake because I send application + SoftDevice and the size is too bigger.

    Now all is good I send just the .hex without softdevice and all is good.

Related