Debugger shows no source, program counter wrong

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

Debugger shows no source, program counter wrong

ソリューションへジャンプ
2,130件の閲覧回数
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 解決策
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 件の賞賛
返信
1 返信
978件の閲覧回数
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 件の賞賛
返信