Skip to content

Debug mode does not work with Arduino MEGA #440

@pbitsch

Description

@pbitsch

DEBUG-Mode Arduino MEGA

DEBUG mode activated Aborted

I tested the following:
I loaded a simple blinking program onto three different Arduino variants and then started DEBUG mode:

Result:

Arduino UNO
Download OK
Program running OK
DEBUG mode activated OK

Arduino MICRO
Download OK
Program running OK
DEBUG mode activated OK

Arduino MEGA
Download OK
Program running OK
DEBUG mode activated

Possible Solution (Not obligatory)

Context

Your Environment

[18:10:46]: Starting compilation process...

[18:10:46]: Compiling program for project: C:\Users\P\Documents\OPENPLC_4\406_MEGA_ and board target: Arduino Mega

[18:10:46]: Host Hardware Info:

[18:10:46]: System Architecture - x64

[18:10:46]: Operating System - win32

[18:10:46]: Processor - Intel64 Family 6 Model 60 Stepping 3, GenuineIntel

[18:10:46]: Logical CPU Cores - 4

[18:10:46]: CPU Frequency - 2993 MHz

[18:10:46]: CPU Model - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz

[18:10:46]: Checking tools availability...

[18:10:46]: Arduino CLI available at version 1.1.1

[18:10:46]: IEC2C available at version 0.1

[18:10:46]: Directories for compilation source files created.

[18:10:46]: Generated XML from JSON at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

[18:10:48]: Compiling file C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\plc.xml

[18:10:48]: Collecting data types

[18:10:48]: Collecting POUs

[18:10:48]: Generate POU Taktgeber

[18:10:48]: Generate POU main

[18:10:48]: Generate Config(s)

[18:10:48]: Stage 1 compilation finished successfully

[18:10:48]: Saving ST file...

[18:10:48]: Parsing complex variables...

[18:10:48]: ST file generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\program.st

18:10:49: Copying static files...

18:10:49: Static files copied successfully.

18:10:49: C files generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\

[18:10:51]: Debug files generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

[18:10:51]: Extracted MD5 hash from program.st: bfd48a022190bb390800b211b829a4fd

[18:10:52]: Generating glue variables...

[18:10:52]: Linking variable __QX0_0

[18:10:52]: Glue variables saved to C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\glueVars.c

[18:10:53]: Glue vars generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

[18:10:53]: No C/C++ blocks found, skipping c_blocks.h generation

[18:10:53]: No C/C++ blocks found, skipping c_blocks_code.cpp generation

[18:10:53]: Required files patched

[18:10:53]: Handling core installation...

[18:11:03]: Plattform arduino:avr@1.8.6 bereits installiert

[18:11:07]: Handling library installation...

[18:11:07]: All required libraries are already installed.

[18:11:07]: Defines file created at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\examples\Baremetal\defines.h

[18:11:07]: Generating Arduino CPP file...

[18:11:07]: Arduino CPP file generated successfully.

[18:11:07]: Compiling Arduino program...

[18:11:13]: FQBN: arduino:avr:mega

[18:11:13]: Verwende das Board 'mega' von der Plattform im Ordner: C:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

[18:11:13]: Verwendung des Kerns 'arduino' von Platform im Ordner: C:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

18:11:14: Verwendete Bibliotheken erkennen ...

18:11:14: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp -o nul

18:11:14: Alternativen für Arduino_OpenPLC.h: [src]

18:11:14: -> Kandidaten: [src]

18:11:14: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp -o nul

18:11:14: Verwendung von zwischengespeicherten Bibliotheksabhängigkeiten für die Datei: C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\ModbusSlave.cpp

18:11:14: Verwendung von zwischengespeicherten Bibliotheksabhängigkeiten für die Datei: C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\c_blocks_code.cpp

18:11:14: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\Config0.c -o nul

18:11:14: Alternativen für iec_std_lib.h: [lib]

18:11:14: -> Kandidaten: [lib]

[18:11:15]: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\Config0.c -o nul

[18:11:15]: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\POUS.c -o nul

[18:11:15]: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\Res0.c -o nul

18:11:16: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\arduino.cpp -o nul

18:11:16: Alternativen für AVR_PWM.h: [AVR_PWM@1.2.0]

18:11:16: -> Kandidaten: [AVR_PWM@1.2.0]

18:11:16: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib -IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\arduino.cpp -o nul

18:11:16: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib -IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\debug.c -o nul

[18:11:17]: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib -IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\glueVars.c -o nul

[18:11:17]: Funktionsprototypen werden generiert ...

[18:11:17]: C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src -IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib -IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp -o C:\Users\P\AppData\Local\Temp\2322958944\sketch_merged.cpp

[18:11:17]: C:\Users\P\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\P\AppData\Local\Temp\2322958944\sketch_merged.cpp

[18:11:17]: Sketch wird kompiliert ...

[18:11:17]: "C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp.o"

[18:11:17]: Zuvor kompilierte Datei wird verwendet: C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\c_blocks_code.cpp.o

[18:11:17]: Zuvor kompilierte Datei wird verwendet: C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\ModbusSlave.cpp.o

[18:11:17]: Bibliotheken werden kompiliert ...

[18:11:17]: Bibliothek "src" wird kompiliert

[18:11:17]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\Config0.c" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\Config0.c.o"

[18:11:17]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\POUS.c" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\POUS.c.o"

[18:11:17]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\Res0.c" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\Res0.c.o"

[18:11:17]: "C:\Users\P\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\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\arduino.cpp" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\arduino.cpp.o"

[18:11:17]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\debug.c" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\debug.c.o"

[18:11:17]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\mega" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src" "-IC:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib" "-IC:\Users\P\Documents\Arduino\libraries\AVR_PWM\src" "C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\glueVars.c" -o "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\glueVars.c.o"

[18:11:18]: Bibliothek "lib" wird kompiliert

[18:11:18]: Bibliothek "AVR_PWM" wird kompiliert

[18:11:18]: Kern wird kompiliert ...

[18:11:18]: Verwendung des vorkompilierten Kerns: C:\Users\P\AppData\Local\arduino\cores\arduino_avr_mega_0a6db0fbb749b99efd7772e52d5092db\core.a

[18:11:18]: Alles zusammenlinken...

[18:11:18]: "C:\Users\P\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\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.elf" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\Baremetal.ino.cpp.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\ModbusSlave.cpp.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\sketch\c_blocks_code.cpp.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\Config0.c.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\POUS.c.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\Res0.c.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\arduino.cpp.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\debug.c.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A\libraries\src\glueVars.c.o" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/..\..\cores\arduino_avr_mega_0a6db0fbb749b99efd7772e52d5092db\core.a" "-LC:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A" -lm

[18:11:19]: "C:\Users\P\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\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.elf" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.eep"

[18:11:19]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.elf" "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.hex"

[18:11:19]: Bibliothek src im Ordner: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src (veraltet) wird verwendet

[18:11:19]: Bibliothek lib im Ordner: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib (veraltet) wird verwendet

[18:11:19]: Bibliothek AVR_PWM in Version 1.2.0 im Ordner: C:\Users\P\Documents\Arduino\libraries\AVR_PWM wird verwendet

[18:11:19]: "C:\Users\P\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\P\AppData\Local\arduino\sketches\D134F46C2E175DAEF43A43041976432A/Baremetal.ino.elf"

[18:11:20]: Der Sketch verwendet 12240 Bytes (4%) des Programmspeicherplatzes. Das Maximum sind 253952 Bytes.

[18:11:20]: Globale Variablen verwenden 1774 Bytes (21%) des dynamischen Speichers, 6418 Bytes für lokale Variablen verbleiben. Das Maximum sind 8192 Bytes.

[18:11:20]: Benutzte Bibliothek Version Pfad

[18:11:20]: src C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

[18:11:20]: lib C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\lib

[18:11:20]: AVR_PWM 1.2.0 C:\Users\P\Documents\Arduino\libraries\AVR_PWM

[18:11:20]: Verwendete Plattform Version Pfad

[18:11:20]: arduino:avr 1.8.6 C:\Users\P\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

[18:11:20]: Arduino program compiled successfully.

[18:11:20]: Uploading program to board...

18:11:28: Neuer Upload-Port: COM3 (serial)

[18:11:33]: Using Modbus RTU: Port=COM3, Baud=115200, SlaveID=1

[18:11:33]: Starting debug compilation...

[18:11:33]: Starting debug compilation process...

[18:11:33]: Compiling for debugger - project: C:\Users\P\Documents\OPENPLC_4\406_MEGA_, board: Arduino Mega

[18:11:33]: IEC2C available at version 0.1

[18:11:33]: Directories for compilation source files created.

[18:11:33]: Generated XML from JSON at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

[18:11:34]: Compiling file C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\plc.xml

[18:11:34]: Collecting data types

[18:11:34]: Collecting POUs

[18:11:34]: Generate POU Taktgeber

[18:11:34]: Generate POU main

[18:11:34]: Generate Config(s)

[18:11:34]: Stage 1 compilation finished successfully

[18:11:34]: Saving ST file...

[18:11:34]: Parsing complex variables...

18:11:35: ST file generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\program.st

18:11:35: Static files copied successfully.

18:11:35: C files generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\

[18:11:37]: Debug files generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

18:11:39: Generating glue variables...

18:11:39: Linking variable __QX0_0

18:11:39: Glue variables saved to C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src\glueVars.c

18:11:39: Glue vars generated at: C:\Users\P\Documents\OPENPLC_4\406_MEGA_\build\Arduino Mega\src

18:11:39: No C/C++ blocks found, skipping c_blocks.h generation

18:11:39: No C/C++ blocks found, skipping c_blocks_code.cpp generation

18:11:39: Debug compilation completed successfully.

18:11:39: Extracting MD5 from compiled program...

18:11:39: Program MD5: bfd48a022190bb390800b211b829a4fd

18:11:39: Requesting MD5 from target at COM3...

[18:12:01]: MD5 verification failed: Failed to get MD5 hash after retries

  • Version :
  • Operating System and version :

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions