SES编译例程报错
错误:__vfprintf.h: No such file or directory
屏蔽该段代码。同时注释掉如下代码:
/*********************************************************************
*
* __putchar()
*
* Function description
* Write one character via RTT.
int __putchar(int x, __printf_tag_ptr ctx) {
(void)ctx;
SEGGER_RTT_Write(0, (char *)&x, 1);
return x;
}
*/
修改flash_placement.xml文件
<ProgramSection alignment="4" load="Yes" name=".text" size="0x4" />
<ProgramSection alignment="4" load="Yes" name=".rodata" size="0x4" />
去掉2处的“size=”0x4″”
<ProgramSection alignment="4" load="Yes" name=".text" />
<ProgramSection alignment="4" load="Yes" name=".rodata" />
从工程中删除文件:nRF5_SDK_17.1.0_ddde560\external\segger_rtt\SEGGER_RTT_Syscalls_SES.c
配置工程的文件编码格式为UTF-8
选中工程右击 Options->Code->File->File Encoding 设置为UTF-8
修改IDE配置
Tools->Options->Text Editor-> International auto UTF-8
Tools->Options->Text Editor-> visual appearance: proportional