cancel
Showing results for 
Search instead for 
Did you mean: 

Can STM32 force CAN_TX pin to CAN_RX pin and CAN_RX pin to CAN_TX pin?

JThas.1
Associate II

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

4 REPLIES 4
LCE
Principal

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...

I can't swap to other due to I connect it to pc104

It's my big error. Thank you for reply.

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.

+1 lift pins, cut traces, add wires.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..