cancel
Showing results for 
Search instead for 
Did you mean: 

canfestival for STM32

smart
Associate II
Posted on June 26, 2009 at 06:07

canfestival for STM32

9 REPLIES 9
smart
Associate II
Posted on May 17, 2011 at 13:14

Hello all,

right now I am trying to implement the canfestival(canopen stack) for STM32. And I am having some problem in setting up the canopen stack timer.

I was wondering if anybody has used canfestival for STM32.

Please let me know

Thanks

smart
Associate II
Posted on May 17, 2011 at 13:14

I was able to fix my problem.

if anybody is using canfestival or CAN on STM32 and need any help

let me know.

thanks

seatalknmeabridge
Associate
Posted on May 17, 2011 at 13:15

Hi smart.avr,

i've been using canfestival on a XC167 an AVR so far.

Now I'm plannung to move to STM32 - and I would very much appreciate

if you could publish you canfestival sources. It would help a lot.

Any chance you'll post it somewhere or send it by mail ?

Regards

Frank

smart
Associate II
Posted on May 17, 2011 at 13:15

Hello Frank ,

I dont have any plan to publish/mail it but i am ready to help if you get any problem on your way.

you can download canfestival and start compiling it the only thing u need is to set up STM32 Can Tx/rec and one STm32 hardware timer.

its not hard you can take help from STM32 FWlib.

I have compiled canfestival using IAR compiler and so far its working fine.

seatalknmeabridge
Associate
Posted on May 17, 2011 at 13:15

Hi smart.avr,

ok. I'll just start implementing the CanFestival and if I should need

tips or help, i'll come back to you.

Thanks for the offer to help.

Regards

Frank

artyom
Associate
Posted on May 17, 2011 at 13:15

Hi smart.avr,

Some questions about CANfestival. Did you tried to compile it with Keil?

And second one - can you post/mail the init routines, and CAN-drivers, you made for STM32 and CANfestival?

Thanks.

smart2
Associate II
Posted on May 17, 2011 at 13:15

No I used IAR compiler. I used these two functions to initialize the CANopen stack,

setNodeId (&STM32Dict_Data,CAN_Node_Id);    

/* start the canopen stack, it will send the boot up message */

setState(&STM32Dict_Data, Initialisation); 

First you need to decide if you are a Master or slave device, based on that info you need to define your object dictionary and hook up of hardware timer for canopen stack timer.

   

artyom
Associate
Posted on May 17, 2011 at 13:15

Hi. Actually I intersted in code for canInit, canSend and canReceive Functions, and also initTimer and Timer interrupt routines. It seems, that only they have to be modified for STM32.

yashar1966
Associate
Posted on May 17, 2011 at 13:15

Hi dear.

I hope to be fine.

We need CANopen on STM32 under IAR workbench.

Can u release source code for us ?

Thanks.