Closed darkstar007 closed 4 years ago
It requires the latest and greatest teensy core stuff.
I am not sure if it is in the current beta (beta2) or will be beta3…
But you can go up to my github or mailto:cores@noreply.github.com @PaulStoffregen/cores to grab the latest imxrt.h file
From: darkstar007 notifications@github.com Sent: Saturday, December 14, 2019 9:41 AM To: KurtE/ADCL_t4 ADCL_t4@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [KurtE/ADCL_t4] Can't compile Examples/T4_ADC_Lite (#6)
Hi,
When I try to compile the example (latest from git clone of master) I get:
In file included from /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_t4.h:6:0, from /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/Examples/T4_ADC_Lite/T4_ADC_Lite.ino:4: /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h:199:4: error: 'IMXRT_ADCS_t' does not name a type IMXRT_ADCS_t &_padc; ^ /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h:207:30: error: expected ')' before '&' token ADCL_Module(IMXRT_ADCS_t &padc, int8_t adc_num) : _padc(padc), _adc_num(adc_num) {}; ^ /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h: In member function 'int ADCL_Module::readSingle()': /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h:243:32: error: '_padc' was not declared in this scope return (int16_t)(int32_t)_padc.R0; ^ /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h: In member function 'int ADCL_Module::analogReadContinuous()': /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_Module_t4.h:249:34: error: '_padc' was not declared in this scope return (int16_t)(int32_t)_padc.R0; ^ In file included from /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/Examples/T4_ADC_Lite/T4_ADC_Lite.ino:4:0: /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_t4.h: In constructor 'ADCL::ADCL()': /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_t4.h:28:20: error: 'IMXRT_ADC1S' was not declared in this scope ADCL() : _adc0(IMXRT_ADC1S, 0), _adc1(IMXRT_ADC2S, 1), adc0(&_adc0), adc1(&_adc1) {}; ^ /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4/ADCL_t4.h:28:43: error: 'IMXRT_ADC2S' was not declared in this scope ADCL() : _adc0(IMXRT_ADC1S, 0), _adc1(IMXRT_ADC2S, 1), adc0(&_adc0), adc1(&_adc1) {}; ^ Multiple libraries were found for "ADCL_t4.h" Used: /home/matt/arduino-1.8.10/hardware/teensy/avr/libraries/ADCL_t4 Error compiling for board Teensy 4.0.
I using ArduinoIDE 1.8.10 and TeensyStudio 1.48.
I'm probably doing something wrong/stupid, any suggestions?
Thanks,
Matt
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/KurtE/ADCL_t4/issues/6?email_source=notifications&email_token=AAL4MQB2RKAPZBUDVNR4BVTQYULB5A5CNFSM4J23XY7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IAQLISA , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL4MQCZZ2TG2Y5DYK57EH3QYULB5ANCNFSM4J23XY7A .
OK, that now compiles. Hopefully I'll get some time tomorrow morning to connect it to my signal generator and check that everything makes works.
Hi,
When I try to compile the example (latest from git clone of master) I get:
I using ArduinoIDE 1.8.10 and TeensyStudio 1.48.
I'm probably doing something wrong/stupid, any suggestions?
Thanks,
Matt