I am using a STM32F030F4 chip. This chip has one UART and one I2C.
I want to have the UART always connected to a usb to serial chip for firmware upgrade via the bootloader. But I wanted to use the I2C as well for some sensor.
From CubeMX I see there are two set of pins that can be used for UART.
As default I see UART on PA9 and PA10. Pins.PA9 and PA10 are the pins used for I2C.
The CubeMX let me change UART to PA2 and PA3,
My Question is:
Can I change the chip bootloader so I have PA2 and PA3 as UART and leave PA9 and PA10 open for I2C ?
This is how I would like to be on bootloader.
Thought that if this can be changed for run mode, should be possible to change for bootloader, but I do not have the factory bootloader source code to change it.
I would like to stay with a bootloader similar to the one from factory to keep official tools compatibility. But wanted the UART to move from PA9-PA10 to PA2-PA3 if possible.
I am totally new to STM32, this is a shot in the dark in case it is possible.
Any comment is welcome.