How to make code size less than 64KB

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Ryon
Offline
Last seen: 17 hours 22 min ago
Joined: 2019-06-26 08:04
How to make code size less than 64KB

 

hello,
When I compiled the demo of ble_peripheral,the Eclipse to show me the code size as follows:

   text       data        bss        dec        hex    filename
  82408         96      24552     107056      1a230    ble_peripheral.elf

As far as I know ,the ‘text’ is what ends up typically in FLASH and has code and constant data.So the code size is 80KB( 82408 = 80.47KB)

But the OTP of DA14683 is only 64KB( 64KB < 80KB).

If I want to burn the code to the OTP of DA14683, can you do anything to compress this code size to less than 64KB?

Device: 
PM_Dialog
Offline
Last seen: 9 months 1 day ago
Staff
Joined: 2018-02-08 11:03
Hi Ryon,

Hi Ryon,

The OTP in DA14683 is not used for burning the application code. Also, as you mentioned the binary images are sometimes bigger than the OTP size. OTP can be used for the secure boot that DA1463 supports. To do so, if you have a final product and you would like it to make is secured, I would suggest you to read the DA14682/DA14683 Secure Boot Tutorial tutorial.

Thanks, PM_Dialog

Ryon
Offline
Last seen: 17 hours 22 min ago
Joined: 2019-06-26 08:04
thank you for your reply

thank you for your reply

you say"The OTP in DA14683 is not used for burning the application code"

According to datasheet,the DA14683 has no flash memory ,so when it has no external flash memory,then where is the binary images burned?

PM_Dialog
Offline
Last seen: 9 months 1 day ago
Staff
Joined: 2018-02-08 11:03
Hi Ryon,

Hi Ryon,

As mentioned, burning the FW in OTP and booting from there is not supported as the OTP is used for the configurations Scripts and for the Secure boot. Yes, DA14683 does not include an embedded QSPI flash. In case you don’t have an external QSPI Flash, you can build the project for RAM configuration and booting from there. But, the can run it only in debug mode so the debugger should be attached in order to download fw. If don’t like to have an external QSPI Flash, you can move into DA14682 which contains 8Mbit QSPI Flash.

Thanks, PM_Dialog