EmbeddedRelated.com
Forums

Debug in external flash

Started by baosheng_zhu January 16, 2007
Hi,anyone knows how to use J-LINK to debug a program in external flash?
I am using a full licensed J-LINK and ARM 4.41a, and my ARM development
board is EASYARM2200 which uses a LPC2210 and SST 39VF1601 flash.

Thank you.

An Engineer's Guide to the LPC2100 Series

Once you program the code into the external flash,
create a script file on IAR's EWB to setup PINSEL2,
BCFGx, and MEMMAP to 0x03, load the symbol of your
image to the debugger, then, set your PC to the beginning
address of the flash, bank0=0x80000000, bank1=0x81000000...
finally, the rest should be the same as debugging in the
RAM except that you only have two break points to play with.

Tom

--- In l..., "baosheng_zhu" wrote:
>
> Hi,anyone knows how to use J-LINK to debug a program in external
flash?
> I am using a full licensed J-LINK and ARM 4.41a, and my ARM
development
> board is EASYARM2200 which uses a LPC2210 and SST 39VF1601 flash.
>
> Thank you.
>
Tom, thanks for your information. I am not an expert on IAR.
1. Why do I need to set PINSEL2, BCFGx and MEMMAP to 0x03?
2. What is a script file on IAR?
3. How to load symbols by using J-LINK?

Thank you.
--- In l..., "Dezheng Tang" wrote:
>
> Once you program the code into the external flash,
> create a script file on IAR's EWB to setup PINSEL2,
> BCFGx, and MEMMAP to 0x03, load the symbol of your
> image to the debugger, then, set your PC to the beginning
> address of the flash, bank0=0x80000000, bank1=0x81000000...
> finally, the rest should be the same as debugging in the
> RAM except that you only have two break points to play with.
>
> Tom
>
> --- In l..., "baosheng_zhu" wrote:
> >
> > Hi,anyone knows how to use J-LINK to debug a program in external
> flash?
> > I am using a full licensed J-LINK and ARM 4.41a, and my ARM
> development
> > board is EASYARM2200 which uses a LPC2210 and SST 39VF1601 flash.
> >
> > Thank you.
>