2022-07-18 08:21 AM
PC connected to STM32-V3SET via USB. PC COM3 sees the STLINK.
STLINK is using CN7 UART TX and Rx lines to L041 USART2 configured pins PA2 & PA3. GND too.
L041 has BOOT0 pin on a wire, to allow high or low level at reset.
L041 has SWD-loaded program in flash that blinks an LED.
STM32Cube Programmer port COM3 is selected, press "Connect".
But Programmer says Fail.... it can't detect L041.
Re-flashing works fine from SWD (CN6) and same SLINK, but product needs to update flash from USART2 using (pattern 2) only.
Same result if L041 boots to Bootloader (BOOT0 high at reset, L041 no flash), or to Flash( BOOT0 held low at reset, LED flashes), Fail to connect.
I have read AN2606, AN3155, and others.
I have searched STM Community website.
Lots of piecemeal info, but no complete app note describing the needed combination of ST parts, connections, jumpers in order to do IAP.
I am typically an an Amel guy so these pieces were assembled for this one project, and ST was required by the user.
Are there jumpers on the SLINK that need to change from using SWD mode?
Something else I am not doing?
Did I miss an app note that describes this configuration setup???
2022-07-18 09:15 AM
The serial port method doesn't tolerate signals on other interfaces (GPS on another UART).
So you're got one shot, or a narrow window after you reset to make a successful connection.
Loader uses EVEN parity, notionally 9600 8E1, where it times the 0x7F data pattern to auto-baud.