S19 Files in SPC5Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 6:18 AM
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 ?
Solved! Go to Solution.
- Labels:
-
SPC5 Automotive MCUs
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-12 1:33 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 6:36 AM
@asn wrote:I believe the following question has been posted in the wrong label by @Nagendrapeddina ,
Indeed - it was posted under STM32.
Now moved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 8:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 9:15 AM
Here is a thread that you can check too: https://community.st.com/t5/microcontrollers/how-to-generate-s19-file-using-spc5-studio/td-p/604414
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 9:22 AM
Circular reference: That's just the one mentioned in the OP!
:face_with_tears_of_joy::grinning_face_with_sweat:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-11 9:45 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-12 1:33 AM
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.
