2014-11-12 03:04 AM
Hi!
I am using a DevKit407 ( stm32f4 discovery + stm32f4dis-BB).CAN1 in Loopback mode
. I assume I should see the test frame sent on Tx pin (PB9 on stm32f4discovery, or CAN1_TX on BB) with an oscilloscope (sampling rate 2.5 GS/s) .But I do not see any movement.
Internally shorting the Tx/Rx pins will close Tx pin?Thank you for your time and knowledge!
#discovery #can #stm32f42014-11-12 10:27 AM
I don't recall if Loopback mode emits a signal or not, but it doesn't make for a functional bus test, which would require that you have two node, with one receiving and acknowledging the data on the bus.
You could do it with one board using CAN1 and CAN2, and a couple of transceivers or diodes.2014-11-12 11:49 AM
Thank you! I wasn't sure on this setup.
Though I have a Vector CANCaseXL at my disposal, if only the acknowledge is needed. Any working network node with necessary speed (High Speed CAN in my case) will automatically acknowledge frames I presume?2014-11-12 12:54 PM
I would assume so, I've had STM32Fx devices talking to each other.
The one problem I see most often with the ST examples is that the bus clock and baud rates are wrong. The STM32F4 does not typically have a 60/30 MHz bus configuration.2014-11-13 03:08 AM
Yes. The bad setup at my example was port related (when I struggled to implement this example for loopback, not to scope it).
Though it clearly specified that this example works for STM32F4xx eval boards, the CAN was set up to GPIO G, which isn't even exists. This was found in the Loopback from the library of site provided: STM32F4xx_DSP_StdPeriph_Lib_V1.3.0