uint8 returnValue=osal_snv_write(0x83,52,showNameValueBuf);
returnValue=osal_snv_read(0x83,52,storeNameValueBuf);
编译的时候出现这样的警告:
Warning[w6]: Type conflict for external/entry "osal_snv_read", in module simpleBLEPeripheral against external/entry in module osal_snv; prototyped
function vs K&R function
Warning[w6]: Type conflict for external/entry "osal_snv_write", in module simpleBLEPeripheral against external/entry in module osal_snv; prototyped
function vs K&R function
这是SNV API函数,但是返回值写报错,读成功,我连续试了很多地址,都是这种现象,请问一下怎么样解决?谢谢了。
huibin zhao:
补充一下CC2541写不进去Flash比较全面的答案呀,
一、没有加头文件#include "osal_snv.h"
二、默认是F256的,如果你的芯片是F128,需要在C/C++Compiler的Defined symbols 添加HAL_BOARD_F128=TURE 即可。