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

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

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

ソリューションへジャンプ
790件の閲覧回数
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 件の賞賛
1 解決策
782件の閲覧回数
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 件の賞賛
5 返答(返信)
758件の閲覧回数
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 件の賞賛
750件の閲覧回数
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 件の賞賛
747件の閲覧回数
antoniohsu888
Contributor II

Hi, Jeremy:

 

Thanks for you test.

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

スポイラ
 

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 件の賞賛
774件の閲覧回数
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 件の賞賛
783件の閲覧回数
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 件の賞賛