文档库 最新最全的文档下载
当前位置:文档库 › 关于stm32使用串口烧录程序的说明

关于stm32使用串口烧录程序的说明

关于stm32使用串口烧录程序的说明

关于stm32使用串口烧录程序的说明

以下引用ST官方文档AN2606

“Bootloader hardware requirement:The hardware required to put the STM32 into System memory boot mode consists of any circuitry, switch or jumper, capable of holding the BOOT0 pin high and the BOOT1 pin low during reset.To connect to the STM32 during System memory boot mode, an RS232 serial interface (example, ST3232 RS232 transceiver) has to be directly linked to the USART1_RX (PA10) and USART1_TX (PA9) pins.

Note:USART1_CK, USART1_CTS and USART1_RTS pins are not used, therefore user can use these pins for other peripherals or GPIOs.For more details about hardware recommendations, refer to application note AN2586: “STM32 hardware development: getting started”, available from the STMicroelectronics website: https://www.wendangku.net/doc/c117644516.html,”

上述文档说明当使用串口烧录程序时,BOOT0=1,BOOT1=0,且此时单片机应当处于reset状态。计算机的串口可以采用RS232协议连接单片机的USART1口,只需应用到USART1_RX和USART1_TX两条线即可,其它线的功能全靠软件实现。当程序烧录完毕后BOOT0应当恢复到0状态。

相关文档