您好!
最近在使用CC3235芯片,基于OOB工程开发,需要在OOB里面新建两个线程,分配的空间大小分别为4096字节和2048字节。可是运行线程后,provisioningTask线程会卡死在sl_start(),请问这是怎么回事呢?是由于动态分配的内存超量了嘛?
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.
刚刚看了map文件,有段说明是这样的
MEMORY CONFIGURATION name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- SRAM2 20000000 00004000 00003f0c 000000f4 RW X SRAM 20004000 0003c000 0002fd55 0000c2ab RW X
空间分配给了线程堆栈
另外,flash的分配是看这个嘛?
SEGMENT ALLOCATION MAP run origin load origin length init length attrs members ---------- ----------- ---------- ----------- ----- ------- 20000400 20000400 00003c00 00000000 rw- 20000400 20000400 00003c00 00000000 rw- .stack 20004000 20004000 0001f20a 0001f20a r-x 20004000 20004000 00000040 00000040 r-- .resetVecs 20004040 20004040 0001f1ca 0001f1ca r-x .text 20023400 20023400 0000f3e0 00000000 rw- 20023400 20023400 0000db3d 00000000 rw- .bss 20030f40 20030f40 000018a0 00000000 rw- .data 200327e0 200327e0 00001688 00001688 r-- 200327e0 200327e0 00001366 00001366 r-- .const 20033b48 20033b48 00000320 00000320 r-- .cinit
试过了,就是单步运行发现会卡死在provisioningTask线程中的sl_start()中。