2024-09-11 06: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.
2024-09-12 01: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:
Hope it helps.
2024-09-11 06: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.
2024-09-11 08: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
2024-09-11 09: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
2024-09-11 09:22 AM
Circular reference: That's just the one mentioned in the OP!
2024-09-11 09: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.
2024-09-12 01: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:
Hope it helps.