TMS570LC4357的开发板,下载的LAUNCHXL2 570LC43:lwip Demo,在CCS下可编译,转到IAR后,编译报错,
Error[Li005]: no definition for "_enable_fiq"
Error[Li005]: no definition for "_get_CPSR"
这几个函数在IAR中是在哪定义的,该如何解决?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
TMS570LC4357的开发板,下载的LAUNCHXL2 570LC43:lwip Demo,在CCS下可编译,转到IAR后,编译报错,
Error[Li005]: no definition for "_enable_fiq"
Error[Li005]: no definition for "_get_CPSR"
这几个函数在IAR中是在哪定义的,该如何解决?
CCS编译器会自动处理这些,但是IAR编译器不会。
可以替换成以下代码:
asm("cpsie i"); // _enable_fiq
asm("mrs r1,cpsr"); // _get_CPSR
改成汇编后编译通过了,运行后读取CPSR值的函数的返回值也是对的,但运行后ping不通,程序运行到netif_set_up函数后就跑飞了;若将读取CPSR值的函数的返回值改为恒0,程序不会跑飞,可以ping通;原本在CCS下的工程也是可以ping通的。这问题是出在哪呢,请教一下,困扰很久了。