2023-10-25 01:40 AM
I´m about to use the STM32L471xx circuit and want to program it from an external source.
What type of interface can I use to program the device?
I want to avoid using the JTAG interface.
Is it possible use USB or SPI interface?
2023-10-25 02:17 AM
Welcome @Andreas3 to ST Community,
Two bootloader versions are available on STM32L47xxx/48xxx:
• V10.x supporting USART, I2C and DFU (USB FS device).
This version is embedded in STM32L47xxx/48xxx rev. 2 and rev. 3 devices.
• V9.x supporting USART, I2C, SPI, CAN and DFU (USB FS device).
This version is embedded in STM32L47xxx/48xxx rev. 4 devices.
Please check AN2606
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-10-25 06:56 AM
If you need to do any development or debugging at all, use the SWD connection and a programmer, or at least implement it on the board so you have the option.
2023-10-25 07:19 AM
USART using AN3155 protocol is easy enough, several examples available.
https://github.com/ARMinARM/stm32flash/blob/master/protocol.txt
https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone