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

Bootloader SDK V7.2.0 with GCC

Hello,

i've already read a lot about this topic in this forum, but now I'm unable to continue on my own. I wan't to migrate the DFU SDK emaple from Keil to GCC. I already use the bootlader_util_gcc.c and define the required section in my linker scrip file. My problem is the dfu_ble_svc file.

  • How I have to adjust the SVC_Handler so it compiles with GCC?
  • What i have to do with the "attribute((section("NoInit"), zero_init));"?

Is there any bootlaoder example for GCC in SDK V7.2.0? Do I need to pay attention to something else when I use GCC?

  • I'm using Bootloader for S310
  • GCC V4.7.2013-q2
Parents
  • Hi, I was able to port the s110 bootloader to work with gcc, but without Experimental - Application with DFU Service support I.e., it doesn't work with the application to bootloader jump, so you need to be in bootloader mode to do DFU. The same approach should also work with s310 by changing the linker settings accordingly.

    The application DFU functionality requires porting of the dfu_ble_svc.c,bootloader_util_arm.c and bootloader_settings , which I was not able to complete.

    Note that the bootloader start address was reduced to 0x38000 to enable debugging. Thus, BOOTLOADER_REGION_START needs to be changed to 0x38000 in dfu_types.h as well.

    Attachments: gcc_nrf51_bootloader_xxac.ld, makefile and dfu_ble_svc.c

  • Is there a definitive example based on the 7.2 SDK that demonstrates how to compile the bootloader for the S310 using gcc? I have an existing working bootloader modified from the SDK 6.0, but it does not have support for DFU of the SoftDevice or Bootloader and I need to add this. I have integrated your changes here into my codebase + 7.2 SDK, but I'm afraid I have too many disjointed pieces and I'm not sure what the required key changes from SDK 6.x to 7.2 for DFU are in order to ensure support for DFU of SoftDevice and Bootloader? A definitive example or guide to the changes would be helpful. Thank you!

Reply
  • Is there a definitive example based on the 7.2 SDK that demonstrates how to compile the bootloader for the S310 using gcc? I have an existing working bootloader modified from the SDK 6.0, but it does not have support for DFU of the SoftDevice or Bootloader and I need to add this. I have integrated your changes here into my codebase + 7.2 SDK, but I'm afraid I have too many disjointed pieces and I'm not sure what the required key changes from SDK 6.x to 7.2 for DFU are in order to ensure support for DFU of SoftDevice and Bootloader? A definitive example or guide to the changes would be helpful. Thank you!

Children
No Data
Related