nopnop2002 / Arduino-STM32-CAN

Can Example for Arduino Core STM32
210 stars 53 forks source link

the lib didn't work well #45

Closed luyang14 closed 2 years ago

luyang14 commented 2 years ago

I tested on version 2.2 of Arduino,but it didn't work well.I used stm32f103vet6

nopnop2002 commented 2 years ago

I used stm32f103vet6

It related to the board part number.

It related to the framework of STM32duino.

Check hehe.

https://github.com/nopnop2002/Arduino-STM32-CAN/issues/44

I think SystemClock_Config is involved, but I don't know the solution.

luyang14 commented 2 years ago

Thanks for your reply. I have solved the problem. I found that V (C-D-E) used an internal clock, then I changed it to an external clock, and then I added a USB clock, and it worked fine

nopnop2002 commented 2 years ago

wonderful!

nopnop2002 commented 2 years ago

I found that:

Arduino core support for STM32 based boards uses different clock frequencies depending on the Board Part Number. BlackPill & BluePill use 72Mhz. Generic board like stm32f103vet6 use 64Mhz. So old version doesn't work properly on the Generic board like stm32f103vet6. Latest support both of 72Mhz and 64Mhz.