PC: Mint 22
Arduino IDE 2.3.6
Board: pico2040
Programmer: picoprobe
Board lib installed:
- pico rp2040/2350 5.4.2
- rp 2040 Ethernet
Board config selected: pico(picoprobe)
Intro
I am using the PC/pico/picotool for over a year. Geany, pure c++ (no Arduino code), Cmake, make, arm compiler, openocd, minicom. Cumbersome but no issues.
I just started to use Arduino IDE 2.3.6. Problems galore.
The setup
Simple .ino has some printouts to Serial1. Compiles, uploads runs fine prints out the few lines.
There is the typical blink function, that works as it should.
But I have some 30 other files in the project. When I copy them into the sketch's directory, and compile, they are being compiled. Interesting because THEY ARE NOT INCLUDED IN THE .ino. Not one of them. They are just sitting in the dir.
Only the <Arduino.h> is included in the .ino.
It takes some time to build but OK, I can live with that.
Building is OK.
Then I upload it.
Goes fine, verifies OK.
But it doesn’t print out anything. Doesn’t blink either. I hard reset the pico – nothing at all.
Yes it is set to debug core, port serial1, ttyACM0 as it’s the only one.
And I closed the Arduino serial monitor and opened minicom. Yes, minicom is also set up correctly, works in all other cases.
If I remove the files, it works again. Blinks, Arduino serial or minicom prints what needs to be.
So the million dollar question is, how do these not-involved files affect the otherwise simple project?
Thanks