Aip flash failing with "SAM-BA operation failed" error

Following the instructions at: https://wiki.seeedstudio.com/Grove-TemperatureAndHumidity_Sensor/ for installing, building, flashing the seeed-ardupy-dht library.
Install and build are successful, but ‘aip flash’ fails with:


writeBuffer(scr_addr=0x20004034, dst_addr=0xb000, size=0x1000)
[=== ] 12% (64/517 pages)write(addr=0x20004034,size=0x1000)
writeWord(addr=0x41004014,value=0xc000)
readByte(addr=0x41004012)=0x11
readByte(addr=0x41004013)=0xd
writeWord(addr=0x41004004,value=0xa501)
readByte(addr=0x41004012)=0x11
readByte(addr=0x41004013)=0xd
readByte(addr=0x41004010)=0x11
readByte(addr=0x41004011)=0
writeBuffer(scr_addr=0x20004034, dst_addr=0xc000, size=0x1000)
[==== ] 13% (72/517 pages)write(addr=0x20004034,size=0x1000)
SAM-BA operation failed

Any thoughts on how to fix?

What kind of board are you using?

This is with a Wio Terminal.

I’m using a Mac running MacOS 10.15.7 Catalina (if that makes a difference)

thanks

Is the library version 1.8.2 installed on the release board? I did the same test just now, and I didn’t find any errors during the compilation process.

I encountered that error while going the steps for using the sensor under ArduPy, specifically when trying to run the aip flash command.

I’m not using Arduino IDE.

Does the AIP tool have dependencies on the Arduino IDE?

Maybe you can tell me what software you use?

For faster response and timely communication, you are welcome to join our discord channel to communicate: https://discord.gg/eWkprNDMU7