Loading hex file to LPC 4330

4 replies [Last post]
sudhir_reddy83
Offline
Joined: 2012-07-06

Hi,

I have already worked on my project using LPC 1788. Now I am migrating my design from LPC 1788 to LPC 4330, 188 pin one. I am also using M25P40 flash of STM to store my hex file. My query is
1. I want to know what are all the devices which I can use for LPC 4330 to load the hex file. I am using Keil IDE
2. I want to know how I can load hex file into external SPI flash using ISP and not using any JTAG that means using serial interface. what are all the tools that can be used to load the hex file into M25P40.
3. I also want to know the Boot load process when using an external SPI flash device.

Thank You in advance

SUDHIR

3
Your rating: None Average: 3 (1 vote)

SUDHIR

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sudhir_reddy83
Offline
Joined: 2012-07-06

Sorry the IC which I am using is LPC4330 of 144 pin

SUDHIR

SUDHIR

bavarian
Offline
Joined: 2012-01-10

Hello,

1. You can use the KEIL IDE to program the external flash, . You just need a ULINK or a JLINK. Look for the document "KEIL Flash Utility.pdf in the .\Tools\Flash Utility\KEIL folder. It describes the programming of the parallel flash. For the qSPI flash there is also a driver in µVision, it appears as "SPIFI on LPC18xx/43xx @14000000" (link your code to this address). Set the size for the RAM to 0x4000 (upper right corner). You don't need an init file.

2. I can't test it right away, but I think Flash Magic already supports it.

3. The bootloader chapter in the user manual describes most of the things, if you have a specific question then please post it here and I will take care of it.

Best regards.

sudhir_reddy83
Offline
Joined: 2012-07-06

Hi bavarian,

Regarding downloading through ISP, I have searched for the supported hardware list in the Flash Magic website. Its showing only LPC4357 as supported. I don't think that FlashMagic will support LPC4330. Are there any other methods through which I can download using ISP mode. If Yes can you let me know the details about them.

Thank You

Regards

SUDHIR

SUDHIR

PhilYoung
Offline
Joined: 2011-07-18

4357 has onboard flash, so flash magic has been configured to support it as a standard device.
For external flash devices the programmer needs to know the details of the microcontroller, to set up the memory controller etc, and the programming algorithm for the flash device.
obviously it's not possible for flash magic to support every combination, but it does support using the internal download algorithm on the LPC devices to download the customized flash programmer code and run it, then it interfaces to this code to complete the programming in the normal manner.

so flash magic can be configrred for this, and there is already code supplied with it for the Hitex 1850 board with SPI flash, so you can modify this to support your device.

look in the directory
C:\Program Files (x86)\Flash Magic\Bootloaders\External Memory\S25FL129P\LPC1850-Hitex

regards

Phil.

feedback