CAN Bus Library for STM32F103

Can someone help me port this library?
protwitness
Posts: 1
Joined: Tue Nov 01, 2016 8:12 pm

Re: CAN Bus Library for STM32F103

Postby protwitness » Tue Nov 01, 2016 8:15 pm

Looks like your commit only has one modified file (usb.c) and not the rest of your additions. Make sure you've added all the files you want to commit using

Code: Select all

git add
. You can check to see what has been added before you commit by typing

Code: Select all

git status
.

Phono
Posts: 66
Joined: Tue May 05, 2015 6:08 am

Re: CAN Bus Library for STM32F103

Postby Phono » Fri Nov 04, 2016 5:09 pm

I must admit that I am a little bit lost using Git. I am using the web interface (https://github.com/Phonog/Arduino_STM32/tree/Phonog-patch-1). However, when I browse the directories, I find the files in there place. These must be :
- STM32F1/libraries/HardwareCAN for the library;
- STM32F1\cores\maple\libmaple\rcc_f1.c
- STM32F1\system\libmaple\stm32f1\include\series\rcc.h
- STM32F1\cores\maple\libmaple\usb\stm32f1\usb.c
Can you check?
If there is something wrong, please help me fixing it.

petit_miner
Posts: 3
Joined: Mon Nov 07, 2016 6:40 pm

Re: CAN Bus Library for STM32F103

Postby petit_miner » Mon Nov 07, 2016 6:57 pm

Any further progress so far?
I can't find the CAN Bus library in your github repo.
https://github.com/Phonog/Arduino_STM32/

Phono
Posts: 66
Joined: Tue May 05, 2015 6:08 am

Re: CAN Bus Library for STM32F103

Postby Phono » Mon Nov 07, 2016 9:55 pm

Surely I am no Git expert.The changes are not in the master branch, but in the branch Phonog-patch-1. Can you access it?

User avatar
ddrown
Posts: 124
Joined: Sat Jan 09, 2016 4:49 am

Re: CAN Bus Library for STM32F103

Postby ddrown » Tue Nov 08, 2016 3:34 am

Phono wrote:Surely I am no Git expert.The changes are not in the master branch, but in the branch Phonog-patch-1. Can you access it?


This?

https://github.com/rogerclarkmelbourne/ ... og-patch-1

Phono
Posts: 66
Joined: Tue May 05, 2015 6:08 am

Re: CAN Bus Library for STM32F103

Postby Phono » Tue Nov 08, 2016 7:52 am

More or less... When I look at the contents of my branch (Phonog-patch-1), I find all files in their right place :
- usb.c in STM32F1/cores/maple/libmaple/usb/stm32f1/
- rcc.h in STM32F1/system/libmaple/stm32f1/include/series/
- rccf1.c in /STM32F1/cores/maple/libmaple/
and the library in STM32F1/libraries/

However, when I look at the comparison result (the link you mention), I find rcc.h, rccf1.c and usb.c in the library directory.
So I do not understand. However, all the files are there. If you can fix the location error, it is ok.
I apologize for a few comments in french I overlooked to translate in english.

And_Ru
Posts: 12
Joined: Thu Nov 10, 2016 1:16 pm

Re: CAN Bus Library for STM32F103

Postby And_Ru » Fri Nov 11, 2016 11:21 am

[quote="Phono"][/quote]
Could you please make a simple example that listen everything and print it to the "serial.print"?
I want to test it connecting to MCP2515 board (wich I also need to explore).

Phono
Posts: 66
Joined: Tue May 05, 2015 6:08 am

Re: CAN Bus Library for STM32F103

Postby Phono » Mon Nov 14, 2016 9:01 pm

to And_Ru : I am sorry, but the library is dedicated to the integral CAN interface of the STM32F103. Maybe one day it will be expanded to other interfaces.

User avatar
RogerClark
Posts: 5538
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: CAN Bus Library for STM32F103

Postby RogerClark » Mon Nov 14, 2016 9:31 pm

Any chance you could investigate porting the library to the official STM F1 core https://github.com/stm32duino/Arduino_Core_STM32F1

Phono
Posts: 66
Joined: Tue May 05, 2015 6:08 am

Re: CAN Bus Library for STM32F103

Postby Phono » Tue Nov 15, 2016 8:02 am

Is this core to be used in other programming environments than Arduino IDE? It will not be a quick job. Maybe when I have spare time...
Last edited by Phono on Tue Nov 15, 2016 4:32 pm, edited 1 time in total.


Return to “Libary request”

Who is online

Users browsing this forum: No registered users and 2 guests