wagiminator / MCU-Flash-Tools

Simple ISP Flash Tools for various Microcontrollers
MIT License
45 stars 6 forks source link

chprog.py - "Configuration not set" Error #3

Closed TomatoCube18 closed 3 months ago

TomatoCube18 commented 3 months ago

Dear Stefan,

Thanks a lot for all your wonderful sharing.

I was using the "chprog.py" script for programming CH32X033 chip on a M1 MacOS and bump into the following error. "Configuration not set", it could very well be a local issue on my setup, so might not be something of a concern.

Screenshot 2024-04-02 at 3 17 36 PM

I manage to get the programer to work for me by adding the following "self.dev.set_configuration()" to line 89. (Sorry not a Python programmer myself)

Screenshot 2024-04-02 at 3 17 43 PM

Hope it would come in handy for anyone facing the same issue.

wagiminator commented 3 months ago

Thank you! I'll test whether the addition causes any problems with Linux and if not, I'll add the line by default.

TomatoCube18 commented 3 months ago

Tested Version v2.4 of the chprog.py on the Mac. The code is Working wonderfully.

Thanks.