Author Topic: Using one hex file to program multiple flash chips  (Read 2841 times)

Fabio

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Using one hex file to program multiple flash chips
« on: October 07, 2013, 07:17:57 am »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Using one hex file to program multiple flash chips
« Reply #1 on: October 08, 2013, 01: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
Embedded Systems Academy, Inc.
support at esacademy dot com

Fabio

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Using one hex file to program multiple flash chips
« Reply #2 on: October 09, 2013, 02: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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2114
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Using one hex file to program multiple flash chips
« Reply #3 on: October 09, 2013, 07:55:41 am »
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

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
    • Huge-IT
Re: Using one hex file to program multiple flash chips
« Reply #4 on: August 01, 2017, 07:38:37 am »
I also think that the best way is to split the hex file into two parts
)