Open mjs513 opened 5 years ago
Playing around with lib and got it working with the T4, however, can't get setMicrosTimer working properly. Seems to run if I do setTimeSlice, have to check that again: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=211460&viewfull=1#post211460
Hey,
I'm trying to run teensyThreads on a T4 as well but i cant seem to get it to compile. Has there been any update ?
Can you post the errors?
'IRQ_PIT_CH0' was not declared in this scope, which is odd because this is only inside #ifdef IMXRT1062 which is defined for Teensy 4.0:
"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=148 -DARDUINO=10810 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\clovett\\AppData\\Local\\Temp\\arduino_build_562616/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-Id:\\Users\\clovett\\Documents\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\TeensyThreads\\TeensyThreads.cpp" -o "C:\\Users\\clovett\\AppData\\Local\\Temp\\arduino_build_562616\\libraries\\TeensyThreads\\TeensyThreads.cpp.o"
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\TeensyThreads\TeensyThreads.cpp: In member function 'int Threads::setMicroTimer(int)':
TeensyThreads.cpp:260: error: 'IRQ_PIT_CH0' was not declared in this scope
int number = (IRQ_NUMBER_t)context_timer - IRQ_PIT_CH0;
Line 260 in TeensyThreads.cpp is "int old_state = currentActive;" so I think you are not using the latest TeensyThreads from github. You are probably using the TeensyThreads that came with teensyduino. It is out of date.
Hi frtas With the up coming release of the T4 any plans to update the library for use on the T4?
Thanks Mike