M32C and Segger and KD3083
Up to M32C
Hello all,
i want to use the Segger embOS demo. I am using the IAR compiler and the KD3083 simulator. The problem is that the communication aborts though i included the assembler file for the KD3083 connection. Has anyone an idea what i am doing wrong? By stepping through, the communication aborts at the fourth line ( LDC FF0000H, INTB).
KD3083 is not a simulator, but it is an old serial on-chip debugger. It uses a small monitor software in the target processor. If it aborts at this line you do not have the UART interrupt vector for your debug interface initialised in your application. The interrupt vector for your debug interface must be set to 0FFFD00h.
Code:
COMMON INTVEC
.BLKB 19<<2
.LWORD 0FFFD00H ; UART 1 rx for KD3083
.LWORD 0FFFD00H ; UART 1 tx for KD3083
END
But it does not work.
Did you check if the vector has been entered in the table?
Which processor do you use? M32C/84/87/88 and most 85 can use a special debug mode. Then you don't have to care about the UART interrupt any more (but you need a new monitor software).
Have a look at the memory window. You see that the interrupt table starts at 0xFF0000. You can change the view to long view (or 4 byte view) and then you see all entries. Just count to 19 (starting with 0) and see if FFFD00 has been added.
My be you have another file, where all interrupt vectors are defined? And this other file is linked later than the assembler file you mentioned before?
The common section in the IAR compiler does not complain if an entry is overwritten. So if you have different data written at the same address the file linked last wins...

