Flash Magic Forum

General => General Discussion => Topic started by: Fabio on October 07, 2013, 03:17:57 pm

Title: Using one hex file to program multiple flash chips
Post by: Fabio on October 07, 2013, 03:17:57 pm
Hi,
is it possibile to use a single hex file to program different memory areas?
If I have an LPC2478 with two different external flash memories, should I use different bootloaders to program the flash chips or is it possible to implement one single bootloader that handles the different programming algorithms (two external flash chips and the internal flash) for the different memory ranges (the different flash memories could have different sector sizes)?
Thank you in advance.
Title: Re: Using one hex file to program multiple flash chips
Post by: Andy Ayre on October 08, 2013, 09:24:05 am
You could adapt one of the external flash bootloaders included with Flash Magic to implement this any way you want. You will need to make the two memories look like a single larger memory to Flash Magic.

Andy
Title: Re: Using one hex file to program multiple flash chips
Post by: Fabio on October 09, 2013, 10:48:23 am
Is this going to work even if the flash chips have different block sizes? In the descriptor_t structure a programmable sector size has to be specified.
In addition the memory areas are not contiguous: could this be a problem?

Fabio
Title: Re: Using one hex file to program multiple flash chips
Post by: Andy Ayre on October 09, 2013, 03:55:41 pm
I think your best option is to split the hex file into two parts - one for each memory range. Then use two external bootloaders.

Andy
Title: Re: Using one hex file to program multiple flash chips
Post by: gabithompson730 on August 01, 2017, 03:38:37 pm
I also think that the best way is to split the hex file into two parts