Help for "srec_cat" Synthax? Adding bin-file to he

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello

Has anybody a help file for the Win32 srec_cat utility? If I enter "srec_cat -help" on the command console, I got only the error message:

Quote:
C:\>/usr/local/lib/man.config: No such file or directory
Warning: cannot open configuration file /usr/local/lib/man.config
No manual entry for srec_cat

Or even better: If somone could give me an example how to convert a binary file into intel.hex format and add it to an another intel.hex format at an given address offset.

Can this be done with the srec_cat?

Thanks for any response, Peter

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The "Homepage is here"

http://srecord.sourceforge.net/

Doc should be here
http://srecord.sourceforge.net/s...

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you are using WinAVR then \winavr\doc\srecord contains the documentation you need.

Cliff

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okydoky thanks a lot.

I still don't know, why the -help doesnt work, but the solution for my question is:

Example: Adding the binary-file "Fpga.bin" do the hex-file "App.hex" at an address offset of 0x0001'0000 => Output-file "Flash.hex" as 16 Bit Intel-Hex format:

Quote:

srec_cat.exe App.hex -intel Fpga.bin -binary -offset 0x10000
-output Flash.hex -intel --address-length=2

App Hex-File: App.hex (16-Bit Intel-Hex Format)
FPGA-Image: Fpga.bin (Binary File)
Output-File: Flash.hex (16-Bit Intel-Hex Format)

Regards Peter

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

srec-cat -help invokes the GNU man utility.

IIRC EW has noted that the version of man included with WinAVR's GNU environment is broken, but it wasn't considered a high-priority issue to fix since the relevant documentation for all affected products is already packaged with WinAVR in other formats.

If you were to build and install your own copy of SRecord under cygwin (for example) then you would be able to use cygwin's version of the man utility to access "srec-cat -help".