cancel
Showing results for 
Search instead for 
Did you mean: 

I wrote a code to use can bus for stm32f103rct6. It doesn't work on stm32f103rct6 but work on stm32f103ret6. Why? Can you help me?

MVali.11
Associate II
 
5 REPLIES 5
SofLit
ST Employee

Hello,

According to the datasheet there are no differences between stm32f103RC & stm32f103RE except the Flash size. I don't think this is related to the chip but may be to your hardware.

Is there a hardware difference between the two boards (PCB, crystal, CAN transceiver, etc ..)?

SofLit

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
MVali.11
Associate II

Thanks for response.

Yes.They are in two different boards but I used other peripherals of STM32f103RC in my board.Only CAN bus doesn't work. I used external crystal 8MHz. CAN bus hasn't connected to other hardware. CANTX and CANRX is free. I observed CANTX on oscilloscope. It is High alltime. How do you think?

TDK
Guru

You haven't provided enough relevant information to diagnose the problem. There are many things that could be wrong, including hardware errors and software errors. Can you toggle the pin and observe on a scope? That is a starting point.

If you feel a post has answered your question, please click "Accept as Solution".
MVali.11
Associate II

Yes.I toggle CANTX and CANRX pins and can observe on scope.

SofLit
ST Employee

Hello,

We can't help you if you don't provide more details.

Could you please share the schematics of the boards at least CAN part (from GPIOs to CAN bus) and the crystal value of each board?

SofLit

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.