Interpreting hex file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interpreting hex file

1,156件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by richardc on Tue Jun 28 09:26:51 MST 2011
Can anyone provide me with some guidance on interpreting a hex file. Basically, i understand the hex file has records that will contain either data or an address. Each data record also contains an offset as to where the data should be stored. How do i go about interpreting this information and writing it into the chips flash memory? any help would be greatly appreciated.
0 件の賞賛
返信
3 返答(返信)

1,111件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kendwyer on Tue Jun 28 15:28:42 MST 2011
If you still want to interpret the HEX file, there are plenty of places on the web, just do a search for "Intel Hex Format"
0 件の賞賛
返信

1,111件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jun 28 13:02:58 MST 2011

Quote: richardc
Can anyone provide me with some guidance on interpreting a hex file. Basically, i understand the hex file has records that will contain either data or an address. Each data record also contains an offset as to where the data should be stored. How do i go about interpreting this information and writing it into the chips flash memory? any help would be greatly appreciated.



You haven't said how you are generating the hex file, but on the assumption that you are using the LPCXpresso IDE (as this is the LPCXpresso forum ;)), then I presume that you are aware that you can program an AXF file as generated by the LPCXpresso IDE directly into flash via LPC-Link, rather than converting it to hex and using an external programming tool.

You can do this directly via the GUI - the simplest way being to just click on the Debug option in Quickstart, or else by right click on the .axf/.bin file in the project explorer view and select Binary Utilities -> Program flash.

Alternatively, you can program via the command line...
http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming

Regards,
CodeRedSupport
0 件の賞賛
返信

1,111件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Tue Jun 28 09:41:45 MST 2011
Flash magic will do the job for you.

This tool can be downloaded from flashmagictool.com and it will read the hex file, interpret it and program the Flash for you.

The format used is the intel hex file, wikipedia carries a nice description on the format.

Flash is being programmed using the ISP mode of the boot ROM.
Please consult the user manual of the proper lpc1xxx chip on how to access this mode for your controller, there you will also find a complete description of the protocol in case you want to write your own flash programming tool.

Regards,

Rob
0 件の賞賛
返信