MC9S12DP256 interrupts with Noice in BDM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S12DP256 interrupts with Noice in BDM

2,366 Views
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
Labels (1)
0 Kudos
Reply
2 Replies

701 Views
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 Kudos
Reply

701 Views
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 Kudos
Reply