Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: uCherb on August 01, 2008, 02:17:39 AM

Title: LPC2378 loading Hexfile above 0x10000 some help
Post by: uCherb on August 01, 2008, 02:17:39 AM

Hello there

some solution about transfering Hexfiles origin 0 to somwhere else
are the tools Hex2bin and Bin2hex from

http://www.microsym.com/content/index.php?pid=2&id=23

with this tools one can convert it to any Adress
it works
then the FM will read the File correct
procedere:

create a Batch file

my Batchfile looks like this:

<text>
hex2bin main.hex m8bin1.bin
pause
bin2hex /O0x10000 /4 m8bin1.bin m8mainc.hex
pause
/<text>

main.hex       is the File from the FPGA Tool origin 0
m8bin1.bin    is the produced Bin File
/O0x10000    is the wanted Adress
m8mainc.hex is the resulting Hexfile to be loaded with FM

                   (the /4 stands for ..linear hex386 records)
see the help (starting Hex2bin or Bin2hex without files)

to some help for others

greetings Herbert

what about putting something like this in FM??
Title: Re: LPC2378 loading Hexfile above 0x10000 some help
Post by: Andy Ayre on August 07, 2008, 10:14:03 AM
To add this to Flash Magic and retain flexibility would mean simply wrapping the command line interface with a user interface, which wouldn't make it much easier. However by continuing to use the command line interface you can integrate the calls with your IDE, e.g. uVision3.

Thanks for posting your solution to the forum - I'm sure it will be a help to others.

Andy