CANopen for STM32F072

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

CANopen for STM32F072

Post by DeusExMachina »

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!
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: CANopen for STM32F072

Post by DeusExMachina »

Well, eventually it works with CANopennode. It was not easy, because the stack was written for PIC MCUs.
User avatar
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

Post by Giovanni »

Sorry I could not help, I have no direct experience with that.

Giovanni
E-B Felix
Posts: 9
Joined: Thu May 10, 2012 10:30 am

Re: CANopen for STM32F072

Post by E-B Felix »

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

Post by Predator72 »

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.
User avatar
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

Post by Giovanni »

Hi,

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

Post by Predator72 »

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.
User avatar
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

Post by Giovanni »

All examples are already included in ChibiStudio and you can see them all in the project explorer.

Giovanni
Post Reply