Using one hex file to program multiple flash chips

Started by Fabio, October 07, 2013, 07:17:57 AM

Previous topic - Next topic

Fabio

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.

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

Fabio

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

Andy Ayre

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
Embedded Systems Academy, Inc.
support at esacademy dot com

gabithompson730

I also think that the best way is to split the hex file into two parts
)