Other Parts Discussed in Thread: CC2652R7,
Hi.
I am using simplelink_cc13x2_26x2_sdk_4_30_00_54 for developing BLE application.
I want to know about the size limitation of user application for developing on-chip OAD.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
The best way to answer this question is to look at the amount of flash used by the persistent app and all the flashed reserved by the BLE stack (to store bonding information for example). This information can be found in the .map file and will depend on the configuration of the project.
If the memory offered by the CC2642R device is too small, then you may want to look at our CC2652R7 devices.
Best regards,
Hi,
I'm beginner in TI BLE. so I'm sorry that I can't understand your recommend.
I compiled and make a .map file of simple_peripheral_oad_onchip_CC26X2R1_LAUNCHXL_tirtos_ccs project.
simple_peripheral_oad_onchip_CC26X2R1_LAUNCHXL_tirtos_ccs_Debug.txt
What should I interpret in attached .map file?
I only know used and unused memory size.
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH_IMG_HDR 00000000 00000090 0000008d 00000003 R X
ENTRY 00000090 00000040 0000003c 00000004 R X
FLASH 000000d0 000560d0 0001f638 00036a98 R X
RTOS_SRAM 20000000 0000012c 000000e4 00000048 RW X
SRAM 20000fdf 00013021 00003192 0000fe8f RW X
And I found the flash layout for BLE SDK user guide.
file:///C:/ti/simplelink_cc13x2_26x2_sdk_4_30_00_54/docs/ble5stack/ble_user_guide/html/oad-secure/flash-layout-on-chip-stack-library.html#
There are two applications and stack libraries in picture.
What is the available user application space?
I think that the space available to the user are the available user space, user application + stack library + user app interrupt vectors and user app OAD image header. Is it right?
How should I make persistent application?
please let me know.
Thanks.
Hi,
simple_peripheral_oad_onchip_CC26X2R1_LAUNCHXL_tirtos_ccs_Debug.txt
Here you have provided the map file of the OAD image. The size of this image is 0x1f638 (i.e. ~128kB)
Now, you need to look at the map file for the BIM and the persistent application:
- The BIM is 0x4bc (i.e. ~1kB) [note: the exact value may change with the SDK versions]
name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- FLASH_BIM 00056000 00001f54 000004bc 00001a98 R X FLASH_CERT 00057f54 0000004c 00000000 0000004c R X FLASH_FNPTR 00057fa0 00000004 00000000 00000004 R X FLASH_CCFG 00057fa8 00000058 00000058 00000000 R X SRAM 20000300 00013d00 00000100 00013c00 RW X
- My persistent app is 0x19884 (i.e. ~105kB) [note: the exact value will depend on your implementation]
So, in total, my BIM + persistent app will need 105 + 1 = 106kB of Flash.
Knowing the device has 0x56000 (352kB) of Flash available, it means 352 - 106 = 246kB are available for the OAD app. At the beginning, we said the OAD image takes 128kB, so we will have enough space.
Does it make more sense now?
I hope this will help,
Kind regards,