|
发表于 2020-5-31 18:49:56
|
显示全部楼层
本帖最后由 hpdell 于 2020-5-31 22:09 编辑
今天得空改了一个以前的工程, 工程时 ac6 + utf8 + ucos-iii + lwip + emwin
目前 lwip 初始化 程序运行到如下位置
ip_addr_set_zero_ip4(&ipaddr);
ip_addr_set_zero_ip4(&netmask);
ip_addr_set_zero_ip4(&gw); 程序运行到这个位置就出现 如下错误, ???
/*
*********************************************************************************************************
* CPU_SW_Exception()
*
* Description : Trap unrecoverable software exception.
*
* Argument(s) : none.
*
* Return(s) : none.
*
* Note(s) : (1) CPU_SW_Exception() deadlocks the current code execution -- whether multi-tasked/
* -processed/-threaded or single-threaded -- when the current code execution cannot
* gracefully recover or report a fault or exception condition.
*
* See also 'cpu_core.h CPU_SW_EXCEPTION() Note #1'.
*********************************************************************************************************
*/
void CPU_SW_Exception (void)
{
for (;;) {
;
}
}
目前是把 lwip 程序全部屏蔽了, 其他运行基本正常
// -------------------------------
目前 把 utf8 转换为 gbk 的方法 StrUTF8ToGBK((const char *)"我们要提前一起嗨个够,够够够", &_charBufGbk[0] , 100);
GUI_DispStringAt((const char *)_charBufGbk,_usX, _usY);
感觉这样比较麻烦, 有没有更加简便的方法啊 ?
|
|