AttributeError during setup of CW Husky with neorv32 target

Hello,
During the CW Husky setup with the iCE40 target using “Connecting to Hardware,” I encountered the following error while uploading the firmware:

AttributeError: ‘array.array’ object has no attribute ‘read’

My computer is running Ubuntu 20.04.6, and I am using Python 3.9.5 with the following core packages:

What I have already done:

  1. Upgraded all jupyter requirements.txt packages by running pip install --upgrade --force-reinstall -r requirements.txt
    → The error remained unchanged.

2.Replaced the ‘read’ method above with ‘tobytes’ method.
->The error disappeared, but I obtained some warnings in the next steps.

Anyone have any ideas on this one?

Thanks in advance!

You need to provide the .bin file, not the .hex (as shown here).

You also need to set PLATFORM = 'CW308_NEORV32' (not CWHUSKY). You’ll need to recompile your firmware with this setting.

Thank you for your help, I did it!