pine64 / ArduinoCore-bouffalo

BL602 Arduino Core for Arduino IDE
GNU Lesser General Public License v2.1
69 stars 14 forks source link

Problems with .arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py #9

Closed AgentSmith0 closed 1 year ago

AgentSmith0 commented 1 year ago

In https://github.com/pine64/ArduinoCore-bouffalo/issues/4 I described the problems I had with uploading programs to the PineCone. I needed to add #!/usr/bin/python3 and convert the file encoding to be able to execute the python script bl602-flasher.py. But now I get the following error message when trying to upload code form the Arduino IDE:

Traceback (most recent call last):
  File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 234, in <module>
    main()
  File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 216, in main
    send_sync(ser)
  File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 113, in send_sync
    expect_ok(ser)
  File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 56, in expect_ok
    raise ValueError(binascii.hexlify(err))
ValueError: b'ffff'
Failed uploading: uploading error: exit status 1

Does anyone know how to modify the script to fix this error?

AgentSmith0 commented 1 year ago

Getting the same error as in https://github.com/pine64/ArduinoCore-bouffalo/issues/8 now.