When I upload a simple "blink" on Arduino nano 33 iot, after the last reset the program don't start its execution on microcontroller. Same program works on different architectures like AVR and STM32.
For a new upload I need to put my nano on bootloader mode by pressing reset button twice.
I tried to:
Change nano, actually 5 board
Change platform version (downgrade)
Delete PlatformIO and install again
Delete all project content, except my /src and ini, and rebuild all
I find a workaround:
Create a new project
Copy all sources files in it
Build and upload
BUT... When I connect a new board, sometimes I have same issue
Steps to Reproduce
The error is not systematic, but it seems to be happening with this procedure:
Operating system: Win10 x64
PlatformIO Version : 4.3.4 on VScode
Description of problem
When I upload a simple "blink" on Arduino nano 33 iot, after the last reset the program don't start its execution on microcontroller. Same program works on different architectures like AVR and STM32. For a new upload I need to put my nano on bootloader mode by pressing reset button twice.
I tried to:
/src
andini
, and rebuild allI find a
workaround
:Steps to Reproduce
The error is not systematic, but it seems to be happening with this procedure:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
My upload log, with Arduino nano 33 iot in bootloader mode (press reset twice):
Click to open log
``` Building in release mode Checking size .pio\build\nano_33_iot\firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 20.8% (used 6816 bytes from 32768 bytes) Flash: [= ] 10.0% (used 26140 bytes from 262144 bytes) Configuring upload protocol... AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba CURRENT: upload_protocol = sam-ba Looking for upload port... Auto-detected: COM11 Forcing reset using 1200bps open/close on port COM11 Waiting for the new upload port... Uploading .pio\build\nano_33_iot\firmware.bin Atmel SMART device 0x10010005 found Erase flash done in 0.921 seconds Write 26140 bytes to flash (409 pages) [==== ] 15% (64/409 pages) [========= ] 31% (128/409 pages) [============== ] 46% (192/409 pages) [================== ] 62% (256/409 pages) [======================= ] 78% (320/409 pages) [============================ ] 93% (384/409 pages) [==============================] 100% (409/409 pages) done in 0.175 seconds Verify 26140 bytes of flash with checksum. Verify successful done in 0.021 seconds CPU reset. [SUCCESS] Took 16.19 seconds \```