Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Variant] Can Filter with STM32F105RBT6 #869

Closed
EliasKotlyar opened this issue Jan 13, 2020 · 6 comments · Fixed by #1310
Closed

[New Variant] Can Filter with STM32F105RBT6 #869

EliasKotlyar opened this issue Jan 13, 2020 · 6 comments · Fixed by #1310
Labels
new variant Add support of new bard

Comments

@EliasKotlyar
Copy link

Board description (please complete the following information):

  • Name: Can Filter
  • Link to all relevant information:
    • Documentations
      None available because its a "noname" product. I have completed a short overview here:
      https://github.com/EliasKotlyar/Canfilter

    • Schematics
      None available, however the board itself is pretty basic.

    • Where this hardware can be purchased
      Search on Aliexpress for "Can Filter"

  • Why are you using this device?
    Dont event ask...I want to retrofit a CAN-Device from a newer Car(Idrive from a F10) into my old car. Both Devices are using different commands and CAN-Speeds. First i wanted to make a board myself, however i stumbled across this board and bought it for 10 Dollar.
@EliasKotlyar EliasKotlyar added the new variant Add support of new bard label Jan 13, 2020
EliasKotlyar added a commit to EliasKotlyar/Arduino_Core_STM32 that referenced this issue Jan 13, 2020
@EliasKotlyar
Copy link
Author

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
Copy link
Member

fpistm commented Jan 14, 2020

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
Copy link
Author

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
Copy link
Member

fpistm commented Jan 14, 2020

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

@fpistm
Copy link
Member

fpistm commented Feb 14, 2020

Request added to the request list: #722

@XGhostX33
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new variant Add support of new bard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants