;tldr: Nothing did anything that indicates a change to me. Further, even an “only upload” command triggers the monitor immediately after. Could this be related to the platformio.ini monitor_speed = 115200
? I will leave the baudrade default and try again. Will post my results in a minute.
delay(3000);
console logs
Upload:
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM4
Forcing reset using 1200bps open/close on port COM4
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.847 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.063 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.007 seconds
CPU reset.
=========================================================================== [SUCCESS] Took 6.49 seconds ===========================================================================
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.844 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.062 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.007 seconds
CPU reset.
========================================================================== [SUCCESS] Took 10.72 seconds ==========================================================================
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\mkr1000USB\src\main.cpp.o
Linking .pio\build\mkr1000USB\firmware.elf
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 bytes from 262144 bytes)
Configuring upload protocol...
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Error: Please specify `upload_port` for environment or use global `--upload-port` option.
For some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)
*** [upload] Explicit exit, status 1
=========================================================================== [FAILED] Took 3.06 seconds ===========================================================================
The terminal process "C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe 'run', '--target', 'upload', '--environment', 'mkr1000USB'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.847 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.057 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.006 seconds
CPU reset.
========================================================================== [SUCCESS] Took 10.75 seconds ==========================================================================
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\mkr1000USB\src\main.cpp.o
Linking .pio\build\mkr1000USB\firmware.elf
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.846 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.063 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.006 seconds
CPU reset.
========================================================================== [SUCCESS] Took 10.85 seconds ==========================================================================
Terminal will be reused by tasks, press any key to close it.
automatic monitor mode:
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe device monitor --environment mkr1000USB <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Available ports:
--- Enter port index or full name:
while(!Serial){ ; }
console logs
Upload:
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM4
Forcing reset using 1200bps open/close on port COM4
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.847 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.063 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.007 seconds
CPU reset.
=========================================================================== [SUCCESS] Took 6.49 seconds ===========================================================================
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.844 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.062 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.007 seconds
CPU reset.
========================================================================== [SUCCESS] Took 10.72 seconds ==========================================================================
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\mkr1000USB\src\main.cpp.o
Linking .pio\build\mkr1000USB\firmware.elf
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 bytes from 262144 bytes)
Configuring upload protocol...
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Error: Please specify `upload_port` for environment or use global `--upload-port` option.
For some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)
*** [upload] Explicit exit, status 1
=========================================================================== [FAILED] Took 3.06 seconds ===========================================================================
The terminal process "C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe 'run', '--target', 'upload', '--environment', 'mkr1000USB'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe run --target upload --environment mkr1000USB <
Processing mkr1000USB (platform: atmelsam; board: mkr1000USB; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/mkr1000USB.html
PLATFORM: Atmel SAM (5.0.2) > Arduino MKR1000
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd 1.8.9
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.0
- tool-bossac 1.10700.190624 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\mkr1000USB\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.8% (used 2244 bytes from 32768 bytes)
Flash: [ ] 2.6% (used 6820 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: COM6
Forcing reset using 1200bps open/close on port COM6
Waiting for the new upload port...
Uploading .pio\build\mkr1000USB\firmware.bin
Atmel SMART device 0x10010005 found
Erase flash
done in 0.847 seconds
Write 6820 bytes to flash (107 pages)
[================= ] 59% (64/107 pages)
[==============================] 100% (107/107 pages)
done in 0.057 seconds
Verify 6820 bytes of flash with checksum.
Verify successful
done in 0.006 seconds
CPU reset.
========================================================================== [SUCCESS] Took 10.75 seconds ==========================================================================
Terminal will be reused by tasks, press any key to close it.
Automatic followup of monitor:
> Executing task in folder mkr1000-client: C:\Users\Sinthoras\.platformio\penv\Scripts\pio.exe device monitor --environment mkr1000USB <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Available ports:
--- Enter port index or full name: