Replies: 4 comments
-
AFK. Will update this comment later.
It may be that Arduino have changed the header or mechanism for initialisation, and now I'll need to update to reflect that. Please note that because of the tight 1ms timing for USB keep alive messages the 32u4 devices can be problematic. Integration between USB interface and scheduler needs to be deeper than it is in this library. |
Beta Was this translation helpful? Give feedback.
-
This code, with the CPU set to be 32u4 (Arduino Micro), compiles fine. #include <Arduino_FreeRTOS.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
} Using Arduino v1.8.3 freshly installed, but 2nd compilation so that the core is precompiled (cached). C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Phillip\AppData\Local\Arduino15\packages -hardware C:\Users\Phillip\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Phillip\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Phillip\Documents\Arduino\libraries -fqbn=arduino:avr:micro -ide-version=10803 -build-path C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700 -warnings=all -build-cache C:\Users\Phillip\AppData\Local\Temp\arduino_cache_25044 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Phillip\AppData\Local\Temp\arduino_modified_sketch_923078\BareMinimum.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Phillip\AppData\Local\Arduino15\packages -hardware C:\Users\Phillip\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Phillip\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Phillip\Documents\Arduino\libraries -fqbn=arduino:avr:micro -ide-version=10803 -build-path C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700 -warnings=all -build-cache C:\Users\Phillip\AppData\Local\Temp\arduino_cache_25044 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Phillip\AppData\Local\Temp\arduino_modified_sketch_923078\BareMinimum.ino
Using board 'micro' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp" -o "nul"
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\croutine.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\event_groups.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\heap_3.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\list.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\port.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\queue.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\tasks.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\timers.c
Using cached library dependencies for file: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.cpp
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp.o"
Compiling libraries...
Compiling library "FreeRTOS"
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\croutine.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\event_groups.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\heap_3.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\list.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\port.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\queue.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\tasks.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\timers.c.o
Using previously compiled file: C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\variantHooks.cpp.o
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\sketch\BareMinimum.ino.cpp.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\croutine.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\event_groups.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\heap_3.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\list.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\port.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\queue.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\tasks.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\timers.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700\libraries\FreeRTOS\variantHooks.cpp.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/..\arduino_cache_25044\core\core_arduino_avr_micro_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\Phillip\AppData\Local\Temp\arduino_build_77700" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/BareMinimum.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_77700/BareMinimum.ino.hex"
Using library FreeRTOS at version 9.0.0-1 in folder: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS
Sketch uses 10416 bytes (36%) of program storage space. Maximum is 28672 bytes.
Global variables use 301 bytes (11%) of dynamic memory, leaving 2259 bytes for local variables. Maximum is 2560 bytes. The same result as using Arduino v1.8.2 C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Phillip\AppData\Local\Arduino15\packages -hardware C:\Users\Phillip\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Phillip\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Phillip\Documents\Arduino\libraries -fqbn=arduino:avr:micro -ide-version=10802 -build-path C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864 -warnings=all -build-cache C:\Users\Phillip\AppData\Local\Temp\arduino_cache_76114 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Phillip\AppData\Local\Temp\arduino_modified_sketch_163382\BareMinimum.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Phillip\AppData\Local\Arduino15\packages -hardware C:\Users\Phillip\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Phillip\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Phillip\Documents\Arduino\libraries -fqbn=arduino:avr:micro -ide-version=10802 -build-path C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864 -warnings=all -build-cache C:\Users\Phillip\AppData\Local\Temp\arduino_cache_76114 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Phillip\AppData\Local\Temp\arduino_modified_sketch_163382\BareMinimum.ino
Using board 'micro' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Build options changed, rebuilding all
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\croutine.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\event_groups.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\heap_3.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\list.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\port.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\queue.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\tasks.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\timers.c" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp.o"
Compiling libraries...
Compiling library "FreeRTOS"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\croutine.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\croutine.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\event_groups.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\event_groups.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\heap_3.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\heap_3.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\list.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\list.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\port.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\port.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\queue.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\queue.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\tasks.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\tasks.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\timers.c" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\timers.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MICRO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8037 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Micro"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\micro" "-IC:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src" "C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS\src\variantHooks.cpp" -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\variantHooks.cpp.o"
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\sketch\BareMinimum.ino.cpp.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\croutine.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\event_groups.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\heap_3.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\list.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\port.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\queue.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\tasks.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\timers.c.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864\libraries\FreeRTOS\variantHooks.cpp.o" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/..\arduino_cache_76114\core\core_arduino_avr_micro_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\Phillip\AppData\Local\Temp\arduino_build_205864" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/BareMinimum.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/BareMinimum.ino.elf" "C:\Users\Phillip\AppData\Local\Temp\arduino_build_205864/BareMinimum.ino.hex"
Using library FreeRTOS at version 9.0.0-1 in folder: C:\Users\Phillip\Documents\Arduino\libraries\FreeRTOS
Sketch uses 10400 bytes (36%) of program storage space. Maximum is 28672 bytes.
Global variables use 300 bytes (11%) of dynamic memory, leaving 2260 bytes for local variables. Maximum is 2560 bytes. |
Beta Was this translation helpful? Give feedback.
-
I just asked for a library update and now it compiles fine for me too. No idea what happened there, but it seems to be working now. Thanks for looking into it! |
Beta Was this translation helpful? Give feedback.
-
Good to hear. Please just note that because of the timing constraints on keeping the 32u4 (and 32u2) USB interface running (a 1ms cycle keep-alive message needs to be sent), and the fact that AVR has only one interrupt priority, this library's implementation of Scheduler timing via the WDT can run into issues. In fact, sending a lot of data over the USB interface, combined with the keep-alive messages, can mean that the Scheduler interrupt is repeatedly missed, and therefore the wheels fall off everything. The only way around this is to integrate the USB interface as a Task, or integrate the USB hardware timer with the Scheduler to ensure round robin handling. Both of which are outside the scope of this library solution. |
Beta Was this translation helpful? Give feedback.
-
I am trying to use Arduino FreeRTOS with an Arduino Micro (32U4), but I am getting a compile error with an empty sketch. This is using Arduino 1.8.3.
Also referred to here, but not solved: stackoverflow question 38251066
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions