MC9S12DP256 interrupts with Noice in BDM

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

MC9S12DP256 interrupts with Noice in BDM

2,558 次查看
Seb
Contributor I
Hi,
I'm using a HCS12 T-board of elektroniladen with a MC9S12DP256 on it.
I'm using ICC12 6.16A as a C-compiler and Noice 7.9.0.950 as a debugger with a ComPOD12 PRO.

Using Noice in BDM mode works perfectly well, as long as I'm not using interrupts. But when I try to use them (timer interrupts for instance), instead of jumping to the interrupt-subprogram it bugs (the PC usually go to 0002 or something like that).

I believe that BDM uses the place where the interrupt vectors are located (FFFF and above). I thought that vectors were automatically relocated somewhere at the end of the RAM (3E00 and under) and that all I had to do was to put my interrupt-subprogram address there, changing the file "vector.c".
I did that (I even put the address everywhere at the end of the RAM in case the interrupt vectors where not relocated exactly where I thought) but it is still bugging.

Has anyone an idea?
Thanks

Seb
标签 (1)
0 项奖励
回复
2 回复数

893 次查看
imajeff
Contributor III
I use NoICE with the DB256B. I have had no trouble with BDM and interrupts (aside from some details that were not obvious).

The only time my interrupt ran astray (stopping at 0x0002) was a software error. Have you seen that your interrupt routine works *without* using NoICE? I doubt it has anything to do with the BDM debugger.
0 项奖励
回复

893 次查看
Seb
Contributor I
Hi,
 
Sorry for the delay, but I had trouble finding time to work on it properly.
The programs were OK, working well without NOICE.
The solution was simply to check a box in NOICE options so that it can properly write the interrupt vectors in the Flash.
 
Thx
Seb
0 项奖励
回复