LPC43xx Reset script

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

LPC43xx Reset script

930 Views
cescvaro
Contributor II

Hi,

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?

Labels (1)
Tags (2)
0 Kudos
3 Replies

802 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Francesco,

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

BR

XiangJun Rong

0 Kudos

802 Views
cescvaro
Contributor II

Hi,

any further detail that can help?

Basically about the Reset & Connect script.

thank you.

regards,

fv

0 Kudos

802 Views
cescvaro
Contributor II

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:

  • Debug connection SWD
  • Additional options: empty
  • Attach onyl: True
  • Connect Script: not sure about this. Flash connect?
  • Debug Level: 2
  • Debugger memory cache: Disable
  • Disconnect behavior: cont
  • Flash Driver Reset Handling: Default
  • Load Image: Ture but should be no problem as is deprecated.
  • Maximum Wire Speed: empty
  • Memory Access Checking: off
  • Pre launch command: empty
  • Reset Handling: Default
  • Reset Script: not sure. LPC18LPC43ExternalFLASHBootResetscript.scp ?
  • Run/Continue image: cont
  • Semihosting support: off
  • Vector catch: False
  • Wirespeed: empty.

regards,

fv.

0 Kudos