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.

关于MSP430f149移植ucosii系统的问题

Other Parts Discussed in Thread: MSP430F149, MSP430F2418

在将ucosii系统移植到MSP430F149上时,堆栈初始化函数OSTaskStkInit (void (*task)(void *pd), void *p_arg, OS_STK *ptos, INT16U opt)中为什么要将p_arg传递到R12中,而不是其他寄存器中?如图所示。

此外,有一些移植程序,task被存入了两次,有些是一次,怎么回事???

  • 建议参考下别人移植好的代码http://zm10.sm-img5.com/?src=http%3A%2F%2Fdl.21ic.com%2Fdownload%2Fucos149-rar-ic-62027.html&uid=8604f36444750a2c1985bdbaf94e64e6&hid=dec9f2e66844a264c73d964a5f3946ef&pos=6&cid=9&time=1441458571412&from=click&restype=1&pagetype=0000000000000402&bu=web&query=msp430f149+ucos&mode=&uc_param_str=dnntnwvepffrgibijbprsvpi
  • 嗯,多谢了。请问您有不有针对MSP430F2418的移植程序,这款单片机的内存比较大,所以它的CPU寄存器是20位的,用149的移植程序跑起来不正常。