Question
write flash fail via i2c bootloader
Recently I'm using STM32G051 and try to write flash via i2c bootloader.
Below are my steps:
- Use STM32CubeProgrammer to set nBOOT0_SEL = 1 / nBoot0 = 0 /nBoot1 = 1 to enter BL mode
- Disconnect ST link, and use i2c host tool (Aardvark) to send i2c write (no-stretch) command 0x32, 0xcd
- Read 1 byte, get ACK (0x79) frame successfully.
- Send 5 bytes start address(0x08000000) with XOR checksum (0x08)
- Read 1 byte, get ACK (0x79) frame successfully.
- send 10 bytes writeLength(0x08), data(0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88), checksum (0x80)
- Problem here!! read 1 byte and expect to get ACK(0x79) or BUSY(0x76), but I saw CLK is stretched at 9th bit of address phase:

I've checked all read/write protection are disabled via STM32Programmer, and I can access read flash and erase flash successfully, only write process fail. Is any one have encounter similar issue and tell me if my procedure is not correct?
Many thanks.
