cancel
Showing results for 
Search instead for 
Did you mean: 

CAN bus with two STR710's

ezanen9
Associate II
Posted on November 15, 2005 at 04:53

CAN bus with two STR710's

4 REPLIES 4
ezanen9
Associate II
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
ben2
Associate II
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

davidbellegarde9
Associate II
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.

ezanen9
Associate II
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