Hi all,
Since the announcement of stm32f072 with the CAN module, it seems that CANopen community must grab this MCU for all possible projects. But, alas, I can't find any example both for CANopennode or CANfestival open source stacks. Can anybody share some example with CANopen stack + Chibios? Or just point some example...
Thanks!
CANopen for STM32F072
Moderator: RoccoMarco
- DeusExMachina
- Posts: 223
- Joined: Tue Apr 03, 2012 5:08 am
- Has thanked: 3 times
- Been thanked: 3 times
- DeusExMachina
- Posts: 223
- Joined: Tue Apr 03, 2012 5:08 am
- Has thanked: 3 times
- Been thanked: 3 times
Re: CANopen for STM32F072
Well, eventually it works with CANopennode. It was not easy, because the stack was written for PIC MCUs.
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: CANopen for STM32F072
DeusExMachina wrote:eventually it works with CANopennode
It should work easy becasue there is already a port for the STM32F1xx controllers.
The CANopennode stack is written in C. There are only two hw-specific files (CO_driver.h and CO_driver.c)
I sougest to run the CANopennode in a task
Cheers
Felix
-
Predator72
- Posts: 2
- Joined: Thu Nov 10, 2016 4:46 pm
Re: CANopen for STM32F072
Giovanni... Do you have an example using STM32F3DISCOVERY board? What application can I have to use to create my own Object Dictionary in the microcontroller? Thanks a lot. Ciao.
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: CANopen for STM32F072
Hi,
All examples are included in the ChibiOS distribution under /testhal/STM32/STM32F3xx. The examples are also included in ChibiStudio.
Giovanni
All examples are included in the ChibiOS distribution under /testhal/STM32/STM32F3xx. The examples are also included in ChibiStudio.
Giovanni
-
Predator72
- Posts: 2
- Joined: Thu Nov 10, 2016 4:46 pm
Re: CANopen for STM32F072
Hello Giovanni. I've installed ChibiStudio but I don't know how to insert the Projects related to HAL libraries you've indicated... Can you specify a link to download them (for STM32F3 possibile)? Thank you very much.
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: CANopen for STM32F072
All examples are already included in ChibiStudio and you can see them all in the project explorer.
Giovanni
Giovanni