Is there any tool could flash hex to RT1060 EVKB or convert hex to bin file?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there any tool could flash hex to RT1060 EVKB or convert hex to bin file?

Jump to solution
734 Views
antoniohsu888
Contributor II

Hi:

My EVK is RT1060 EVKB.

I checked the GUI flash tool only support bin or axf file.

How could I flash compiled *.hex file to RT1060?

or is any tool could convert hex file to bin file, then using GUI flash to flash bin to RT1060?

Thank you.

 

0 Kudos
1 Solution
726 Views
jeremyzhou
NXP Employee
NXP Employee

Hi @antoniohsu888 ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest support, please try the GUI tool.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
702 Views
antoniohsu888
Contributor II

Hi, Jay & Jeremy:

Thanks for you reply.

I download the GUI tool v5 version, but can't install on my PC.

So I change to v3 verison, it can be installed.

But the GUI still can't open the hex file.

That OK, I use the python bincopy or another tool, it woks fine with my test hex file gernerate from axf file.

https://sourceforge.net/projects/hex2bin/

 

I have another problem is, there is a hex file built from NXP RT1060 matter project.

But seems there is some problem for the output hex file.

I use hex2bin tool to test the hex (from axf->hex) to binary and dowload to RT1060 EVKB, it works fine.

Here is the covert log.

hex2bin v2.5, Copyright (C) 2017 Jacques Pelletier & contributors

Allocate_Memory_and_Rewind:
Lowest address: 60000000
Highest address: 60005E83
Starting address: 60000000
Max Length: 24196

Binary file start = 60000000
Records start = 60000000
Highest address = 60005E83
Pad Byte = FF

 

But for the chip-rt1060-all-cluster-example.hex

All with error.

hex2bin v2.5, Copyright (C) 2017 Jacques Pelletier & contributors

Error in line 1 of hex file
Error in line 2 of hex file
Error in line 3 of hex file
Error in line 4 of hex file
Error in line 5 of hex file
Error in line 6 of hex file

Is there any way to analyze or check what wrong for the hex file ?

(It is the RT1060 with MATTER project, from NXP private git,

because it was built without any error, but it can't be coverted to bin file)

 

BR, Antonio.

0 Kudos
694 Views
jeremyzhou
NXP Employee
NXP Employee


Hi,
Thanks for your reply.
Just as Jay shows, the various IDE can support generating different formats of the image, about the chip-rt1060-all-cluster-example.hex, it definitely has trouble, because the MCUXpresso Secure Provisioning tool indicates the address is not valid, I think you'd better check the setting of the IDE prior to generating another hex。

jeremyzhou_0-1667289546233.png

 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
691 Views
antoniohsu888
Contributor II

Hi, Jeremy:

 

Thanks for you test.

I find the hex is not intel-hex format, so it needs ohter image tool.

Spoiler
 

for k32w matter project, there is same issue for the built hex file.

It uses  sign_images.sh to convert hex to bin file.

Thanks your help.

0 Kudos
718 Views
jay_heng
NXP Employee
NXP Employee

You can convert .axf to hex/srec/bin under MCUX

MCUX_Gen_Binary_MCUX_OutputFmt.PNG

For hex to bin, you need additional tool/library, below python bincopy library may be helpful to you

https://pypi.org/project/bincopy/

0 Kudos
727 Views
jeremyzhou
NXP Employee
NXP Employee

Hi @antoniohsu888 ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest support, please try the GUI tool.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos