Part Number: CC2640R2F
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, CC2640, BLE-STACK,
Hello,
we have to use the 8KB of cache as GPRAM in order to use more heap space.
Using this guide on chapter "Using the Cache as RAM"
http://software-dl.ti.com/lprf/simplelink_cc2640r2_sdk/1.30.00.25/exports/docs/blestack/ble_sw_dev_guide/html/cc2640/platform.html#using-the-cache-as-ram
we compiled the SimplePeripheral example but, running the example in debug, it doesn't break on main. Suspending the debug (ALT-F8) we see firmware stoppend at address 10001cb6 in an infinite loop.
Next the detail of the IDE and HW configuration :
CCS: version 8.0.0.00016
SDK: simplelink_cc2640r2_sdk_1_50_00_58
Compiler: v16.9.6 LTS
XDCTools: 3.50.3.33
Project: C:\ti\simplelink_cc2640r2_sdk_1_50_00_58\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral
Board: LAUNCHXL-CC2640R2
Here the disassembly of the loop:
10001ca2: F0404000 orr r0, r0, #0x80000000
10001ca6: F0404000 orr r0, r0, #0x80000000
10001caa: 6260 str r0, [r4, #0x24]
10001cac: F7FFFA0E bl #0x100010cc
10001cb0: F7FFF9C5 bl #0x1000103e
10001cb4: E7FE b #0x10001cb4
10001cb6: E7FE b #0x10001cb6
10001cb8: E7FE b #0x10001cb8
10001cba: 4908 ldr r1, [pc, #0x20]
10001cbc: 2001 movs r0, #1
10001cbe: 60C8 str r0, [r1, #0xc]
10001cc0: 4770 bx lr
Do you have any note to solve this problem ?
Thank you in advance