Skip to main content
Visitor II
November 15, 2005
Question

CAN bus with two STR710's

  • November 15, 2005
  • 4 replies
  • 735 views
Posted on November 15, 2005 at 04:53

CAN bus with two STR710's

    This topic has been closed for replies.

    4 replies

    ezanen9Author
    Visitor II
    November 11, 2005
    Posted on November 11, 2005 at 10:31

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6Xk&d=%2Fa%2F0X0000000bqG%2FkRWWHt4strnVWkmZ.RZG0e6i9qPdkGChhHEcRfY70RI&asPdf=false
    Visitor II
    November 14, 2005
    Posted on November 14, 2005 at 05:40

    not sure if it helps but I ended up setting CAN RX as an input.

    I couldnt get the CAN to work with it as an Alternate function pin. CAN TX was AF PP mode

    Visitor II
    November 14, 2005
    Posted on November 14, 2005 at 05:50

    Hello Jimmy,

    Your problem is due to the fact that the CAN cell doesn't receive an acknowledge bit.

    Try to replace ''GPIO_Config(GPIO1, 0x0800, GPIO_AF_PP); //Set port 1.11 as CAN RX '' with ''GPIO_Config(GPIO1, 0x0800, GPIO_IN_TRI_CMOS); //Set port 1.11 as CAN RX (input)'' on both STR71x.

    You can also use CAN_SetTiming() with the appropriate function input to set the bitrate if the APB clock is not 8MHz (don't forget to use CAN_EnterInitMode(CAN_CR_CCE) and CAN_LeaveInitMode(), before and after the function call).

    Regards.

    ezanen9Author
    Visitor II
    November 15, 2005
    Posted on November 15, 2005 at 04:53

    Thank you squirrel and ben_fnr,

    The pin configuration was the problem. It works now!

    Regards,

    Jimmey