• Resolved

LAUNCHXL-CC1352R1: CC1352R1 Reduce BLE-Stack code size

Prodigy 190 points

Replies: 5

Views: 113

Part Number: LAUNCHXL-CC1352R1

I test "LAUNCHXL-CC1352R1 Rev. 0.4.0 FW: SDK 1.60RC1 1752"  (chip revision C)
with SDK simplelink_cc13x2_sdk_2_30_00_45.

After compile "simple_peripheral" project, I surprised that the firmware is very large (156kB) and calculated BLE stack in this firmware occupies ~102kB. 
I try to change 
-DFLASH_ONLY_BUILD
to
-DFLASH_ROM_BUILD and -DROM_BUILD

but project do not compile with many errors.

My question is:how to reduce stack code size or move them to ROM ?
What a symbols I can use ?

- FLASH_ONLY_BUILD:  Build full BLE stack in flash only memory.
 -FLASH_ROM_BUILD:   Build Flash portion of BLE stack to work with ROM code.
- ROM_BUILD:         Build ROM portion of BLE stack.
- COMMON_ROM_BUILD:  Build of common ROM code.

Thanks.