|

楼主 |
发表于 2020-9-10 19:20:24
|
显示全部楼层
诉说下最新进展:
uCOS-II V2.93.00软件包的ports下os_cpu_a.S汇编文件内容中,OSCtxSw和OSIntCtxSw汇编函数内容部分修改下即可以解决Segger Embedded Studio V5.10a版本软件下编译出错问题
改动前:
.thumb_func
OSCtxSw:
OSIntCtxSw:
LDR R0, =NVIC_INT_CTRL @ Trigger the PendSV exception (causes context switch)
LDR R1, =NVIC_PENDSVSET
STR R1, [R0]
BX LR
改动后:
.thumb_func
OSCtxSw:
.thumb_func
OSIntCtxSw:
LDR R0, =NVIC_INT_CTRL @ Trigger the PendSV exception (causes context switch)
LDR R1, =NVIC_PENDSVSET
STR R1, [R0]
BX LR
|
|