Debugger shows no source, program counter wrong

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debugger shows no source, program counter wrong

跳至解决方案
2,129 次查看
irob
Contributor V
I've got some code that works fine in a target board, but when I try to debug it, the debugger shows now source code. Also, the program counter is pointing to the wrong start address. The assembly window shows 0x0000 and a BRA *+2. This is a HCS908QG4 project.

I've got many other QG4 project directories that work fine in the debugger. I tried copying the working project BDM_P&E_Multilink_CyclonePro.ini files to the broken project. No go.

I tried copying the entire working project directory, moving just the source code files of the bad project, recompiling. Again, the bad debug behavior follows. Sounds like something in my source then, right? But again, this code seems to mostly work fine on its own in default user mode.

These threads are very close to my problem:

Thread #1

Thread #2

But I have the green bug column checked for all my C files, including the auto-generated startup C files.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
976 次查看
irob
Contributor V
Oh wait, I know what's happening. I had security enabled on this project. As soon as I commented that source line out, the debugger opened up.

Man, in some ways the security on the S08 family is nicer, but in other ways it's a little harder to work with. Like I really don't like how it can't be unlocked at all. That makes future debugging on field units impossible.

在原帖中查看解决方案

0 项奖励
回复
1 回复
977 次查看
irob
Contributor V
Oh wait, I know what's happening. I had security enabled on this project. As soon as I commented that source line out, the debugger opened up.

Man, in some ways the security on the S08 family is nicer, but in other ways it's a little harder to work with. Like I really don't like how it can't be unlocked at all. That makes future debugging on field units impossible.
0 项奖励
回复