Any takers on this one?
i am 97% newb on this.
TeensyDuino version
https://github.com/dchote/fanatecWheelUSB#readme
teensyloader hex version
https://github.com/darknao/btClubSportWheel
trying to get an LC 3.1/3.2 to work on a 4.0 board.
The LC and 3 series are hard to find in Canada, assumed (wrongly) that the code would simply work on a 4.0 board.
Thank you for your help
ERRORS
i am 97% newb on this.
TeensyDuino version
https://github.com/dchote/fanatecWheelUSB#readme
teensyloader hex version
https://github.com/darknao/btClubSportWheel
trying to get an LC 3.1/3.2 to work on a 4.0 board.
The LC and 3 series are hard to find in Canada, assumed (wrongly) that the code would simply work on a 4.0 board.
Thank you for your help
ERRORS
Code:
Arduino: 1.8.19 (Windows 10), TD: 1.57, Board: "Teensy 4.0, Fanatec CSW, 24 MHz, Smallest Code, US English"
C:\Users\uvpc\Downloads\arduino-1.8.19\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\uvpc\Downloads\arduino-1.8.19\hardware -tools C:\Users\uvpc\Downloads\arduino-1.8.19\tools-builder -tools C:\Users\uvpc\Downloads\arduino-1.8.19\hardware\tools\avr -built-in-libraries C:\Users\uvpc\Downloads\arduino-1.8.19\libraries -libraries C:\Users\uvpc\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=fanatec,speed=24,opt=osstd,keys=en-us -ide-version=10819 -build-path C:\Users\uvpc\AppData\Local\Temp\arduino_build_597513 -warnings=none -build-cache C:\Users\uvpc\AppData\Local\Temp\arduino_cache_584247 -verbose C:\Users\uvpc\Downloads\fanatecWheelUSB-master\fanatecWheelUSB\fanatecWheelUSB.ino
C:\Users\uvpc\Downloads\arduino-1.8.19\arduino-builder -compile -logger=machine -hardware C:\Users\uvpc\Downloads\arduino-1.8.19\hardware -tools C:\Users\uvpc\Downloads\arduino-1.8.19\tools-builder -tools C:\Users\uvpc\Downloads\arduino-1.8.19\hardware\tools\avr -built-in-libraries C:\Users\uvpc\Downloads\arduino-1.8.19\libraries -libraries C:\Users\uvpc\Documents\Arduino\libraries -fqbn=teensy:avr:teensy40:usb=fanatec,speed=24,opt=osstd,keys=en-us -ide-version=10819 -build-path C:\Users\uvpc\AppData\Local\Temp\arduino_build_597513 -warnings=none -build-cache C:\Users\uvpc\AppData\Local\Temp\arduino_cache_584247 -verbose C:\Users\uvpc\Downloads\fanatecWheelUSB-master\fanatecWheelUSB\fanatecWheelUSB.ino
Using board 'teensy40' from platform in folder: C:\Users\uvpc\Downloads\arduino-1.8.19\hardware\teensy\avr
Using core 'teensy4' from platform in folder: C:\Users\uvpc\Downloads\arduino-1.8.19\hardware\teensy\avr
Detecting libraries used...
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatecWheelUSB.ino.cpp" -o nul
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatecWheelUSB.ino.cpp" -o nul
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\debouncer.cpp" -o nul
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatec.cpp" -o nul
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatec_joystick.c" -o nul
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI\\SPI.cpp" -o nul
Generating function prototypes...
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatecWheelUSB.ino.cpp" -o "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy/../tools/precompile_helper" "C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513" "C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -Os --specs=nano.specs -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=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513/pch/Arduino.h" -o "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513/pch/Arduino.h.gch"
"C:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -c -Os --specs=nano.specs -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=157 -DARDUINO=10819 -DARDUINO_TEENSY40 -DF_CPU=24000000 -DFANATEC_CSW -DLAYOUT_US_ENGLISH "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\uvpc\\Downloads\\arduino-1.8.19\\hardware\\teensy\\avr\\libraries\\SPI" "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatec_joystick.c" -o "C:\\Users\\uvpc\\AppData\\Local\\Temp\\arduino_build_597513\\sketch\\fanatec_joystick.c.o"
fanatec_joystick.c: In function 'fanatec_joystick_send':
fanatec_joystick.c:74: error: unknown type name 'usb_packet_t'
usb_packet_t *tx_packet;
^
fanatec_joystick.c:79: error: 'usb_configuration' undeclared (first use in this function)
if (!usb_configuration) {
^
C:\Users\uvpc\Downloads\fanatecWheelUSB-master\fanatecWheelUSB\fanatec_joystick.c:79:10: note: each undeclared identifier is reported only once for each function it appears in
fanatec_joystick.c:84: warning: implicit declaration of function 'usb_tx_packet_count'
if (usb_tx_packet_count(JOYSTICK_ENDPOINT) < TX_PACKET_LIMIT) {
^
fanatec_joystick.c:84: error: 'JOYSTICK_ENDPOINT' undeclared (first use in this function)
if (usb_tx_packet_count(JOYSTICK_ENDPOINT) < TX_PACKET_LIMIT) {
^
fanatec_joystick.c:85: warning: implicit declaration of function 'usb_malloc'
tx_packet = usb_malloc();
^
fanatec_joystick.c:85: warning: assignment makes pointer from integer without a cast
tx_packet = usb_malloc();
^
fanatec_joystick.c:99: error: request for member 'buf' in something not a structure or union
memcpy(tx_packet->buf, fanatec_joystick_data, JOYSTICK_SIZE);
^
fanatec_joystick.c:99: error: 'JOYSTICK_SIZE' undeclared (first use in this function)
memcpy(tx_packet->buf, fanatec_joystick_data, JOYSTICK_SIZE);
^
fanatec_joystick.c:100: error: request for member 'len' in something not a structure or union
tx_packet->len = JOYSTICK_SIZE;
^
fanatec_joystick.c:102: warning: implicit declaration of function 'usb_tx'
usb_tx(JOYSTICK_ENDPOINT, tx_packet);
^
fanatec_joystick.c: In function 'fanatec_lights_recv':
fanatec_joystick.c:109: error: unknown type name 'usb_packet_t'
usb_packet_t *rx_packet;
^
fanatec_joystick.c:113: error: 'usb_configuration' undeclared (first use in this function)
if (!usb_configuration) {
^
fanatec_joystick.c:117: warning: implicit declaration of function 'usb_rx'
rx_packet = usb_rx(LIGHTS_ENDPOINT);
^
fanatec_joystick.c:117: error: 'LIGHTS_ENDPOINT' undeclared (first use in this function)
rx_packet = usb_rx(LIGHTS_ENDPOINT);
^
fanatec_joystick.c:125: error: request for member 'buf' in something not a structure or union
memcpy(buffer, rx_packet->buf, LIGHTS_SIZE);
^
fanatec_joystick.c:125: error: 'LIGHTS_SIZE' undeclared (first use in this function)
memcpy(buffer, rx_packet->buf, LIGHTS_SIZE);
^
fanatec_joystick.c:126: warning: implicit declaration of function 'usb_free'
usb_free(rx_packet);
^
fanatec_joystick.c: In function 'fanatec_lights_available':
fanatec_joystick.c:135: error: 'usb_configuration' undeclared (first use in this function)
if (!usb_configuration) {
^
fanatec_joystick.c:139: warning: implicit declaration of function 'usb_rx_byte_count'
count = usb_rx_byte_count(LIGHTS_ENDPOINT);
^
fanatec_joystick.c:139: error: 'LIGHTS_ENDPOINT' undeclared (first use in this function)
count = usb_rx_byte_count(LIGHTS_ENDPOINT);
^
fanatec_joystick.c: In function 'fanatec_lights_recv':
fanatec_joystick.c:129: warning: control reaches end of non-void function
}
^
Using library SPI at version 1.0 in folder: C:\Users\uvpc\Downloads\arduino-1.8.19\hardware\teensy\avr\libraries\SPI
unknown type name 'usb_packet_t'
Last edited: