CubceCellflash Can't read .Hex file

Does anyone have any ideas how i can adapt my hex file to work with the CubeCellflash software.

Below is a snippet of the hex file:

:100000000040002011000000FD040000FD0400007D
:1000100010B501F039F900F035FC00F08FFA00005E
:1000200070B572B699221C4B1C4D1A601C4B953A48
:100030001A601C4B7C321A601B4B763A1A601B4AC2
:100040001B4B18201A6002221A4B00241A6012233C
:100050002B6001F071F8F022174B12011A60174A59
:10006000174B18491A604022174B0D201C60174B84
:100070001A6000F095FF0D2000F0BEFF144B200029
:100080001C6001F009F9112303222B60114B1A6047
:10009000114B1D321A6070BD000302403000104049
:1000A0000000044008000440000304403104000044
:1000B00008030440180304400003014040FF00808F
:1000C0000000014025130000280003400401014006
:1000D0000C02224030003040000E3F400000000083
:1000E0000000000000000000000000000000000010
:1000F0000000000000000000000000000000000000
:1001000010B5064C2378002B07D1054B002B02D0ED
:10011000044800E000BF0123237010BD4801002007
:1001200000000000FC1F0000084B10B5002B03D09E
:100130000749084800E000BF07480368002B00D1CA
:1001400010BD064B002BFBD09847F9E700000000DC
:100150004C010020FC1F0000B8000020000000003F
:1001600010B5054C200001F04FF820686368010BC2
:10017000000589B2184310BDAC010020F8B5FFF7A7
:10018000EFFF00250C0422002B00801859412B00A2
:10019000220C801A99410B04040C1C43584B594DF6
:1001A000E118594B0A091A40584B09011940584B9C

I keep getting this error:

/home/jack/snap/arduino/41/.arduino15/packages/CubeCell/tools/CubeCellflash/0.0.1/CubeCellflash -serial /dev/ttyUSB0 /home/jack/Desktop/CGA_L5R/CGA_L5R_CubeCell-Module.hex
Traceback (most recent call last):
  File "CubeCellflash.py", line 3, in <module>
  File "bootload.py", line 765, in bootload.main
  File "bootload.py", line 73, in bootload.BootloaderData.read
  File "/usr/bin/python3.7/lib/python3.7/encodings/hex_codec.py", line 19, in hex_decode
binascii.Error: Odd-length string
[24701] Failed to execute script CubeCellflash

You need the cyacd file for flash
You can find how to create it from the hex file in the boards file

Hi there is no reference to hex in the boards.txt file inside the CubeCell/1.0.0 folder

llook in the platform.txt file:

recipe.objcopy.hex.pattern="{tools.CubeCellelftool.cmd}" "{compiler.path}{compiler.objcopy.cmd}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"  "{build.path}/{build.board}_{build.band}_RGB_{build.RGB}.cyacd"

this will make a cyacd file from the hex file.
the cyacd file can be flashed

1 Like