2008-11-14 12:29 AM
STM32 USART3 and SPI1 peripherals
2011-05-17 03:52 AM
I have been having some problems with two of the peripherals (USART3 and SPI1) on the STM32. These peripherals appear to be working from a software perspective (the interrupts are firing and the SPI peripheral is reading values, albeit incorrect ones) but the outputs are not present on the pins (hence the incorrect values being read as SCK is not being clocked). I have carried out a number of tests to identify the problem, but I haven't managed to solve it, so I was hoping that you might be able to offer some advice. The tests I have carried out are listed below:
2011-05-17 03:52 AM
Hi,
Thanks for the advice: I've found the problem. It seems that some of the pins on the schematic symbol were incorrect so, although it looked right from the schematic, one of the ground pins was incorrectly wired and the SPI1 & USART3 pins were swapped. I think I made the mistake by reading the wrong column of the data sheet (allocating the LQFP48/100 pin numbers instead of the LQFP64 pin numbers). Thanks again, Alan2011-05-17 03:52 AM
Hi Alan,
Check that all your VDD/VSSs pins (VDD1, VDD2, VDD3 and VDD4 are all well routed and soldered to the STM32 in your board), the same for VSSs : Pins : 31,32,47,48,63,64,19 and 18. Cheers, STOne-322011-05-17 03:52 AM
Happy for you ! now you should fix it and re-design a new layout.