I'm using an LPC4330 micro with a custom board and I'm using MCUXpresso 10.3.
I'm able to run a debug+flash session (the code is stored on an external flash) but I'm unable to properly lunch an attach debug session, after the IDE connects with the probe looks like it set (or jump) to adress 0x0 but the VTOR is not there.
What am I doing wrong?
Which Connect and Reset script should I use ?
How to properly tell gdb where VTOR is?
Regarding your question for VTOR, obviously, the value of VTOR register is dependent on the position of vector table, the LPC4330 processor is flashless, in other words, the LPC4330 has not on-chip flash, I suppose you put the code and constant on external spi flash on your board, is it right? The spi flash is located at 0x1400-0000, if it is the case, the VTOR should be 0x1400-0000.
If it is not what you expected, pls post your project so that we can have a review.
Hope it can help you
Hi XiangJun ,
thanks for the answer.
Yes you are right, there is a an external SPIFI Flash located at 0x1400_0000.
I suppose you put the code and constant on external spi flash on your board, is it right? => yes.
So, I'm not sure about how setup an attach only debug configuration (I'm using LPC Link 2).
My config option are: