stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.8k stars 967 forks source link

[New Variant] Can Filter with STM32F105RBT6 #869

Closed EliasKotlyar closed 4 years ago

EliasKotlyar commented 4 years ago

Board description (please complete the following information):

EliasKotlyar commented 4 years ago

I must say that the integration itself is working, and the device can be programmed trough Arduino. However there is one critical issue which i cannot figure out: -If i setup the blink example, it does not work -If i setup a simple LED on/off example, its working like expected -A blink example in SW4STM is working fine without any problems

I suppose that its a timing issue and thereis something missing in the configuration, but i cannot figure out what exactly. The SystemClock_Config function is same on both SW4STM and Arduino. Also the HSE_VALUE is set to 25000000U in Arduino.

fpistm commented 4 years ago

Hi @EliasKotlyar For the HSE issue, simply define the correct HSE value in the variant.h as by default it is 8000000.

For your variant, it should be better to create a generic one for STM32F105RBT6 and then declare in boards.txt the dedicated one CAN Filter.

EliasKotlyar commented 4 years ago

Hello @fpistm

I have defined the correct one(HSE: 25000000U) in variant.h here: https://github.com/stm32duino/Arduino_Core_STM32/pull/870/files#diff-66041f938b1048c240784af4ac5d57c6R22

However it does not solve the problem. Blink is not working, normal LEDs on/off are working fine.

I suppose it may be also some bug/quirk of the "Connectivity Line" SOCs, which STM32F105 belongs to. There are no other Boards defined supporting this Product-line, so its maybe something SOC specific which needs a certain patch. The interesting part is, that the SW4STM is working fine with this configuration

fpistm commented 4 years ago

OK @EliasKotlyar I will review it deeply and then go back to you.

fpistm commented 4 years ago

Request added to the request list: #722

XGhostX33 commented 11 months ago

Hello how to connect this board to PC? to use Can Hacker