cancel
Showing results for 
Search instead for 
Did you mean: 

S19 Files in SPC5Studio

asn
Associate III

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 ? 

1 ACCEPTED SOLUTION

Accepted Solutions
asn
Associate III

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. 

 

View solution in original post

6 REPLIES 6

@asn wrote:

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


Indeed - it was posted under STM32.

Now moved.

Peter BENSCH
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
liaifat85
Senior III

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

:face_with_tears_of_joy::grinning_face_with_sweat:

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
asn
Associate III

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.