This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XC16x - How to setup vector table at C1'0000H

Hi all,

can anybody help me ?
I want to simulate startup of program from internal flash memory at location C1'0000H.
DAvE has created a startup file for me, but the VECSEG entry was not passed to KEIL IDE.
I try the following in startup.

VECSEG DEFR 0FF12H; make new VECSEG known
...
_VECSEG EQU 193;    lets point VECSEG to C1
This will translated without errors.

Furthermore I choose under Linker/Locator - MISC Tab
Interrupt Vector Table Address = C1'0000.
(MAP-file displays all as I aspected)

Simulatorsettings:
Configuration from Program Memory
and EA=1
( this works for C0'0000 )
other settings here are ok.

If I start debugsession , than I get
" error 65 Access violation at segment C0'0000" what is right, since no usefull code there, but indicates - something goes wrong with the vector table.

Thanks in advance - Stefan