This file format was created for my custom, fast, safe, web-centric #SPI Flasher.
Data can be translated to/from JSON and raw, with mixed support for block addresses. Other formats must be translated with other software.
The file format is best described by the self-documenting file example.hyx:
;;hyx1 ; the above line is the "magic signature" for the HYX data format. ; it must be placed at the very beginning of the file or stream. ; HYX1 is the same as HYX0 but with repeat enabled (with the dot character) ; comments start with a ';' and span the remaining characters of the line. ; you can put digits there : 0123456789ABCDEFabcdef ; empty lines are ok ; :0123 ; address specifiers are supported for non-binary outputs. ; The address is in hexa too. 01 23 45 67 89 Ab cD Ef ; data are represented in bytes, ; they must come as pairs of hexadecimal digits. ; the case is not meaningful. ; they can be separated by other characters, ; or even glued together, but a space is recommended and safest. FE FF ABCDEF ; note : this is NOT a big endian representation 00..... ; 0 is repeated 5 times (plus the first one) ; 20140907 : An optional end-of-file marker is possible with HYX1: @ After the end of file we can write anything here.
The parser is very easy to write.
The C version is provided as an #include in input_hyx.c. You must provide some callbacks for the input and output of bytes. Look at hyx2bin.c for an example of .hyx import.
A VHDL version is also available.
One cool side effect is that .hyx files (hey David Duchovny) can be concatenated, which might make perfectly valid results if you you're careful with the offsets and the '@' end-of-file marker.
TODO: support .gz compression... see https://hackaday.io/project/7758/log/30497-todo
TODO: import & export in JS and VHDL
TODO: support the "*" RLE encoding ?
Data integrity is not part of the format. Data alterations are rare and if you need to ensure integrity, other powerful tools exist, even GZIP has built-in CRC. And there is now #PEAC Pisano with End-Around Carry algorithm :-)
-o-O-0-O-o-
Logs:
1. Reboot_2023
2. .
3 .
4. .
5. .
Development resumes !
The #YGREC8 is getting a boost and needs good tools so this archive is revived.