2015-08-07 01:34 AM
Hello All,
I'm trying to implement a CAN bootloader to communicate over the CAN bus network. I'm using the own developed STM32F107VCT6 board with fine CAN2-remap. And the application would run successfully via CAN2-remap. I could success enter the bootloader via USART1 and could make sure the BOOT0 & BOOT1 and bootloader is correct. When I try to send the CAN bootloader commands to init the communication as described in STM Application Note AN3154 the board doesn't respond at all. My CAN network is setup correctly at 125 kbps and standard CAN messages. I made sure that the CAN communication works by checking the tranmission on a separate CAN bus monitor. After the 107VCT6 board power-on, I send the std CAN frame with ID=0x79 and DLC is 0 for 3 times. and then send the CAN frame with ID=0x00/DLC=0 to get something. Nothing reponse. I have no idea why the bootloader doesn't respond to my CAN commands. Is there anything else I need to do on the STM32 side other than setting the boot pins as described above? I also tried using the UART bootloader on UART3 which works properly.... only the CAN side is giving me issues. How do I verify the CAN protocol of bootloader? #can-bootloader-stm32-stm32f1072015-08-07 02:52 AM
What pins are you using?
According http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf the pins are remapped and you need to use are PB5 Can_rx & PB6 Can_tx.2015-08-07 08:25 AM
2015-08-07 08:49 AM
You could double check the version of the System Loader.
It's important to only have transitions on the SINGLE interface you want to use. Errant signals on USART1 PA9/PA10 will be auto-bauded, and that interface will be selected.There are very specific external crystal values that are supported for CAN operation. F107 -> 8 MHz, 14.7456 MHz or 25 MHz. CAN2 on PB5/PB6You can't use a transceiver that requires enabling by another GPIO pin, which the System Loader isn't going to configure/control.http://www.st.com/web/en/resource/technical/document/application_note/CD00264321.pdf
http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
2015-08-10 01:03 AM