There is a TCAN nFAULT pin connected to MCU pin PTB3. When the TCAN is operating normally, the nFAULT pin stays HIGH. When a fault is detected, the IC pulls the nFAULT pin LOW.
I measured the voltage on both the IC’s nFAULT pin and MCU PTB3 pin — both show 0V (LOW).
However, when calling Siul2_Dio_Ip_ReadPin(CAN_FAULT_MCU_PORT, CAN_FAULT_MCU_PIN), it always returns 1 (HIGH).
Could this be a GPIO pin configuration issue?
Solved! Go to Solution.
Hi Petrs,
Sorry for the inconvenience. I got the wrong pin number from the hardware schematic. After checking the updated schematic and correcting the pin number, the GPIO value is now correct.
Hi Petrs,
Sorry for the inconvenience. I got the wrong pin number from the hardware schematic. After checking the updated schematic and correcting the pin number, the GPIO value is now correct.
Hi Hanz,
how are CAN_FAULT_MCU_PORT, CAN_FAULT_MCU_PIN defined? What is config in Pins tool?
I can recommend to check within debugger a setting of SIUL2 MSCR35 if there is expected values according Pins tool setting. It would be enough to have IBE set (plus pull device if desired).
Then check SIUL2 GPDI35 as well.
BR, Petr