Modify lenght of line in output file .hex with KDS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Modify lenght of line in output file .hex with KDS

2,160 次查看
riccardobaietto
Contributor I

Hi,

 

in KDS I use output file format INTEL HEX, I need to modify length of every line in hex file; for example, now the line is:

 

:10A0000000000020A5FE0100BDA40000D9A40000AE

 

where the lenght of line is 0x10 (16 bytes).

Is it possible to increase lenght to 0x20 (32 bytes) or 0x40 (64 bytes).

 

Thanks for your reply.

 

R.Baietto

标签 (1)
标记 (5)
0 项奖励
回复
3 回复数

1,485 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Riccardo

In KDS , there is not the function to change the length,  you can refer to the method the above proposed.

BR

Alice

0 项奖励
回复

1,485 次查看
bobpaddock
Senior Contributor III

SRecord 1.64 can be used to transform S19 and Intel Hex files, as well as many others, in many ways.

0 项奖励
回复

1,485 次查看
mjbcswitzerland
Specialist V

Hi Riccardo

KDS uses GCC and so "objcopy" for creating output images: https://sourceware.org/binutils/docs-2.21/binutils/objcopy.html

This has options to control the length of SREC output but I don't see one to control iHEX outputs. You can check in more detail and if you find one you can use the objcopy as post-build step (called from a bat file) to generate the format (or formats) that you need.

If it is not possible with objcopy you can look for a conversion tool that reads in such formats and allows them to be saved in different formats. Check out HxD Hexeditor for example which allows binary files to be exported to various formats.

I have the following utilities that I use and maintain for common tasks that the often can't be done easily with available tools:

http://www.utasker.com/forum/index.php?topic=1445.0

If your company doesn't find a suitable solution/utility please contact me since I could modify the uTaskerCombine utility (this has iHex output support) to allow user controlled line length and add it as a post-build step to KDS. It will take about an hour of work to customise it for this usage.

Regards

Mark

Kinetis: µTasker Kinetis support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 项奖励
回复