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.

求解ccs5.5代码优化选项问题



芯片是c6748,代码是for循环5次擦除10k的flash存储器。问题现象如下:

1.直接执行就只擦除了第一块扇区,单步执行可以每块都擦除。

2.代码优化选项选择off时,直接运行可以全部擦除。

想问一下,这和优化有关系吗?如果有我怎么改善代码呢?优化选项里每一项的具体含义是什么呢?