platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
139 stars 105 forks source link

Compilation error on Windows 10 #223

Open snikul opened 3 years ago

snikul commented 3 years ago

Hi, Guys! I compile the simplest example for Arduino Uno within VSC Platformio on W10 Pro. With the following errors. I need your friendly assistance to solve my problem. I have already read tones of comments and found no straight answer.

platformio.ini [env:uno] platform = atmelavr board = uno framework = arduino upload_port = COM3 targets = upload

the result:

Processing uno (platform: atmelavr; board: uno; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html PLATFORM: Atmel AVR (3.0.0) > Arduino Uno HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr) PACKAGES:

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

Hope to get your friendly reply.

Sergei Nikulin Kaliningrad/Russia serg.nikulin@gmail.com

snikul commented 3 years ago

Hi, guys! Is anybody there?! I need your friendly assistance. Thanks a lot. Regards.

valeros commented 3 years ago

Hi @snikul ! Do you have an antivirus in your system? Any chance that it's blocking PlatformIO?

snikul commented 3 years ago

Hi. Valerii,

I have the standard Windows Defender installed with no problems in 2 years. On my W10 PRO. In my brandmauer I have: code - privet box [checked] Visual Studio Code - privat box [checked] I tried VS Code with ESP-IDF plugin and could build, transfer to my esp32 target and monitor the output. When I try to repeat any step-by-step example from youtube within VSC with platformio plugin I get that same error message I reported in my message for help. I also followed one of your advices from the internet.

The text of example I tried to build: /**

// Set LED_BUILTIN if it is not defined by Arduino framework // #define LED_BUILTIN 13

void setup() { // initialize LED digital pin as an output. pinMode(LED_BUILTIN, OUTPUT); }

void loop() { // turn the LED on (HIGH is the voltage level) digitalWrite(LED_BUILTIN, HIGH);

// wait for a second delay(1000);

// turn the LED off by making the voltage LOW digitalWrite(LED_BUILTIN, LOW);

// wait for a second delay(1000); }

What could it be?

My Best Regards Sergei Nikulin

пт, 11 дек. 2020 г. в 18:14, Valerii Koval notifications@github.com:

Hi @snikul https://github.com/snikul ! Do you have an antivirus in your system? Any chance that it's blocking PlatformIO?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-core/issues/3752#issuecomment-743251003, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFA3IEYP2HPZ7YGM4F7JITSUIZN7ANCNFSM4UNEPPBQ .

matthewturner commented 3 years ago

Hey @snikul I've just had exactly the same problem . The only way I've been able to resolve this is to disable Realtime Protection in Windows Defender. Everything seems to work now. Obviously this isn't ideal but it's a problem for another day.

snikul commented 3 years ago

Hi, Matt,

Your way is understandable but I think the developers are not professionals well enough. They recommended to fix it the same way in many of their posts. They have to find a couple of good Microsoft system soft guys and pay them ! If Windows Defender is not compatible they have to recommend the alternative protection. Which is good and reliable....

My Best Regards Sergei Nikulin

Kaliningrad/Russia

вс, 28 февр. 2021 г. в 14:16, Matt Turner notifications@github.com:

Hey @snikul https://github.com/snikul I've just had exactly the same problem . The only way I've been able to resolve this is to disable Realtime Protection in Windows Defender. Everything seems to work now. Obviously this isn't ideal but it's a problem for another day.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/platformio/platform-atmelavr/issues/223#issuecomment-787435704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFA3IB53QBRMWP7HTDDDX3TBIQZHANCNFSM4VG4WSTQ .