platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
78 stars 105 forks source link

A Problem witth VS and PlatformIO IDE #133

Closed RieJuerg closed 3 years ago

RieJuerg commented 3 years ago

Hello MaxGerhard, As requested by you, the LOG file:

The terminal process "C:\Users\Riege.platformio\penv\Scripts\pio.exe 'run', '--target', 'upload'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Executing task in folder Arduino: C:\Users\Riege.platformio\penv\Scripts\pio.exe run --target upload <

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:

Terminal will be reused by tasks, press any key to close it.

PlatformIO.INI:

[env:mkr1000USB] platform = atmelsam board = mkr1000USB framework = arduino board_upload.use_1200bps_touch = no board_upload.wait_for_upload_port = no

valeros commented 3 years ago

Hi @RieJuerg ! What is the reason for using custom upload settings?

RieJuerg commented 3 years ago

hello valeros, thank you very mutch for your replay. I have a problem executing an Arduino sketch via Visual Studio on an Arduino board MKR1000. If I upload the sketch and specify Port6, it will be changed to Port3. When trying to upload the sketch to Port3, an error message appears. I have set the upload Port6 in platformIO.ini at Port6, because the correct upload Port is Port6. I cannot understand why Visual Studio is changing the port to port 3. regards Jurgen

RieJuerg commented 3 years ago

hello valeros, thank you very mutch for your replay. I have a problem executing an Arduino sketch via Visual Studio on an Arduino board MKR1000. If I upload the sketch and specify Port6, it will be changed to Port3. When trying to upload the sketch to Port3, an error message appears. I have set the upload Port6 in platformIO.ini at Port6, because the correct upload Port is Port6. I cannot understand why Visual Studio is changing the port to port 3. regards Jurgen