2023-04-05 07:46 PM
Hello, I need some help. I have problem about CAN bus. I connect the wire to the header pin. It swaps between CANH and CANL. Can STM32 force CAN_TX pin to CAN_RX pin and CAN_RX pin to CAN_TX pin? If not, do you have another solution?
In my case, I can't resend a PCB to fabrication.
MCU: stm32l496
IDLE: STM32CUBEIDE
2023-04-05 10:25 PM
That's a little bit unclear:
Have you swapped the transceiver's CAN-bus CANH/CANL pins, or the STM's TX/RX?
If it's the STM pins, check the datasheet for the alternate functions, but probably not.
That's one thing I check 5 times (incl. comparing to eval boards) before producing a PCB...
2023-04-06 12:42 AM
I can't swap to other due to I connect it to pc104
It's my big error. Thank you for reply.
2023-04-06 01:10 AM
If you have a STM or transceiver package with pins, you could try to lift these and use some wires, or cut and re-wire PCB traces.
At least to start further development and for testing.
2023-04-06 06:24 AM
+1 lift pins, cut traces, add wires.