各位好。
从网上下载了uCOS-II-MSP-EXP430F5438.exe,解压后直接运行其中的os.eww,下载到exp5438开发板进行调试。出现两个问题:
1 OS_CPU_SR_Save
MOV.W SR, R12
DINT <--------------------------此处出现说需要 a NOP 需要加入,应框架的需求。莫名其妙
RETA
Warning[411]: A NOP needs to be added as required by the architecture C:\Micrium\Software\uCOS-II\Ports\MSP430X\IAR\MSP430x5xx\os_cpu_a.s43
这个问题是个warning,只出现一次就没有了。
2 堆栈溢出问题。
不做任何改动,运行程序时,在任务间切换时总是出现堆栈溢出问题:
星期三 一月 15, 2014 08:20:34: The stack pointer for stack 'Stack' (currently Memory:0x1F16) is outside the stack range (Memory:0x5B60 to Memory:0x5C00)
星期三 一月 15, 2014 08:20:41: The stack pointer for stack 'Stack' (currently Memory:0x2116) is outside the stack range (Memory:0x5B60 to Memory:0x5C00)
星期三 一月 15, 2014 08:20:46: The stack pointer for stack 'Stack' (currently Memory:0x22F4) is outside the stack range (Memory:0x5B60 to Memory:0x5C00)
星期三 一月 15, 2014 08:20:48: The stack pointer for stack 'Stack' (currently Memory:0x2516) is outside the stack range (Memory:0x5B60 to Memory:0x5C00)
程序中任务堆栈都是256个单位。我该大一点也不行。在iar中修改stack大小也不行。
请大家帮忙看看是怎么回事,如何解决。