** Teensy 4 installed in a custom board interfacing DDC118 from TI..
I can upload the simple program below and both USB Serial and HW Serial4 (pins 17 & 18) work fine..
However; when I load my full program that interfaces a DDC118 utilizing several PWM clock pins and HW interrupts pins for data capture.. the USB Serial works and HWSerial will *NOT* work. I have verified that I'm not using or setting PINs 16 & 17 elsewhere in the code. My data results function should output same serial text over the USB and HW Serial4. My debug source is direct logic from Saleae.
?My Question-- There must be other calls to program elements that can interfere with Teensy 4.0 HW Serial4 -- might they set registers and disable the HW Serial? Thoughts on areas to check?
Thank you.
Regards,
PhoPAC
I can upload the simple program below and both USB Serial and HW Serial4 (pins 17 & 18) work fine..
Code:
//TEENSY 4.0 - HW Serial Test
#define HWSERIAL Serial4
#if defined(__IMXRT1062__)
extern "C" uint32_t set_arm_clock(uint32_t frequency);
#endif
void setup() {
// put your setup code here, to run once:
set_arm_clock(528000000);
Serial.begin(115200);
HWSERIAL.setTX(17);
HWSERIAL.setRX(16);
HWSERIAL.begin(115200,SERIAL_8N1);
}
void loop() {
Serial.println("Hello - SerialUSB");
HWSERIAL.println("Hello - HWSERIAL");
}
However; when I load my full program that interfaces a DDC118 utilizing several PWM clock pins and HW interrupts pins for data capture.. the USB Serial works and HWSerial will *NOT* work. I have verified that I'm not using or setting PINs 16 & 17 elsewhere in the code. My data results function should output same serial text over the USB and HW Serial4. My debug source is direct logic from Saleae.
?My Question-- There must be other calls to program elements that can interfere with Teensy 4.0 HW Serial4 -- might they set registers and disable the HW Serial? Thoughts on areas to check?
Thank you.
Regards,
PhoPAC