Learn MoreFAQsTutorials

2 posts / 0 new
Last post
AnisM
Offline
Last seen:5 months 2 weeks ago
加入:2018-04-13 19:24
application code size

Hi,

what's the maximum code size for the DA14586 chip?

does it run the code from internal flash?

Thanks

Device:
PM_Dialog
Offline
Last seen:1 week 4 days ago
工作人员
加入:2018-02-08 11:03
Hi AnisM,

Hi AnisM,

Please take a look at the “Tutorial_How_to_change_the_RAM_size.pdf” documents and the DA14586 datasheet as well

https://support.dialog-semiconductor.com/system/files/resources/Tutorial_How_to_change_the_RAM_size.pdf

The following document describes the available booting procedure. It the same in DA14585/586:

//www.wsdof.com/sites/default/files/an-b-001_-_booting_from_serial_interfaces_v2.1.pdf

So, yes, DA14586 can boot from the internal flash but the fw will be copied into Sy-RAM and finally boot from there.

The block 4 in the RAM memory (32kB) which is from 0x07FD0000 to 0x07FDFFFF is used to store the ROM data. The ROM data contains the Bluetooth Stack and Boot ROM code. This size is calculated based on __SCT_BLE_BASE macro definition:

#define _SCT_BLE_BASE ((_SCT_OLD_BLE_BASE + __SCT_OFFSET_DIFF) & (0xFFFFC00)) : __SCT_OLD_BLE_BASE = 0x07FD4400

The total application size which is the maximum size that can be fitted in Block 4 and can be used by the customer for program execution is given by: User Application size = Size of Block 4 - HW IP and ROM Data

Thanks, PM_Dialog