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.

28335单步和连续运行加断点不一样



使用CCS5.4,单步运行传递变量地址自己变。。。提取设断点,全速跑起来又正常!这是怎么回事?

比如我程序:

main

{

 unsigned long test,i;

for(i=0;i<8;i++)

tt(&test);

这个时候看到地址假设:0x0000123。

}

单步进入到 tt(unsigned long  * pt)

{

进来后看 *pt只有第一次是 0x123,然后就是0x121,0x124,0x121。。。一直就不对了。

}

如果在main里的tt(&test)前面加断点,然后全速运行,看改变的test值,似乎又是正确的!。这个是用来xintf外设通讯的。

将stack和改大,换地方  没有什么帮助。。。请教,这会是什么原因??