Posted on May 17, 2011 at 14:25Now I connected 2 MCUs and and uploaded the can_init procedure. Unfortunately the reception of the transmitted data fails, when debuging the can registers of the receiving device I see that the 1st device tries to tran...
Posted on May 17, 2011 at 14:25CAN_DeInit stops the clock, so the clock enable has to be done after this command. Now the initialisations works, but when I sent a CAN_Transmit (with RX and TX bridged), the status of the message stays pending, what's...
Posted on May 17, 2011 at 14:25Hello, thank you for this hint, the init procedure returns CANINITFAILED. What does this mean? Is the MCU damaged? I bridged the RX and TX (PA11 & PA12), is this okay?
Posted on May 17, 2011 at 14:08Hello, thank you for the hints. The error was I didn't switch on the right clock: RCC_APB2PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE); RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
Posted on May 17, 2011 at 14:08I use Ride7 as compiler for an STM32f103RE. Attached you will find a complete example,which copies data from com1 to com2 and vice versa. When you set a Breakpoint in the USART2 IRQ handler you will see that USART_GetI...