earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.03k stars 421 forks source link

File not found after updating to version 4. #2355

Closed ianm8 closed 1 month ago

ianm8 commented 1 month ago

Hi,

I'm getting the following error after updating to version 4.0:

exec: "C:\Users\ianm\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724/picotool": file does not exist

Compilation error: exec: "C:\Users\ianm\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724/picotool": file does not exist

It's just the Blink sketch. Happens with Pico and Pico 2. The files appear to be in the "bin" directory (on my system):

C:\Users\ianm\AppData\Local\Arduino15\packages\rp2040\tools\pqt-picotool\2.2.0-d04e724\bin

This is windows 11.

Thanks and Cheers, Ian

ianm8 commented 1 month ago

OK, what is this "fix" meant to do? Windows tells me it's a "suspicious" file.

ianm8 commented 1 month ago

Just to be clear, I am not running this "fix" which appears to be a trojan.

earlephilhower commented 1 month ago

Don't run it! There's a bunch of thx spam today in my repost with that malware! I'm deleting as I find them.

FeuerSturm commented 1 month ago

@ianm8 I usually have similar problems when updating the pico-core, fix that always works for me is to uninstall the arduino-pico core via ArduinoIDE, quit ArduinoIDE browse to %localAppData%\Arduino15\packages\ and delete the "rp2040"-folder in there. After that start ArduinoIDE and install the latest version of arduino-pico core.

Always works for me.

earlephilhower commented 1 month ago

Just tried an update myself and experienced the same thing. The package.json file explicitly listed a new picotool, but the IDE (2.x in my case) did not honor the new file and left me with the old one. In my case the path was fine, but it did not have the new uf2 command and errored out there.

@FeuerSturm 's suggestion will definitely work. I'll also see if I can adjust the config and make it realize things are updated. Because this was only OpenOCD and Picotool being updated I tried manually to minimize the amount of re-downlading folks would have to do....oh well. :(

ianm8 commented 1 month ago

Thank you so much guys, that fixed it. Have a great day. I'm looking forward to getting a Pico 2!

Cheers, Ian

earlephilhower commented 1 month ago

Just verified that from a 3.9.5 installation with a failing picotool, installing the latest 4.0.1 hotfix caused the IDE to d/l the new tools and be able to build exes properly. Thanks for the fast report before it got too many downloads!