ninja2
September 21, 2023, 11:34am
1
Recently I've been unable to complete the upload of a modified sketch to just three of my numerous Arduino boards. Interestingly all three use an FTDI interface for the USB (i.e. not ATMega16U2). The 3 boards are an old MEGA1280, and two Sparkfun MEGApro's with a FTDI breakout for the USB interface.
All these boards have worked fine for years, and they still work fine, just won;t upload. They run the sketches (loaded a few weeks ago) and the Serial Monitor works fine, except any upload attempt always fails with errors like those shown below.
I wonder what changed recently to cause this?
Sketch uses 50440 bytes (19%) of program storage space. Maximum is 253952 bytes.
Global variables use 3611 bytes (44%) of dynamic memory, leaving 4581 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\\.\COM8": Access is denied.
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Failed uploading: uploading error: exit status 1`
Please post error messages in code tags (the <CODE/> button).
Have you selected the right port?
And do you still have the Serial Monitor open on the port?
The Serial Monitor needs to be closed before uploading with IDE 2.x.
There is one known issue in IDE2.x related to FTDI chips.
You don't mention it but the known problem occurs when you have the serial monitor open.
I'm not sure if that results in the error message that you get.
1 Like
ninja2
September 21, 2023, 9:00pm
4
Thanks for your suggestions.
I haven't been actively closing the Serial Monitor so I'll give that a go later. Although I am able to upload to any of my other boards (MEGAs without FTDI and UNOs) even if Serial Monitor is open.
I was using IDE 1.8.19 until maybe two months ago and everything worked fine. I changed to IDE2.x and I'm pretty sure everything worked fine at first, including on FTDI boards. but it's curious this problem only arose in last few weeks.
ninja2
September 22, 2023, 11:54am
5
I tested but it makes no difference if Serial Monitor is open or closed when I try to upload a sketch. Same errors as my post #1 .
So still not solved. Other suggestions welcomed ...!
Hi @ninja2 . I know you already said you have closed Serial Monitor, but just to make sure I will explain that you must click the X icon on the "Serial Monitor " tab in the bottom panel of the Arduino IDE window to close the tab before attempting an upload:
Something that wasn't mentioned previously is that having Serial Plotter open also causes the same problem. In this case the procedure is a bit more complex:
Close the "Serial Plotter " window.
If the "Serial Monitor " view is not already open, select Tools > Serial Monitor from the Arduino IDE menus to open it.
ⓘ We must do an open/close cycle on Serial Monitor as a workaround for a bug in Serial Plotter
Click the X icon on the "Serial Monitor " tab in the bottom panel of the Arduino IDE window to close the tab.
1 Like
ninja2
September 23, 2023, 9:29am
7
thanks for your suggestions ptillisch .
I followed them meticulously but unfortunalely the uplaod stil failed with these messages:
Sketch uses 50488 bytes (19%) of program storage space. Maximum is 253952 bytes.
Global variables use 3645 bytes (44%) of dynamic memory, leaving 4547 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Failed uploading: uploading error: exit status 1
Note that you you are no longer getting the "Access is denied." error. The upload is now failing for a completely different reason.
You have what I like to refer to as a "problem stack". When undertaking complex endeavors, the will often be multiple unrelated problems stacked on top of each other. This means that solving one problem (in this case the "Access is denied." error caused by the IDE bug) only gets you to the next one (the "timeout" error).
That makes it difficult to see that any progress is being made, but I do think you have indeed made progress by getting to this new error.
I'm going to ask you to post the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences " dialog will open.
Uncheck the box next to Show verbose output during: ☑ compilation in the "Preferences " dialog.
Check the box next to Show verbose output during: ☐ upload .
Click the "OK " button.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see a "Upload error: ... " notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES " button on that notification.
Open a forum reply here by clicking the "Reply " button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (``` ) to your reply to make sure the error messages are correctly formatted.
Press Ctrl +V .
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the "Reply " button to post the output.
Please also tell us whether you were uploading to the Mega 1280 board or the Sparkfun MEGApro during the above procedure.
ninja2
September 23, 2023, 8:29pm
9
done as requested:
FQBN: arduino:avr:mega
Using board 'mega' from platform in folder: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for DS1307RTC.h: [DS1307RTC@1.4.1]
ResolveLibrary(DS1307RTC.h)
-> candidates: [DS1307RTC@1.4.1]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for TimeLib.h: [Time@1.6.1]
ResolveLibrary(TimeLib.h)
-> candidates: [Time@1.6.1]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for SdFat.h: [SdFat@2016.7.24]
ResolveLibrary(SdFat.h)
-> candidates: [SdFat@2016.7.24]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal@1.0.7]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for OneWire.h: [OneWire@2.3.7]
ResolveLibrary(OneWire.h)
-> candidates: [OneWire@2.3.7]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for DallasTemperature.h: [DallasTemperature@3.9.0]
ResolveLibrary(DallasTemperature.h)
-> candidates: [DallasTemperature@3.9.0]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for Streaming.h: [Streaming@6.1.1]
ResolveLibrary(Streaming.h)
-> candidates: [Streaming@6.1.1]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Streaming\src C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Alternatives for TimedAction.h: [TimedAction]
ResolveLibrary(TimedAction.h)
-> candidates: [TimedAction]
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Streaming\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\TimedAction C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o nul
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC\DS1307RTC.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time\DateStrings.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time\Time.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FatFile.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FatFileLFN.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FatFilePrint.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FatFileSFN.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FatVolume.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\FmtNumber.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\StdioStream.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\fstream.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\istream.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\FatLib\ostream.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\MinimumSerial.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SdCard\SdSpiCard.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SdCard\SdSpiCardEX.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SdCard\SdioCardEX.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SdCard\SdioTeensy.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SpiDriver\SdSpiESP8266.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SpiDriver\SdSpiSAM3X.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SpiDriver\SdSpiSTM32F1.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src\SpiDriver\SdSpiTeensy3.cpp
Using cached library dependencies for file: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp
Using cached library dependencies for file: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Using cached library dependencies for file: C:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src\LiquidCrystal.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire\OneWire.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature\DallasTemperature.cpp
Using cached library dependencies for file: c:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\TimedAction\TimedAction.cpp
Generating function prototypes...
C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src -IC:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Streaming\src -Ic:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\TimedAction C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\sketch\O2sensor.ino.cpp -o C:\Users\cj\AppData\Local\Temp\2608962837\sketch_merged.cpp
C:\Users\cj\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\cj\AppData\Local\Temp\2608962837\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\mega" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\DS1307RTC" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\Time" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\SdFat\\src" "-IC:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\SPI\\src" "-IC:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries\\Wire\\src" "-IC:\\Users\\cj\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\OneWire" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\DallasTemperature" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\Streaming\\src" "-Ic:\\Users\\cj\\Documents\\ARDUINO\\SKETCHES\\libraries\\TimedAction" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\sketch\\O2sensor.ino.cpp" -o "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\sketch\\O2sensor.ino.cpp.o"
Compiling libraries...
Compiling library "DS1307RTC"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\DS1307RTC\DS1307RTC.cpp.o
Compiling library "Time"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\Time\Time.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\Time\DateStrings.cpp.o
Compiling library "SdFat"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FmtNumber.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FatFileLFN.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FatFilePrint.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\StdioStream.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FatVolume.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\fstream.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\istream.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FatFile.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\FatFileSFN.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SdCard\SdioTeensy.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SpiDriver\SdSpiESP8266.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SdCard\SdSpiCardEX.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\MinimumSerial.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SdCard\SdSpiCard.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SpiDriver\SdSpiSTM32F1.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\FatLib\ostream.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SdCard\SdioCardEX.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SpiDriver\SdSpiSAM3X.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SdFat\SpiDriver\SdSpiTeensy3.cpp.o
Compiling library "SPI"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\SPI\SPI.cpp.o
Compiling library "Wire"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\Wire\Wire.cpp.o
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\Wire\utility\twi.c.o
Compiling library "LiquidCrystal"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\LiquidCrystal\LiquidCrystal.cpp.o
Compiling library "OneWire"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\OneWire\OneWire.cpp.o
Compiling library "DallasTemperature"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\DallasTemperature\DallasTemperature.cpp.o
Compiling library "Streaming"
Compiling library "TimedAction"
Using previously compiled file: C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D\libraries\TimedAction\TimedAction.cpp.o
Compiling core...
Using precompiled core: C:\Users\cj\AppData\Local\Temp\arduino\cores\arduino_avr_mega_cpu_atmega2560_c2827c15a2b770c8806c7933a773e3e6\core.a
Linking everything together...
"C:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega2560 -o "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.elf" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\sketch\\O2sensor.ino.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\DS1307RTC\\DS1307RTC.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\Time\\DateStrings.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\Time\\Time.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FatFile.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FatFileLFN.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FatFilePrint.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FatFileSFN.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FatVolume.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\FmtNumber.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\StdioStream.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\fstream.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\istream.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\FatLib\\ostream.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\MinimumSerial.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SdCard\\SdSpiCard.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SdCard\\SdSpiCardEX.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SdCard\\SdioCardEX.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SdCard\\SdioTeensy.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SpiDriver\\SdSpiESP8266.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SpiDriver\\SdSpiSAM3X.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SpiDriver\\SdSpiSTM32F1.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SdFat\\SpiDriver\\SdSpiTeensy3.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\LiquidCrystal\\LiquidCrystal.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\OneWire\\OneWire.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\DallasTemperature\\DallasTemperature.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D\\libraries\\TimedAction\\TimedAction.cpp.o" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/..\\..\\cores\\arduino_avr_mega_cpu_atmega2560_c2827c15a2b770c8806c7933a773e3e6\\core.a" "-LC:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D" -lm
"C:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.elf" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.eep"
"C:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.elf" "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.hex"
Using library DS1307RTC at version 1.4.1 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DS1307RTC
Using library Time at version 1.6.1 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Time
Using library SdFat at version 2016.7.24 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\SdFat
Using library SPI at version 1.0 in folder: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
Using library Wire at version 1.0 in folder: C:\Users\cj\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\cj\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library OneWire at version 2.3.7 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\OneWire
Using library DallasTemperature at version 3.9.0 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\DallasTemperature
Using library Streaming at version 6.1.1 in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\Streaming
Using library TimedAction in folder: C:\Users\cj\Documents\ARDUINO\SKETCHES\libraries\TimedAction (legacy)
"C:\\Users\\cj\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\cj\\AppData\\Local\\Temp\\arduino\\sketches\\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.elf"
Sketch uses 40428 bytes (15%) of program storage space. Maximum is 253952 bytes.
Global variables use 3555 bytes (43%) of dynamic memory, leaving 4637 bytes for local variables. Maximum is 8192 bytes.
"C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega2560 -cwiring "-PCOM9" -b115200 -D "-Uflash:w:C:\Users\cj\AppData\Local\Temp\arduino\sketches\7746682E48B86B7B32CF25D6F860643D/O2sensor.ino.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\cj\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM9
Using Programmer : wiring
Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
ninja2
September 23, 2023, 9:05pm
10
I did notice that the 'access is denied' error dissappeared. I take it that whenever this error appears again I should first check the Serial Monitor and Plotter are closed.
It may help if I explain my recent usage. I took several years break from my Arduino hobby until maybe 2 months ago when I started fiddling again, using IDE 1.8.19 that was still sitting on two of my computers. It was maybe a month ago that I upgraded to IDE 2.2 and I've been learning the new interface since. Maybe two weeks ago I did turn Serial Monitor on, but I didn't use it or spend any time on it. It may be that was the trigger for the 'access denied' errors to start appearing on any board with an FTDI USB I/F?
One thing I noticed immediately using IDE 2 is there seems to be no way to display the Serial Monitor in a window of its own, unlike IDE 1.8.19. So I was experimenting with having two different sketches open, with the Serial Monitor open in the other (unrelated) sketch. A bit clunky although it works OK, but maybe this method was a trigger for my 'access denied' issue?
Meanwhile I may re-install IDE 1.8.19 on one of my computers, to test if it's an IDE 2 issue.
Please provide the other information I requested:
That is correct. In my experience, the problem occurs 100% reliably so you will need to get into the habit of closing Serial Monitor and Serial Plotter before every upload.
Arduino IDE 2.x will automatically reopen Serial Monitor again when you open a sketch if it was open the last time you had the sketch open. So if you opened it once and never closed it again after that, Serial Monitor will continue to be open while uploading the sketch even weeks later.
You might not notice the fact that Serial Monitor is open because the tabbed design of the bottom panel of the IDE means that if you have the "Output " view selected then you don't see the "Serial Monitor " view (other than its tab).
The Arduino IDE developers are tracking this deficiency here:
opened 07:48PM - 29 Mar 21 UTC
type: enhancement
topic: code
topic: serial monitor
### Describe the request
Allow **Serial Monitor** to be placed in a dedicated… window separate from the primary Arduino IDE window.
🙂 It will be possible for the user to control the display location of the Serial Monitor separately from the primary Arduino IDE window according to their needs and preferences.
🙂 This will provide feature parity with the Arduino IDE 1.x Serial Monitor.
### Describe the current behavior
Serial Monitor is a view in the bottom panel of the primary Arduino IDE window.
🙁 It is not possible to move Serial Monitor to a separate screen in order to dedicate all space on the primary screen to the Arduino IDE editor.
### Arduino IDE version
#### Original report
2.0.0-beta.4
#### Last verified with
2.0.1-snapshot-32d904c
### Operating system
All
### Operating system version
Any
### Additional context
The requested "tear off" capability would probably make sense for other windows ("**Output**" view) too.
<a name="workaround"></a>
#### Workaround
1. Select **File > New Sketch** from the Arduino IDE menus.
A new Arduino IDE window will open.
1. Select **Tools > Serial Monitor** from the Arduino IDE menus.
The "**Serial Monitor**" view will open in the bottom panel of the Arduino IDE window.
1. Hover the mouse pointer over the top border of the bottom panel.
The mouse pointer will change into a resize icon.
1. Click and drag the border up until it reaches its maximum height.
You can now use that Arduino IDE window solely for Serial Monitor, switching back to the other Arduino IDE window to do sketch editing, compile, upload, etc. operations just as you would do with the Arduino IDE 1.x Serial Monitor.
#### Additional requests
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-810073157
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-813597014
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-850550857
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-983961342
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1006024396
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1034829176
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1068087883
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1195300991
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1247730828
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1247930105
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1257039691
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1382677544
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1399304977
- https://github.com/arduino/arduino-ide/issues/289#issuecomment-1399421191
- https://github.com/arduino/arduino-ide/issues/1799
- https://github.com/arduino/arduino-ide/issues/1268
- https://github.com/arduino/arduino-ide/issues/755
- https://github.com/arduino/arduino-ide/issues/2131
- https://forum.arduino.cc/t/making-the-serial-console-a-dockable-screen-again/1079586
- https://forum.arduino.cc/t/ide-2-0-3-undocking-serial-monitor/1063170
- https://forum.arduino.cc/t/arduino-ide-usb-serial-terminal-issues/1049458/13
- https://forum.arduino.cc/t/how-to-get-all-my-1-18-19-libraries-installed-in-2-0-1/1050248/3
- https://forum.arduino.cc/t/serialmonitor-74880-baud-rate-in-ide-2-0-1/1046886
- https://forum.arduino.cc/t/windows-the-serial-monitor-window-needs-to-pop-out-please/1036538
- https://forum.arduino.cc/t/using-v-2-0-serial-monitor-print/1034093
- https://forum.arduino.cc/t/arduino-2-0-0-macos-unexpected-differences/1033549
- https://forum.arduino.cc/t/2-0-keyboard-shortcuts-dont-work/1033105/11
- https://forum.arduino.cc/t/arduino-ide-2-0-0-available-for-download/1031651/17
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/1
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/3
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/4
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/15
- https://forum.arduino.cc/t/changing-ide-fonts/1028827
- https://forum.arduino.cc/t/serial-monitor-issues-hopefully-fixed-before-release/1026548
- https://forum.arduino.cc/t/serial-monitor-in-seperate-window/1022661/1
- https://forum.arduino.cc/t/serial-monitor-in-seperate-window/1022661/2
- https://forum.arduino.cc/t/serial-monitor-in-seperate-window/1022661/5
- https://forum.arduino.cc/t/automatic-build-external-screen-for-serial/1013958
- https://forum.arduino.cc/t/serial-monitor-with-new-ide/1010684/10
- https://forum.arduino.cc/t/ide-2-0-rc5-serial-monitor-problems/978293
- https://forum.arduino.cc/t/serial-monitor-characteristics-fail/943590
- https://forum.arduino.cc/t/how-to-dock-serial-monitor/942477
- https://forum.arduino.cc/t/how-to-dock-serial-monitor/942477/12
- https://forum.arduino.cc/t/no-support-for-esp32-boards-manager-2-01/940115/5
- https://forum.arduino.cc/t/first-impressions-and-comments/930873
- https://forum.arduino.cc/t/missing-serial-monitor-and-serial-plotter/924262
- https://forum.arduino.cc/t/arduino-2-0-has-too-many-problems/1100602
- https://forum.arduino.cc/t/arduino-2-0-has-too-many-problems/1100602/13
- https://forum.arduino.cc/t/missing-baud-rate-dropdown-v2-0-4-ide/1105972
- https://forum.arduino.cc/t/arduino-2-04-stuck-in-splash-screen/1107587/11
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/16
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/17
- https://forum.arduino.cc/t/serial-monitor-double-window-problem/1112463
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/18
- https://forum.arduino.cc/t/ide-2-1-i-am-not-happy/1142471
- https://forum.arduino.cc/t/ide-2-serial-monitor/1146303
- https://forum.arduino.cc/t/serial-monitor-in-a-separate-window/1031455/26
- https://forum.arduino.cc/t/i-miss-my-separate-serial-monitor-window/1163606
- https://forum.arduino.cc/t/cannot-upload-to-ftdi-megas-only/1170683
- https://forum.arduino.cc/t/your-reason-for-not-switching-to-the-2-x-ide/1176322
- https://forum.arduino.cc/t/your-reason-for-not-switching-to-the-2-x-ide/1176322/23
- https://www.facebook.com/official.arduino/posts/pfbid02x5KM54Gf7L56Tea79pLYVafrciYAGZrioedDVD6YFKEnJdsiNT3w6S2WinZtrAc9l?comment_id=1395510504579311
- https://www.facebook.com/official.arduino/posts/pfbid02qWaAtdLM6Hz43h7BRiYLg3yAoDz4HXRw28tLpgc4d1rszqG5gjbbumA21cLcS2Vcl?comment_id=996845494967736
- https://twitter.com/DevReliefFred/status/1696610597171773571
- https://twitter.com/PaulStoffregen/status/1658089036685410305
### Issue checklist
- [X] I searched for previous requests in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the feature was still missing when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My request contains all necessary details
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject:
The workaround is:
Select File > New Sketch from the Arduino IDE menus.
A new Arduino IDE window will open.
Select Tools > Serial Monitor from the Arduino IDE menus.
Hover the mouse pointer over the top border of the bottom panel.
The mouse pointer will change into a resize icon.
Click and drag the border up until it reaches its maximum height.
You can now use that Arduino IDE window solely for Serial Monitor, switching back to the other Arduino IDE window to do sketch editing, compile, upload, etc. operations just as you would do with the Arduino IDE 1.x Serial Monitor.
I recommend you to wait. I might be able to provide you with a simple solution once you provide the information I requested.
ninja2
September 24, 2023, 11:22pm
12
Great info many thanks again. I'll look into all the details a bit later.
Meanwhile the compilation / upload report above was for my old MEGA 1280.
OK, great. Please try this:
Select Tools > Processor ATmega1280 from the Arduino IDE menus.
Upload the sketch to your "MEGA 1280" board.
Arduino used a single board definition for both the Mega 2560 and the Mega 1280 boards but a different configuration is needed depending on which board you are targeting so they added this Tools > Processor menu in order to allow the user to select which variant of the board they are using. From the output you shared in your previous reply, I can see that you had "ATmega2560 (Mega 2560) " selected from the menu. I believe that is the cause of the most recent "avrdude: stk500v2_getsync(): timeout communicating with programmer" upload failure.
1 Like
ninja2
September 25, 2023, 10:29am
14
OK that worked . Still a bit embarrasing that I didn't even notice that 1280 processor item in the tools menu ... reminds me of that video of basketball game with a gorilla walking through the middle ... that most don't notice !
So now I'm hoping you have a similar magic solution for my Sparkfun MEGApro boards ? (with USB connected using a Sparkfun FTDI breakout).
Actually I'll retry uploading on one of them anyway. Maybe they only need the Serial Monitor closed ... standby!
ninja2
September 25, 2023, 10:43am
15
Yay, uploaded to a MEGApro too ...
So seems the solutions are the Serial Monitor fix for MEGApro and MEGA1280, plus Processor setting fot the MEGA 1280 .
Great work, thanks ptillisch
PS: I wanted to mark two of your posts as the solution (#6 and #13 ) but seems I can't nominate more than one post.
1 Like
You are welcome. I'm glad everything is working with all your boards now. Thanks for taking the time to post an update with your results.
Regards,
Per
ninja2
September 25, 2023, 8:45pm
17
As an aside, IMO its quite odd/curious that the Serial Monitor issue doesn't arise for all baords, only those with FTDI interface ?
It is indeed. The primary developer of the Arduino IDE, Akos Kitta, did an investigation and reported their findings here:
opened 07:07AM - 23 Dec 22 UTC
status: blocked
topic: code
type: imperfection
### Describe the problem
In order to upload to an Arduino board via a serial … port, the upload tool (e.g., [**AVRDUDE**](https://github.com/avrdudes/avrdude)) must be able to open the port. This is not possible if another process already has control of the port.
Arduino IDE's "Serial Monitor" and and "Serial Plotter" components also use the serial port of the board. Arduino IDE handles this potential conflict of port usage automagically by closing the port in Serial Monitor/Plotter when an upload process is triggered, then opening it again after the upload is finished. This means no special action is needed from the user to upload while Serial Monitor/Plotter is open.
🐛 The upload fails with an "`Access is denied`" error under the following conditions:
- The board uses an FTDI FT232R USB chip
- Arduino IDE is running on a Windows machine
- Serial Monitor or Serial Plotter is open
I've been using Arduino IDE 2.0.3 with Nano without issues when uploading on Ubuntu. Now I've tried it on Windows 11, and most of the time, it gives me this error:
```text
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\macie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.
```
But I can see logs from the serial monitor in Arduino IDE -> serial monitor.
### To reproduce
#### Equipment
A board or other device that has an [FTDI FT232R USB chip](https://ftdichip.com/products/ft232rl/)
The [classic **Arduino Nano**](https://docs.arduino.cc/hardware/nano) is a common board that uses this chip.
FT232R modules ([example](https://docs.arduino.cc/retired/other/usb-serial-converter)) or cables ([example](https://www.sparkfun.com/products/9717)) are also often used to upload to boards such as the [**Arduino Pro Mini**](https://www.sparkfun.com/products/11113) that don't have an integrated USB chip.
The fault can be reproduced even if the FT232R-based device is not an Arduino board. In this case, the upload is expected to fail, but it would fail with a "`not in sync`" error instead of "`Access is denied`".
#### Steps
1. Select **File > New Sketch** from the Arduino IDE menus.
1. Connect the Arduino board to your computer.
1. Select the board and port from the Arduino IDE menus.
1. If the Serial Monitor view is not already open, select **Tools > Serial Monitor** from the Arduino IDE menus to open it.
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload process to finish.
🐛 The upload fails:
```text
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\macie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.
```
1. Click the **X** icon on the "**Serial Monitor**" view tab in the bottom panel.
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload process to finish.
🙂 The upload is successful.
1. Select **Tools > Serial Plotter** from the Arduino IDE menus.
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload process to finish.
🐛 The upload fails:
```text
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\macie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.
```
1. Close the "**Serial Plotter**" window.
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload process to finish.
🐛 The upload fails:
```text
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\macie\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.
```
**ⓘ** This unexpected result is caused by a separate bug: https://github.com/arduino/arduino-ide/issues/1423
### Expected behavior
Serial Monitor and Serial Plotter do not interfere with upload process.
### Arduino IDE version
#### Original report
2.0.3
#### Last verified with
69ae38e
### Operating system
Windows
### Operating system version
Edition Windows 11 Pro
Version 22H2
Installed on 07/11/2022
OS build 22621.963
Experience Windows Feature Experience Pack 1000.22638.1000.0
### Additional context
I bisected the introduction of the fault to df8658e
---
Logs generated from an upload that fails with this fault using the build for 053574b with the `arduino.cli.daemon.debug` [advanced setting](https://github.com/arduino/arduino-ide/blob/main/docs/advanced-usage.md#advanced-settings) set to `true`:
[2023-08-16_log.log](https://github.com/arduino/arduino-ide/files/12357046/2023-08-16_log.log)
---
I have no problems uploading sketches on Arduino IDE 1.8.19 from Microsoft Store on the same system. I can quit 2.0.3, start 1.8.19, and it's working immediately.
---
I cannot reproduce the fault on Linux (Ubuntu 22.04) or macOS (Ventura).
---
I cannot reproduce the fault when using native USB boards (e.g., [**Leonardo**](https://docs.arduino.cc/hardware/leonardo), [**MKR**](https://docs.arduino.cc/#mkr-family)) or boards that use other models of dedicated USB chip (e.g., ATmega16U2 on Uno and Mega, WCH CH340 on derivative boards).
<a name="workaround"></a>
#### Workaround
<a name="serial-monitor"></a>
##### Serial Monitor
1. Click the **X** icon on the "**Serial Monitor**" tab in the bottom panel of the Arduino IDE window to close the tab:

1. Upload the sketch.
1. Open **Serial Monitor** again if needed (by clicking the icon on the IDE toolbar or the **Tools > Serial Monitor** menu item) after the upload is finished.
<a name="serial-plotter"></a>
##### Serial Plotter
1. Close the "**Serial Plotter**" window.
1. If the "**Serial Monitor**" view is not already open, select **Tools > Serial Monitor** from the Arduino IDE menus to open it.
**ⓘ** We must do an open/close cycle on **Serial Monitor** as a workaround for [a bug](https://github.com/arduino/arduino-ide/issues/1423) in **Serial Plotter**
1. Click the **X** icon on the "**Serial Monitor**" tab in the bottom panel of the Arduino IDE window to close the tab:

1. Upload the sketch.
1. Open **Serial Monitor** and/or **Serial Plotter** again if needed after the upload is finished.
#### Additional reports
- https://forum.arduino.cc/t/brand-new-nano-wont-connect-to-latestide-software/1129473/10
- https://forum.arduino.cc/t/arduino-nano-not-able-to-upload-comx-port-access-denied/1081669/15
- https://forum.arduino.cc/t/elusive-uno-upload-error-access-is-denied/1067785/5
- https://forum.arduino.cc/t/port-issues-with-ide-2-0-3/1069090
- https://forum.arduino.cc/t/fdti-breakout-2-types-cause-usb-acess-denial/1088005
- https://forum.arduino.cc/t/port-access-is-denied/1089761
- https://forum.arduino.cc/t/cant-open-device-when-uploading-but-serial-monitor-works/1127731
- https://forum.arduino.cc/t/2-1-0-no-longer-disables-monitor-during-upload-update/1139065
- https://forum.arduino.cc/t/access-denied-when-uploading-to-arduino-nano/1139330/1
- https://forum.arduino.cc/t/access-denied-when-uploading-to-arduino-nano/1139330/11
- https://forum.arduino.cc/t/2-11-com3-access-is-denied/1143750
- https://forum.arduino.cc/t/cannot-upload-to-arduino-nano/1145391
- https://forum.arduino.cc/t/cant-upload-to-pro-mini-port-access-is-denied/1152460
- https://forum.arduino.cc/t/cannot-upload-to-ftdi-megas-only/1170683
- https://github.com/arduino/arduino-ide/issues/1937
- https://github.com/arduino/arduino-ide/issues/726#issuecomment-1464313325
- https://github.com/arduino/arduino-ide/issues/1783#issuecomment-1614370292
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
This is what is happening:
client (IDE2) ends the stream
server (CLI) receives the end of the stream, kills the monitor process
the stream is already closed on the client, it does not wait for the server, the server is still killing the processes (maybe),
the client starts an upload
So the code that allows Arduino IDE to juggle control over the serial port between the Serial Monitor process and the upload tool process doesn't wait to make sure the Serial Monitor process has finished giving up control over the port before it starts the upload tool. It just sends the signal to disconnect the port from the Serial Monitor and then immediately starts the upload tool. If for some reason it takes a little bit of time for the Serial Monitor to disconnect from the port, or maybe if the port takes some time to be ready to use again after that disconnection, then the upload tool tries to open the port too soon and you hit that " " step (which in this case is AVRDUDE failing with an "Access is denied" error).
It seems that for some reason it takes a little longer for the port produced on a Windows machine (the bug does not affect Linux or macOS) by an FTDI FT232R chip to be freed up than the ports produced by other USB to serial adapter chips (even the cheap CH340 doesn't have this problem). I don't know whether the slowness is in the Windows driver or the chip itself.
ninja2
September 26, 2023, 9:45am
19
uurrgghh. ugly / tricky issue, but that's an impressive diagnosis, tks
1 Like
system
Closed
March 24, 2024, 9:46am
20
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.