earlephilhower / arduino-pico

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

Malfunction at restart #1581

Closed Lizethgm closed 1 year ago

Lizethgm commented 1 year ago

Hi, I have an error in the program generated from pico-sdk (https://github.com/raspberrypi/pico-sdk)

If I load to my board which has a RP2040 chip a .uf2 generated from the pico-sdk it works correctly when loading the first time, but once the board is turned off and on again the program is still there but does not initialize. Sometimes it works when restart but it is very rare when it does. The error can be seen in the following video. https://github.com/earlephilhower/arduino-pico/assets/105874681/2e299098-daf0-42cb-9206-82ab782732a3

If I use its core "arduino-pico" it works correctly, it doesn't have any problem, it initializes all the time even if it is turned off and on again. This can be seen in the following video https://github.com/earlephilhower/arduino-pico/assets/105874681/f3735d04-6070-403b-88c6-b58f196ac2ff

Do you have any idea what could be happening or what is missing to add to the pico-sdk?

earlephilhower commented 1 year ago

Sorry, but there's very little someone without your exact HW and app can do. FWIW the core here uses the SDK unmodified so there are no code changes there that would affect things. My suggestions: