硬件问题
增加一个复位按钮
程序问题
/* uart allocation: PB6-7: UART1 -> TELEM PD5-6 : UART2 -> SBUS PD8-9: UART3 -> GPS PA0-1 : UART4 -> DEBUG */
其中UART2和UART3没有调通,故障不详。
USART1、4调通,但是会有乱码
PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N
SYSCLK = PLL_VCO / PLL_P
- 排除HSE_VALUE的设置问题,板子用的24MHz晶振但是已将PLL_M从25改为24,频率配置与例程一致。
- 排除BRR寄存器计算错误。
- 准备验证是否硬件问题,采用虚拟串口验证。
/* uart allocation:
PB6-7: UART1 -> TELEM
PD5-6 : UART2 -> SBUS
PD8-9: UART3 -> GPS
PA0-1 : UART4 -> DEBUG
*/