I should start by saying that I only use Arduinos for very basic programming, mainly LEDs and the odd motor or relay. I have started encountering the most peculiar of problems where all new sketches upload perfectly but do not execute any actions at all. If I take an old sketch and modify it then it works fine but all new sketches, even basic ones, will not run. For example, can you see any problem with this test sketch:
int two = 3;
int three = 4;
int four = 5;
int five = 6;
int six = 7;
}
I have tried using three varieties of board including new out of the bag and the results are the same. I have downloaded the latest software without any change. The files are marked Arduino 1.8.9
I would be very grateful indeed for any ideas on what is causing this! Thanks.
Only in so much that the dialogue reaches "Done uploading" and both red LEDs on the board are lit. No different to any of the old sketches that still work as they ever did. Looking at variables between working and non-working sketches only seems to show that sketches created in the last two weeks have the problem. But I can see nothing that has changed!
There was a recent discussion where web based sketches were reported as being uploaded successfully but failed to run as expected. Using the desktop IDE to load the sketch showed that there were upload errors that weren't reported by the web based tools.
No. I've used different boards but always tried each board with working sketches so I think we can say the boards themselves and settings for each board are all OK.
I'm sorry but I've never used the serial print option. I'm using clone Uno R3 boards but have also tried a Nano and have used both previously used boards and a brand new one. Again, they all work with my old sketches.