Motorola s-record is a common text based ( ASCII ) firmware usual data or file. I was made it for make memory mapped before updating Renesas(Hitachi) H8x models in 2012.
Now some part of writing into a file became to open source here:
Anybody can use it in free as MIT License. But no warranty.