Skip to main content
dhorywal
Associate
December 5, 2013
Question

Problems with CAN Controller

  • December 5, 2013
  • 2 replies
  • 766 views
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.
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    December 5, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    dhorywal
    dhorywalAuthor
    Associate
    December 5, 2013
    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;}