2015-06-15 12:25 PM
ghhhhhhhhhhhhk
#lmgtfy #can-bus #stm32f207 #can-prescale-and-quanta2015-06-17 05:20 AM
fghfhgdhfhdhfh
2015-06-17 08:21 AM
Like I said, I've posted complete examples
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE);
GPIO_PinAFConfig(GPIOD, GPIO_PinSource11, GPIO_AF_CAN1);
GPIO_PinAFConfig(GPIOD, GPIO_PinSource12, GPIO_AF_CAN1);
Not GPIOD
2015-06-18 02:31 AM
2015-06-18 05:21 AM
I'm not sure how you got the BS1, BS2 and prescale figures. For an STM32F2 the PCLK1 clock is 120MHz/4 or 30MHz (APB1). For CAN time quanta I use
CAN_SJW_1tq CAN_BS1_6tq CAN_BS2_8tq For a 250Kbit/sec data rate I calculate the prescaler as: clock = 120000000 / (1 + 6 + 8) = 8000000 (CAN clock ticks, sum of quanta) prescale = clock / rate = 8000000 / 250000 = 32 Also, for now enable the ABOM and NART flags for automatic bus management and retries. Your prescale works out to about 3.3MHz, much too fast for the CAN bus. Jack Peacock2015-06-18 06:04 AM
2015-06-18 06:20 AM
Using Google to find my own posts
2015-06-18 06:33 AM
I made all like in stm32f4, becouse and still not works, when i back home i will show all code
2015-06-18 06:36 AM
kljlkjljkklj
2015-06-18 10:44 AM
2015-06-18 10:48 AM
Are both nodes configured the same way, and is the ESR the same for both nodes?
Have you checked the CAN transceivers on both sides to make sure a signal is present?
Jack Peacock