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.

MSP430F5310做远程程序升级实验,PC程序指针老是不能修改成功



F5310这两天做串口自升级程序实验,在Flash空间划分为引导程序区、用户中断地址区、用户应用程序区。

单片机初次烧写引导区域程序,然后通过串口写入用户应用程序,修改PC指针,运行用户应用程序。

目前采用混合编程 执行asm(" mov &0xA922, PC;");  运行到该指令后,PC并非赋值成功0xA922,而是赋值为另外一个值,不知道什么原因?是指令没使用对,还是什么?