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

sdk12.3 embedded studio UNPLACED_SECTIONS nrf51dk

Hi,i have some problems when develop with experimental_ble_app_buttonless_dfu project in sdk12.3 on IDE embedded studio (MAC OS). I follow thislink text to develop.when build,it show me that Output/nrf51422_xxac/Exe/ble_app_buttonless_dfu_pca10028_s130.elf section 'bootloader_Settings'will not fit in region'UNPLACED_SECTIONS'. I do not how to deal with this error. When I develop with ble_app_hrs project in sdk12.3, it works well.

Parents Reply Children
  • I follow your suggestion and replace the flash_placement.xml in experimental_ble_app_buttonless_dfu project in sdk12.3 with the flash_placement.xml in ble_app_buttonless_dfu project in sdk14.1.After solve some build errors,build ,it shows me nrf51422_xxac/Obj/ble_app_buttonless_dfu_pca10028_s130.ld:27 syntax error.

  • I find this,by add <ProgramSection alignment="4" load="Yes" name=".bootloaderSettings" start="$(BOOTLOADER_SETTINGS_START:0x0003FC00)" size="$(BOOTLOADER_SETTINGS_SIZE:0x400)" /> in flash_placement.xml(the project auto generate). errors solved and project work well.

  • But there is other things i want to ask for help.my app project use experimental_ble_app_buttonless_dfu and works well after above.my bootloader project use bootloader_secure project,then build,it show me some errors in flash_placement.xml.i do not know how to deal with errors. The flash_placemnet.xml file auto generate.i do not how to generate flash_placemnet.xml in different project.I will post the error in next comment.(The app and bootloader project work well in keil windows)

  • To be honest, I did try to convert a bootloader project in SDK v12 and 13 to SES but gave up by some issue that I couldn't solve. If you don't plan to modify the bootloader a lot, my suggestion is to simply use make and gcc to compile it. It could save you a lot of time.

    Another option is similar to my original answer, you follow what we define and use in the bootloader project in SDK v14.1 and back port it to SDK v12.

    Regarding your issue, seems that you haven't defined _fs_data in flash_placement.xml and thumb_crt0.s as described here

Related