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

Bootloader hangs after sending filesize

I have a problem with the new SDK11 Bootloader. With SDK 0.9.2. everything worked fine, but with SDK11 not. The strangest thing is that if i use the precompiled hex file in /dfu/bootloader/hex it works. Compiling the program without any change it did not work. What i'm doing is connecting to the bootloader and sending 0x0104 (Start DFU) ,Till now no problem. Next step is sending the filesize of the new Application. After that the bootloader hangs. Debugging the bootloader shows that i goes to start_data_process() in dfu_transport_ble.c. This function starts with:

  uint32_t err_code;

    dfu_start_packet_t  start_packet  = {.dfu_update_mode = m_update_mode};
    dfu_update_packet_t update_packet =
    {
        .packet_type         = START_PACKET,
        .params.start_packet = &start_packet
    };

After that he s gone. If i stop, Dissassembly shows SEV all the time.

Please can you help me? What is the difference between the precompiled and the source-files?

Related