multi_role 打开bond mgr
各位大神:
我现在用的是CC2640的芯片,SDK是2.1.0,multi_role的工程。这个工程默认是把DGAP_BOND_MGR关掉的。我现在想要打开,提示:
Fatal Error[Pe035]: #error directive: "Bond Manager cannot be used since NO_OSAL_SNV used! Disable in buildConfig.opt" C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\Profiles\Roles\gapbondmgr.c 43
我把DGAP_BOND_MGR先关掉,OSAL_SNV=0 x掉, 提示:
unable to allocate space for sections/blocks with a total estimated minimum size of 0x10ee2 bytes (max align 0x4) in <[0x0000e000-0x0001efff]> (total uncommitted space 0xefd0).
我在社区里面找到了一个有类似问题的帖子,里面说把IAR-Boundary.bdef & IAR-Boundary.xcl两个文件里ICALL_STACK0_ADDR的值改小,加大Flash工作区域。我把原先的0x0000E000改成了0x0000B000,编译通过。
然后我把buildConfig.opt中的DGAP_BOND_MGR再次打开,还是编译不过,提示:
Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x518 bytes (max align 0x4) in <[0x20004470-0x200048e7]> (total uncommitted space 0x478).
Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x3888 bytes (max align 0x4) in <[0x0000b000-0x0001efff]> (total uncommitted space 0x372c).
Error[Lp021]: the destination for compressed initializer batch "P2-1" is placed at an address that is dependent on the size of the batch, which is not allowed when using packbits compression. Consider using "initialize by copy with packing
= zeros" (or none) instead.
求大神指点,还需要做什么样的修改,谢谢!
把ICALL_STACK0_ADDR一直再改小,也还是会有错误
Error[Lp011]: section placement failed
unable to allocate space for sections/blocks with a total estimated minimum size of 0x518 bytes (max align 0x4) in <[0x20004470-0x200048e7]> (total uncommitted space 0x478).
Error[Lp021]: the destination for compressed initializer batch "P2-1" is placed at an address that is dependent on the size of the batch, which is not allowed when using packbits compression. Consider using "initialize by copy with packing
= zeros" (or none) instead.
ICALL_STACK0_ADDR 的值多试几个,报错显示内存不够用了
Viki:
是的,就是这个问题,在IAR-Boundary.xcl下面有个ICALL_RAM0_ADDR,我修改了这个值,重新编译的时候,会自动重新生成一个可用的值。谢谢,问题已经解决了。
不客气,解决就好