I have 4 quick questions regarding the bootloader/programming the STM32L0 chip series.
Q1&2
I'm considering a STM32 project coming from ATMEGA chips. From my understanding, the chips come with a bootloader pre-loaded, and you can then either program them through the SWD/JTAG or UART/SPI interfaces etc, if enabled by the bootloader (Q1 - is this correct?).
If programming through SWD/JTAG, is it possible to change the bootloader to set pin functions, or is this only possible if programming through UART, etc? (Q2 - can you set bootloader settings through SWD?).
Q3
I considered the STM32L011E4 chip, and there seems to be a disparity between the USART1 pins as defined on the default bootloader configuration document, and in the datasheet where it defines the functions of the pins. It seems that the bootloader states that it comes with USART1 on pins PA9 and PA10, however pins PA9 and 10 on the datasheet only have USART2 functionality. It looks like they've got the pins for USART1 and USART2 mixed up on the devices bootloader. (Q3 - How am I reading this wrong, as I can't imagine there's a typo here?)
[
Q4
Regarding UART1 and UART2 for flash programming on this chip: from the following image, am I correct in thinking that only the USART2 port can be used to program the flash memory? The UART1 is a low power variant so that could explain this. (I don't know whether to read it as "there are 2 UARTs that can flash the chip" or "use UART2 to flash the chip"