cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 I2C bootloader issue

jiangpen
Associate II
Posted on May 17, 2016 at 08:12

hi all,

I have a program to use a USB2I2C bridge to program the STM32L4 via I2C protocol.

Now I face a problem when I try to implement the protocol. When I send ''Get''(0x00, 0xff), I can receive the NAK. But I cannot receive any other data.

anyone try this I2C bootloader before? I check the stm32flash, but not many hints from that.

thanks

i2c-bootloader

1 REPLY 1
Walid FTITI_O
Senior II
Posted on May 17, 2016 at 13:00

Hi jiang.peng,

If a denied command is received, or if an error occurs during the command execution, the bootloader sends a NACK byte and goes back to command checking. Check if the RDP status, it should be disabled, otherwise all other commands are nacked

I recommend you to have a look to the 

http://www2.st.com/content/ccc/resource/technical/document/application_note/4c/68/fe/72/a8/cd/47/83/DM00072315.pdf/files/DM00072315.pdf/jcr:content/translations/en.DM00072315.pdf

http://www2.st.com/content/ccc/resource/technical/document/application_note/4c/68/fe/72/a8/cd/47/83/DM00072315.pdf/files/DM00072315.pdf/jcr:content/translations/en.DM00072315.pdf

application note about I2C protocol used in the STM32 bootloader

-Hannibal-