Hi Dialog,
我使用DA14681的sdk版本DA1468x_SDK_BTLE_v_1.0.8.1050中的ble_adv工程,
在ble_adv_demo_task中使能了外设i2c_adapter:
#define dg_configI2C_ADAPTER (1)
结果编译提示以下错误。
f:/diasemi/smartsnippetsstudio/gcc/4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: ble_adv.elf section `RETENTION_RAM1' will not fit in region `RetRAM1'
f:/diasemi/smartsnippetsstudio/gcc/4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `RetRAM1' overflowed by 128 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [ble_adv.elf] Error 1
请问这是什么问题?
如果不开启宏定义:#define dg_configI2C_ADAPTER (0)编译就可以通过。
Keywords:
Device:
原因是你定义的需要在睡眠时保存数据到retRam1的数据太多了