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

How do I add DFU transports to SES (Segger Embedded Studio)?

I am working with SDK12.2.0. I see that transports seem to be registered as section variables with the identifier dfu_trans

I have added a section definition in flash to satisfy a linker error:

<ProgramSection alignment="4" load="Yes" name=".dfu_trans" address_symbol="__start_dfu_trans" end_symbol="__stop_dfu_trans" />

The section has a size of 0. Presumably because it is located in the Discarded input sections of the .map file. It is referenced(? created?) by nrf_ble_dfu.o

While the .map file realizes there is 0x8 bytes worth of data present, I am guessing it discards them as unused because they are only indirectly referenced from nrf_dfu_transport.c.

How do I coerce the linker into keeping this section? I tried adding keep="Yes" to the section placement file -- that results in some errors. The SDK code already adds __attribute((used))

Parents Reply Children
No Data
Related