D
drum22
Apprenti
Bonjour,
suite a l utilisation de l IDE Arduino 1.8.16, j ai voulu essayer l environnement PlatFormIO sous Visual Code. (OS : Win 7 SP1)
Un sketch qui "tourne" sous Arduino 1.8.16 plante lors de la verification (build) sou sVSCode
avec les lignes suivantes :
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.4.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Linking .pio\build\uno\firmware.elf
.pio\build\uno\src\main.cpp.o (symbol from plugin): In function `setup':
(.text+0x0): multiple definition of `setup'
.pio\build\uno\src\AU03.cpp.o (symbol from plugin):(.text+0x0): first defined here
.pio\build\uno\src\main.cpp.o (symbol from plugin): In function `setup':
(.text+0x0): multiple definition of `loop'
.pio\build\uno\src\AU03.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\uno\firmware.elf] Error 1
Comme le code s execute sous IDE Arduino, le probleme doit etre du cote de VsCode ...???
Quel(s) prametre(s) ai je oublies lors de l installation de PlatFormIO ?!
Merci de vos avis
a++
suite a l utilisation de l IDE Arduino 1.8.16, j ai voulu essayer l environnement PlatFormIO sous Visual Code. (OS : Win 7 SP1)
Un sketch qui "tourne" sous Arduino 1.8.16 plante lors de la verification (build) sou sVSCode
avec les lignes suivantes :
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.4.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr 5.1.0
- toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Linking .pio\build\uno\firmware.elf
.pio\build\uno\src\main.cpp.o (symbol from plugin): In function `setup':
(.text+0x0): multiple definition of `setup'
.pio\build\uno\src\AU03.cpp.o (symbol from plugin):(.text+0x0): first defined here
.pio\build\uno\src\main.cpp.o (symbol from plugin): In function `setup':
(.text+0x0): multiple definition of `loop'
.pio\build\uno\src\AU03.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\uno\firmware.elf] Error 1
Comme le code s execute sous IDE Arduino, le probleme doit etre du cote de VsCode ...???
Quel(s) prametre(s) ai je oublies lors de l installation de PlatFormIO ?!
Merci de vos avis
a++