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

DFU issue with CustomBoard (Wireshark log included)

Hello,

DFU issue (FOTA application update fail)

I have a problem when performing Application update over the air , after i change my boot loader.

so when try FOTA ,After i entered the DFUTarg , and then choose the application , i get the warning as shown in picture attached. and will not transfer the application.

my custom board works fine with FOTA when i use a precompiled hex file that i found online www.dropbox.com/.../sd_boot.hex from the forum developer.mbed.org/.../

Since the precompiled boot loader hex is working fine , the problem is for sure in the boot loader hex file that am generating.

The CustomBoard is 16kb Ram , am using S110 V 7.1.0 ,

here is the code for my boot loader main.c

here is the wireshark log file [DFULog.pcapng] (/attachment/5bbd38f45b675202ced8267997e0741f)

wireshark screenshot MalinformedPacket.PNG

image description

Parents
  • Attached is the backported version of SDK 7.2 where I have removed all examples except dfu. I backported the gcc support from SDK 9 into SDK 7.2 for the S110 Dual Bank Bootloader example, i.e. added and modified some source /header files in the components folder and did some minor changes in dfu_ble_svc.c

    You should be able to just extract the file structure and run make in the armgcc folder, but you might have to alter the Makefile.windows in the components\toolchain folder to specify the path to the GNU Arm toolchain on your system.

    The Makefile is located in the armgcc folder

    nRF51_SDK_7.2.0_gcc\examples\dfu\bootloader\pca10028\dual_bank_ble_s110\armgcc

    Let me know if you run into any problems with the modified SDK.

    Attachments:

    nRF51_SDK_7.2.0_gcc.zip (fixed)

  • hi ,

    i configured the path. after make i got this error.

    nRF51_SDK_7.2.0_gcc/components/libraries/bootloader_dfu/dfu_transport_ble.c:18:20: fatal error: boards.h: No such file or directory #include "boards.h" ^ compilation terminated. make: *** [_build/dfu_transport_ble.o] Error 1

    i used the armgcc/dual_bank_ble_s110/makefile

Reply Children
No Data
Related