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.
mona 说:5438A,代码加多了�就出问题,代码本身应该没问题。
看看你的 堆栈大小 分配得够不够?
加的代码是在原有任务基础上加的新任务代码,原有任务堆栈应该没问题。新任务堆栈大小没测,还有一种情形,就是iar编译优化等级设置为high,就没问题了。
请看下这边帖子:http://www.deyisupport.com/question_answer/microcontrollers/msp430/f/55/t/130942.aspx?keyMatch=ucos%20%E7%A8%8B%E5%BA%8F%E8%B7%91%E9%A3%9E&tisearch=Search-CN-Support
看了你发的这个链接处,问题非常像,都是死到000004地址处。但有个疑问,我系统中的两个任务,注释掉任何一个任务程序都正常运行。这两个任务应该不会同时出现链接所说的函数内定义大局部变量的问题。还有就是程序只要在编译的时候优化等级设为high就能正常运行,这一点也比较奇怪?