Author Topic: STM32F030 program via serial port?  (Read 948 times)

0 Members and 1 Guest are viewing this topic.

Offline TankSparksTopic starter

  • Contributor
  • Posts: 39
  • Country: ca
STM32F030 program via serial port?
« on: August 21, 2023, 07:20:26 pm »

Is it possible to program STM32F030 via the serial port
I made my own board,  and I can program it with the ST-Link v2.  My board uses a FT234 usb to serial chip.  I read in the documentation that it support serial boot loader. 
Using ts STM32cube programmer software,  put it into  UART mode,   but won't connect.
Does it matter which Uart pins I'm using?  does't seem to according to doc.   
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12014
  • Country: us
    • Personal site
Re: STM32F030 program via serial port?
« Reply #1 on: August 21, 2023, 07:55:31 pm »
Is it possible to program STM32F030 via the serial port

Section 2.5 "Boot configuration" of the reference manual describes that. You need to set pins BOOT0=1, BOOT1=1 to boot from the system memory (bootloader) and then you would have the following options:

Quote
• USART on pins PA14/PA15 or PA9/PA10
• I2C on pins PB6/PB7 ( STM32F070xx and STM32F030xC devices only)
• USB DFU interface (STM32F070xx devices only)
For further details, refer to the application note AN2606.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf