-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hello,
Does this work with Teensy 4.0?
I keep getting errors
Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Teensy 4.0, Serial, 600 MHz, Faster, US English"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Daniel Walker\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -vid-pid=16C0_0483 -ide-version=10813 -build-path C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999 -warnings=none -build-cache C:\Users\DANIEL1\AppData\Local\Temp\arduino_cache_194824 -verbose C:\temp\Teensy 32\TeensyStripController\TeensyStripController.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Daniel Walker\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=serial,speed=600,opt=o2std,keys=en-us -vid-pid=16C0_0483 -ide-version=10813 -build-path C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999 -warnings=none -build-cache C:\Users\DANIEL1\AppData\Local\Temp\arduino_cache_194824 -verbose C:\temp\Teensy 32\TeensyStripController\TeensyStripController.ino
Using board 'teensy40' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy4' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" "C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\TeensyStripController.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" "C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\OctoWS2811Ext.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999\sketch\TeensyStripController.ino.cpp" -o "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999\preproc\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
"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\DANIEL~1\AppData\Local\Temp\arduino_build_114999\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/precompile_helper" "C:\Program Files (x86)\Arduino\hardware\teensy\avr/cores/teensy4" "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999" "C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr/cores/teensy4" "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999/pch/Arduino.h" -o "C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999/pch/Arduino.h.gch"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999/pch" "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999\sketch\TeensyStripController.ino.cpp" -o "C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\TeensyStripController.ino.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999/pch" "-IC:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4" "C:\Users\DANIEL1\AppData\Local\Temp\arduino_build_114999\sketch\OctoWS2811Ext.cpp" -o "C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\OctoWS2811Ext.cpp.o"
C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\OctoWS2811Ext.cpp: In member function 'void OctoWS2811Ext::begin()':
OctoWS2811Ext.cpp:94: error: 'GPIOD_PCOR' was not declared in this scope
GPIOD_PCOR = 0xFF;
^
OctoWS2811Ext.cpp:119: error: 'FTM2_SC' was not declared in this scope
FTM2_SC = 0;
^
OctoWS2811Ext.cpp:120: error: 'FTM2_CNT' was not declared in this scope
FTM2_CNT = 0;
^
OctoWS2811Ext.cpp:121: error: 'F_BUS' was not declared in this scope
uint32_t mod = (F_BUS + frequency / 2) / frequency;
^
OctoWS2811Ext.cpp:122: error: 'FTM2_MOD' was not declared in this scope
FTM2_MOD = mod - 1;
^
OctoWS2811Ext.cpp:123: error: 'FTM_SC_CLKS' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(0);
^
OctoWS2811Ext.cpp:123: error: 'FTM_SC_PS' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(0);
^
OctoWS2811Ext.cpp:124: error: 'FTM2_C0SC' was not declared in this scope
FTM2_C0SC = 0x69;
^
OctoWS2811Ext.cpp:125: error: 'FTM2_C1SC' was not declared in this scope
FTM2_C1SC = 0x69;
^
OctoWS2811Ext.cpp:126: error: 'FTM2_C0V' was not declared in this scope
FTM2_C0V = (mod * WS2811_TIMING_T0H) >> 8;
^
OctoWS2811Ext.cpp:127: error: 'FTM2_C1V' was not declared in this scope
FTM2_C1V = (mod * WS2811_TIMING_T1H) >> 8;
^
OctoWS2811Ext.cpp:130: error: 'PORT_PCR_IRQC' was not declared in this scope
CORE_PIN32_CONFIG = PORT_PCR_IRQC(1)|PORT_PCR_MUX(3);
^
OctoWS2811Ext.cpp:130: error: 'PORT_PCR_MUX' was not declared in this scope
CORE_PIN32_CONFIG = PORT_PCR_IRQC(1)|PORT_PCR_MUX(3);
^
OctoWS2811Ext.cpp:135: error: 'GPIOD_PSOR' was not declared in this scope
dma1.destination(GPIOD_PSOR);
^
OctoWS2811Ext.cpp:142: error: 'GPIOD_PDOR' was not declared in this scope
dma2.destination(GPIOD_PDOR);
^
OctoWS2811Ext.cpp:156: error: 'DMAMUX_SOURCE_PORTB' was not declared in this scope
dma1.triggerAtHardwareEvent(DMAMUX_SOURCE_PORTB);
^
OctoWS2811Ext.cpp:157: error: 'DMAMUX_SOURCE_FTM2_CH0' was not declared in this scope
dma2.triggerAtHardwareEvent(DMAMUX_SOURCE_FTM2_CH0);
^
OctoWS2811Ext.cpp:158: error: 'DMAMUX_SOURCE_FTM2_CH1' was not declared in this scope
dma3.triggerAtHardwareEvent(DMAMUX_SOURCE_FTM2_CH1);
^
C:\Users\DANIEL~1\AppData\Local\Temp\arduino_build_114999\sketch\OctoWS2811Ext.cpp: In member function 'void OctoWS2811Ext::show()':
OctoWS2811Ext.cpp:206: error: 'FTM2_C0SC' was not declared in this scope
FTM2_C0SC = 0x28;
^
OctoWS2811Ext.cpp:207: error: 'FTM2_C1SC' was not declared in this scope
FTM2_C1SC = 0x28;
^
OctoWS2811Ext.cpp:208: error: 'FTM2_C0V' was not declared in this scope
uint32_t cv = FTM2_C0V;
^
OctoWS2811Ext.cpp:211: error: 'FTM2_CNT' was not declared in this scope
while (FTM2_CNT <= cv) ;
^
OctoWS2811Ext.cpp:212: error: 'FTM2_CNT' was not declared in this scope
while (FTM2_CNT > cv) ; // wait for beginning of an 800 kHz cycle
^
OctoWS2811Ext.cpp:213: error: 'FTM2_CNT' was not declared in this scope
while (FTM2_CNT < cv) ;
^
OctoWS2811Ext.cpp:214: error: 'FTM2_SC' was not declared in this scope
FTM2_SC = 0; // stop FTM2 timer (hopefully before it rolls over)
^
OctoWS2811Ext.cpp:215: error: 'FTM2_CNT' was not declared in this scope
FTM2_CNT = 0;
^
OctoWS2811Ext.cpp:218: error: 'PORTB_ISFR' was not declared in this scope
PORTB_ISFR = (1<<18); // clear any prior rising edge
^
OctoWS2811Ext.cpp:229: error: 'FTM_SC_CLKS' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(0); // restart FTM2 timer
^
OctoWS2811Ext.cpp:229: error: 'FTM_SC_PS' was not declared in this scope
FTM2_SC = FTM_SC_CLKS(1) | FTM_SC_PS(0); // restart FTM2 timer
^
'GPIOD_PCOR' was not declared in this scope