Hi ! Thanks for your reply!
The steps I took
open vs code > PIO home > open > under quick access > + New Project > inside project wizard Board: Arduino Yun, Framework: Arduino > src > main.cpp
oh and I forgot to mention that, when I remove the " i = i +1;" in the while loop, I was able to get an output from the serial monitor.
Terminal
> Executing task: C:\Users\W10\.platformio\penv\Scripts\pio.exe run --target upload <
Processing yun (platform: atmelavr; board: yun; framework: arduino)
----------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:
PLATFORM: Atmel AVR (3.0.0) > Arduino Yun
HARDWARE: ATMEGA32U4 16MHz, 2.50KB RAM, 28KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- tool-avrdude 1.60300.200527 (6.3.0)
- toolchain-atmelavr 1.50400.190710 (5.4.0)
LDF: Library Dependency Finder -> //bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio\build\yun\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 6.4% (used 165 bytes from 2560 bytes)
Flash: [= ] 12.9% (used 3700 bytes from 28672 bytes)
Configuring upload protocol...
AVAILABLE: avr109
CURRENT: upload_protocol = avr109
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\yun\firmware.hex
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% -0.00s
avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file ".pio\build\yun\firmware.hex"
avrdude: writing flash (3700 bytes):
Writing | ################################################## | 100% 0.27s
avrdude: 3700 bytes of flash written
avrdude: verifying flash memory against .pio\build\yun\firmware.hex:
avrdude: load data flash data from input file .pio\build\yun\firmware.hex:
avrdude: input file .pio\build\yun\firmware.hex contains 3700 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.03s
avrdude: verifying ...
avrdude: 3700 bytes of flash verified
avrdude: safemode: Fuses OK (E:C8, H:D8, L:FF)
avrdude done. Thank you.
====================================== [SUCCESS] Took 3.46 seconds ======================================
Terminal will be reused by tasks, press any key to close it.
PlatformIO serial monitor
> Executing task: C:\Users\W10\.platformio\penv\Scripts\pio.exe device monitor <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at
could not open port 'COM6': could not open port 'COM6': PermissionError(13, None, 5)
The terminal process "C:\Users\W10\.platformio\penv\Scripts\pio.exe 'device', 'monitor'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
> Executing task: C:\Users\W10\.platformio\penv\Scripts\pio.exe device monitor <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at
--- Miniterm on COM6 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
also
> Executing task: C:\Users\W10\.platformio\penv\Scripts\pio.exe device monitor <
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at
--- Available ports:
--- Enter port index or full name: com6
--- Miniterm on com6 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---