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.
Debug in external flash
Started by ●January 16, 2007
Reply by ●January 16, 20072007-01-16
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.
>
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.
>
Reply by ●January 16, 20072007-01-16
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.
>
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.
>