LAtimes2 / TeensyLogicAnalyzer

Logic Analyzer for the Teensy development boards (pjrc.com/teensy)
MIT License
84 stars 9 forks source link

Compilation Error #7

Open divyansh opened 1 year ago

divyansh commented 1 year ago

Hi, I hope you are doing well. I am compiling for Teensy 4.1 using Arduino Version 1.8.12 and Teensyduino 1.57 , I am getting following compilation error. Your guidance support is requeste on following points.

Reqeust to clear following points - 1) When I am using prebuild hex file the Software and Code is working but not capturing data at 200Mhz sampling rate. Is there anything I could look in code, or hardware , so that sampling at 200 Mhz works ?

2) I wish to make custom software to capture data on 16 channels in live mode, 24 x 7 x 365 and use it with a custom gui, I want to capture data at 200 Mhz, will the Arduino Code support to such an extent ? Also , will the sump protocol be able to work till that accuracy.

3) I am working on a similar project, I wanted to know If you freelance / support in my project.

4)Is the final .hex file made using the uploaded code of TeensyLogicAnalyzer.ino ? because I am getting following error, if point three is out of question , kindly let me know, if the code is to be compiled some other version .

:\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\Divyansh\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path C:\Users\Divyansh\AppData\Local\Temp\arduino_build_89583 -warnings=none -build-cache C:\Users\Divyansh\AppData\Local\Temp\arduino_cache_65133 -verbose C:\Users\Divyansh\Documents\DATASHEET\teensy\TeensyLogicAnalyzer-master\TeensyLogicAnalyzer\TeensyLogicAnalyzer.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\Divyansh\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path C:\Users\Divyansh\AppData\Local\Temp\arduino_build_89583 -warnings=none -build-cache C:\Users\Divyansh\AppData\Local\Temp\arduino_cache_65133 -verbose C:\Users\Divyansh\Documents\DATASHEET\teensy\TeensyLogicAnalyzer-master\TeensyLogicAnalyzer\TeensyLogicAnalyzer.ino Using board 'teensy41' 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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\sketch\\TeensyLogicAnalyzer.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE Alternatives for record_high_speed_data_8_channels.h: [TeensyLogicAnalyzer-master] ResolveLibrary(record_high_speed_data_8_channels.h) -> candidates: [TeensyLogicAnalyzer-master] "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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\Divyansh\\Documents\\Arduino\\libraries\\TeensyLogicAnalyzer-master" "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\sketch\\TeensyLogicAnalyzer.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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\Divyansh\\Documents\\Arduino\\libraries\\TeensyLogicAnalyzer-master" "C:\\Users\\Divyansh\\Documents\\Arduino\\libraries\\TeensyLogicAnalyzer-master\\record_high_speed_data_8_channels.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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\Divyansh\\Documents\\Arduino\\libraries\\TeensyLogicAnalyzer-master" "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\sketch\\TeensyLogicAnalyzer.ino.cpp" -o "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\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\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\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\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583" "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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583/pch/Arduino.h" -o "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583/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=157 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "-IC:\\Users\\Divyansh\\Documents\\Arduino\\libraries\\TeensyLogicAnalyzer-master" "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\sketch\\TeensyLogicAnalyzer.ino.cpp" -o "C:\\Users\\Divyansh\\AppData\\Local\\Temp\\arduino_build_89583\\sketch\\TeensyLogicAnalyzer.ino.cpp.o" TeensyLogicAnalyzer: In function 'void processFiveByteCommand(byte*, sumpSetupVariableStruct&)': TeensyLogicAnalyzer:733: error: 'swapLogicalChannels' was not declared in this scope sumpSetup.triggerMask[0] = swapLogicalChannels(sumpSetup, sumpRX.command[1]); ^ TeensyLogicAnalyzer: In function 'void SUMPrecordData(sumpSetupVariableStruct&)': TeensyLogicAnalyzer:1266: error: 'recordDataAsm3Clocks' was not declared in this scope recordDataAsm3Clocks(dummySetup, dynamic); ^ TeensyLogicAnalyzer:1282: error: 'startOverclocking_720MHz' was not declared in this scope startOverclocking_720MHz (); ^ TeensyLogicAnalyzer:1288: error: 'stopOverclocking' was not declared in this scope stopOverclocking (false); ^ TeensyLogicAnalyzer:1298: error: 'startOverclocking_816MHz' was not declared in this scope startOverclocking_816MHz (); ^ TeensyLogicAnalyzer:1304: error: 'stopOverclocking' was not declared in this scope stopOverclocking (false); ^ Using library TeensyLogicAnalyzer-master in folder: C:\Users\Divyansh\Documents\Arduino\libraries\TeensyLogicAnalyzer-master (legacy) 'swapLogicalChannels' was not declared in this scope

LAtimes2 commented 1 year ago

I'm using a slightly older version of TeensyDuino (1.56) and I downloaded the source code and built it today just fine. The output looks almost the same as yours up to the point of the errors. I don't have time today, but tomorrow I will download 1.57 and try it.

In the meantime, if you know C, you can make a forward declaration of those functions in TeensyLogicAnalyzer.ino at line 353 and see if that helps.