Skip to main content
Associate II
September 11, 2024
Solved

S19 Files in SPC5Studio

  • September 11, 2024
  • 5 replies
  • 1729 views

I believe the following question has been posted in the wrong label by @Nagendrapeddina , hence I am posting here as it has not been answered:

How to generate .s19 file using SPC5 studio? 

Is it possible to generate .S19 files in SPC5 Studio ? 

Best answer by asn

Thank you everyone for suggestions. I was to able to generate S19 files using SRecord.  

In case someone else is looking for a detailed solution, here are the steps for Windows OS:

1. Install MSYS2 

2. Once installed, open MSYS2 MINGW64 from your start menu.

3. Run the command mentioned `pacman -S mingw-w64-x86_64-srecord` mentioned in Package: mingw-w64-x86_64-srecord 

4. Locate your .hex file generated by SPC5 Studio and run the command in MSYS2 MINGW64:

srec_cat C:/Users/ASN/Desktop/fred.hex -Intel -o C:/Users/ASN/Desktop/output.s19 -Motorola

Note:

  • You dont have to create the output.s19 file. It will automatically be generated after conversion.
  • Replace the file location as per your files. 
  • No need to use quotes `"` and make sure you use `/`(forward slash) and not `\` (Backslash).

 

Hope it helps. 

 

5 replies

Andrew Neil
Super User
September 11, 2024

@asn wrote:

I believe the following question has been posted in the wrong label by @Nagendrapeddina , 


Indeed - it was posted under STM32.

Now moved.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Peter BENSCH
Technical Moderator
September 11, 2024

Even if S19 cannot be generated natively, you have the option of converting an existing format such as BIN or HEX into S19 using the open source tool SRECORD, for example?

Good luck!
/Peter

Visitor II
September 11, 2024
Andrew Neil
Super User
September 11, 2024

Circular reference: That's just the one mentioned in the OP!

:face_with_tears_of_joy::grinning_face_with_sweat:

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
September 11, 2024

S19 / Motorola S Records are not a complicated format, something someone with relatively elementary coding skills should be able to create from binary data or object files.

objcopy or objdump likely have a mode or option. Perhaps look at BIN2HEX class tools?

As my role as an "embedded sw engineer" I've certainly coded tools capable of generating and manipulating Intel, Motorola and Tektronix hex files. And this is prior to open source resources like SRECORD project.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
asnAuthorBest answer
Associate II
September 12, 2024

Thank you everyone for suggestions. I was to able to generate S19 files using SRecord.  

In case someone else is looking for a detailed solution, here are the steps for Windows OS:

1. Install MSYS2 

2. Once installed, open MSYS2 MINGW64 from your start menu.

3. Run the command mentioned `pacman -S mingw-w64-x86_64-srecord` mentioned in Package: mingw-w64-x86_64-srecord 

4. Locate your .hex file generated by SPC5 Studio and run the command in MSYS2 MINGW64:

srec_cat C:/Users/ASN/Desktop/fred.hex -Intel -o C:/Users/ASN/Desktop/output.s19 -Motorola

Note:

  • You dont have to create the output.s19 file. It will automatically be generated after conversion.
  • Replace the file location as per your files. 
  • No need to use quotes `"` and make sure you use `/`(forward slash) and not `\` (Backslash).

 

Hope it helps.