cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with CAN Controller

dhorywal
Associate II
Posted on December 05, 2013 at 16:48

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
Posted on December 05, 2013 at 17:47

the microcontroller hangs.

Hangs where? If you understand where, you might be able to determine why.

I'm

 

using the

 

CAN1

 

and

 

CAN2

 

controller

 

micorcontrolador

 

STM32F207IG

but I have

 

the following problem

:

Both controllers

 

are communicating

 

normally

but when

 

the communication cable

 

from the controller

 

microcontroller

 

1

 

is

 

open

 

latch

.

Could someone help

 

me on this

 

problem,

 

is it possible to

 

enable and

 

disable the

 

CAN controller

??

Thank you.

 

The

 

following

 

code

:

I'm

 

using the

 

CAN1

 

and

 

CAN2

 

controller

 

micorcontrolador

 

STM32F207IG

but I have

 

the following problem

:

Both controllers

 

are communicating

 

normally

but when

 

the communication cable

 

from the controller

 

microcontroller

 

1

 

is

 

open

 

latch

.

Could someone help

 

me on this

 

problem,

 

is it possible to

 

enable and

 

disable the

 

CAN controller

??

Thank you.

 

The

 

following

 

code

:

I'm

 

using the

 

CAN1

 

and

 

CAN2

 

controller

 

micorcontrolador

 

STM32F207IG

but I have

 

the following problem

:

Both controllers

 

are communicating

 

normally

but when

 

the communication cable

 

from the controller

 

microcontroller

 

1

 

is

 

open

 

latch

.

Could someone help

 

me on this

 

problem,

 

is it possible to

 

enable and

 

disable the

 

CAN controller

??

Thank you.

 

The

 

following

 

code

:

I'm

 

using the

 

CAN1

 

and

 

CAN2

 

controller

 

micorcontrolador

 

STM32F207IG

but I have

 

the following problem

:

Both controllers

 

are communicating

 

normally

but when

 

the communication cable

 

from the controller

 

microcontroller

 

1

 

is

 

open

 

latch

.

Could someone help

 

me on this

 

problem,

 

is it possible to

 

enable and

 

disable the

 

CAN controller

??

Thank you.

 

The

 

following

 

code

:
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dhorywal
Associate II
Posted on December 05, 2013 at 18:03

Lock in the following function:

if((CAN_receive (1, &msg_rece, 15) == CAN_OK)) 

{

if(msg_rece.id==40)

{

Rece_CAN1 = msg_rece.data[0]; 

}

}

else {com_CAN_1=0, Rece_CAN1=0;}