cancel
Showing results for 
Search instead for 
Did you mean: 

Help with CAN Example

vreitenbach
Associate II
Posted on December 03, 2009 at 08:59

Help with CAN Example

4 REPLIES 4
vreitenbach
Associate II
Posted on May 17, 2011 at 13:32

Hello,

we tried to run the can example from the standard libraries with hitop53 ctx and didn't get it work. We are using the stm32f10b Evaluation board.

Do someone have experiences with this board and can show us an example which works an this board?

In dissambly code we can see that the program starts in the address 0x1FFFF020. After some instructions it jumps to the address 0x1FFFF3B6 and stays in a loop.

So our program never will be started. We don't know what to do. In the attachments is our actual program that does not run on the board, but comiles without failures.

[ This message was edited by: vreitenbach on 03-12-2009 11:39 ]

armmcu
Associate II
Posted on May 17, 2011 at 13:32

Hi,

As I remeber i've already tested this library example but with Ewarm tool(using Jlink) and it works well.

I geuss it should be ok also with hitop.

Are you considering the following hardware recommendations in your trial?

/******************************************************************/

- STM3210B-EVAL Set-up

- Use LED1, LED2, LED3 and LED4 leds connected respectively to PC.06, PC.07, PC.08

and PC.09 pins

- Use Push Button connected to PB9

- Connect a female/female CAN cable between at least 2 EVAL CAN connectors

(on STM3210B-EVAL (CN2)/ STM3210E-EVAL (CN4) boards)

- Connector 1 DB9_PIN2 to Connector 2 DB9_PIN2 (CAN_L)

- Connector 1 DB9_PIN5 to Connector 2 DB9_PIN5 ( GND )

- Connector 1 DB9_PIN7 to Connector 2 DB9_PIN7 (CAN_H)

@note JP3 must be fitted.

/**********************************************************************/

vreitenbach
Associate II
Posted on May 17, 2011 at 13:32

Thank you for helping. It means that the example is ok. So there is another problem with our project settings maybe.

We thought that the pins are standardly connected to the leds.

Did you have two boards for testing. We only have one and can't connect to another, but the program must jump in main either there's no other board connected and it doesn't.

armmcu
Associate II
Posted on May 17, 2011 at 13:32

Yes the LEDS are by default connected.

Indeed in my trial I used to work with two evals boards, and for sure with only one board it should at least jump to main.