2005-11-14 07:53 PM
2005-11-11 01:31 AM
2005-11-13 08:40 PM
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 mode2005-11-13 08:50 PM
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.2005-11-14 07:53 PM
Thank you squirrel and ben_fnr,
The pin configuration was the problem. It works now! Regards, Jimmey