Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: bausin on May 07, 2008, 11:25:49 AM

Title: Using FM to ISP a large hex file
Post by: bausin on May 07, 2008, 11:25:49 AM
Hi,

I'm trying to figure out how to use FM to load a 1 MByte FPGA config file. I'm using an LPC2378 that needs to load a serial flash over the SPI bus. The problem is that the file is too large to simply store in on-board flash and transfer to serial flash later. Do I need to write my own bootloader code to interact with FM?
All suggestions welcome.

Thanks,
Steve
Title: Re: Using FM to ISP a large hex file
Post by: Andy Ayre on May 07, 2008, 03:41:30 PM
Yes. The factory bootloader only supports writing to on-chip flash.

Andy
Title: Re: Using FM to ISP a large hex file
Post by: bausin on May 09, 2008, 11:32:30 AM
Andy,

Have you got any suggestions on using FM to interact with custom bootloader code? For example, is it feasible to have FM execute the GO command to run my bootloader and then continue to push a hex file down to my bootloader? Or am I doomed to have to write both sides of the file transfer?

Thanks for your help,
Steve
Title: Re: Using FM to ISP a large hex file
Post by: Andy Ayre on May 12, 2008, 09:02:29 AM
You can create a batch file to issue Flash Magic commands in sequence. So you could follow a GO command with a delay then a hex file.

Andy