Hello,
I just stumbled over EAB v2.1.0 RC2:
https://brtchip.com/eve-toolchains/#EVEAssetBuilder- Add new tool Bin2C to convert binary file to C array
Sweet. :-)
I have two minor issues with the converter.
The first is that it does not output leading zeros which make the array look asymetrical.
The second is that the array is generated without size.
uint8_t data [] = {
0x78, 0x9c, 0xed, 0x9d, 0xf, 0x7c, 0x14,
Yes, *minor* issues. :-)
This is pretty much exactly what I was looking for, good job. :-)
The "Custom Touch" module looks interesting.
The example given in the "Read Me" does not compile though, it is using i2c_read16() while
it needs to be i2c_read16le() or maybe i2c_read16be().
After a modification it compiles but the output is irritating:
touch.c compilation is in progress...
Microcode 'capcs.fs' uses 1100 bytes.
Loader command stream is 364 bytes
350 new bytes in firmware
EXCEPTION IN (custom_touch.py, LINE 52 ""): WindowsPath('D:/EAB_Test/touch.bin') and 'D:/EAB_Test\\touch.bin' are the same file
Compilation is done.
There is a touch.bin and a touch.load.h file in the output directory though.
When you do not use the same folder as output folder the result is just this:
touch.c compilation is in progress...
Microcode 'capcs.fs' uses 1100 bytes.
Loader command stream is 364 bytes
350 new bytes in firmware
Compilation is done.
And also only a touch.bin and a touch.load.h file in the output directory.