Hi,
Summary of my project. Earliar we were using LPC2420 Controller with external flash SST39vf1601 and our code size is nearly 1.2MB. Since LPC1777 is direct replacement for LPC24XX series, in the same board we are planning to change only controller(LPC1777). Because of code size we have to use external flash for programming and booting. We have successfully added the flash programming algorithm in keil.
we are using Chip select 1 for SST flash we made the target settings according to that. Please refer the attached image. Now while programming through ULINK2 JTAG, Full chip erasing is happening properly and Partial programming is also happening. But it is showing no algorithm found for 0x000002FC to 0x000002FF. This address is related to CRP. Please help us to overcome this issue and move forward.
Regards Shekar
The CRP code is usually located in the startup code and can be skipped with using the “NO_CRP” define (for that ASM file).
However be careful by not providing the CRP since you can easily lock the chip and make it useless. I suggest you look at the implications in the NXP user manual.
IF :LNOT::DEF:NO_CRP
AREA |.ARM.__at_0x02FC|, CODE, READONLY
CRP_Key DCD 0xFFFFFFFF
ENDIF
This is the code available in system file but still it is showing no algorithm found. Is there any other configuration. When I download the code for on-chip this error is not there but when I download for off-chip this error is showing.
Have you defined "NO_CRP" for the Assembler?
Where to define for assembler I m not getting. If I try on-chip this error is not showing for off chip only this error is coming. I m new to this type of configuration help me out.
Right click on the startup file and select “Options for Target”, click on “Asm” tab and enter “NO_CRP” under “Define:”
Hi Robert,
Thanks for your reply. Now the program is downloading to external flash but the code running is from on chip. I selected start up in target for off chip but the code running is from on chip. So how to boot from off chip.
You should look into the LPC 177x/8x user manual. As far as I remember it was only possible to boot from external memory on the older fleshless parts.