Single step only with flash - no breakpoint available

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Single step only with flash - no breakpoint available

1,850件の閲覧回数
Haiiro
Contributor I
I am using CW 6.4 with P&E Multilink USB-ML-CF Rev C. The processor is MCF5235.

Debug, breakpoints, and all that work fine when running from RAM. However, when running from flash, I cannot set any breakpoints, and I cannot step over functions. Therefore, the entire debug session consists of single steps. Right now I have a Tcl loop of 30,000 single step iterations running in the command window to get through the memory initialization loop.

According to CodeWarrior, all breakpoints are disabled and all watchpoints are disabled. Options to clear them are grayed out - implying that there are none. The View -> Breakpoints window does not list any breakpoints / eventpoints / etc.

When I have the program just run, sometimes it crashes and winds up in a "halt" instruction, and sometimes it stops at a function as if there was a persistant breakpoint there.

The flash erase / program / power up sequences don't seem to have any effect on this behavior.

Is this the normal expected behavior of this system or is there something I can do to improve it?

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

727件の閲覧回数
Haiiro
Contributor I
Interesting results: I got through the 30,000 single steps and the program crashed.

Then I tried something: I quit and restarted CodeWarrior. The debugging process now works.

Lesson: If strange things start happening, quit and restart. It seems that there is something hanging around across all the other compile / program / debug / power cycle processes.

0 件の賞賛
返信