cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Bootloader Issue - STM32L071KB

Kannan M
Associate
Posted on March 31, 2017 at 15:06

Hi,

   I have a STM32L071KB Chip Inserted in a  STM32F031K6-Nucleo Development Board.

   I am trying to Get into I2C Bootloader mode by Setting BOOT0 Pin to HIGH.

   But When I Try to detect the I2C Slave Address (0x42), SCL pin is driven low, and timeout error occurs.

   TIA.

0690X00000603j3QAA.jpg

 0690X00000602RcQAI.bmp

P.S.:

  • I2C1 Bus is Working Normally when I ran the Example Code in ''\Examples\I2C\I2C_TwoBoards_ComIT''
  • I also tried UART Bootloader, which is also Not working Similarly, but Works in the Example Code in ''\Examples\UART\UART_Printf''.

#stm32l0-nucleo #i2c-bootloader #stm32l071 #stm32l071kb
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on May 31, 2017 at 07:21

Ok, found out what was wrong. I forgot to remove two solder bridges on the Nucleo board (SB16, SB18). The solder bridges were connecting PB6 (Bootloader I2C SCL) to PA6 and PB7 (Bootloader I2C SDA) to PA5. PA5 and PA6 are used as SPI interface in Bootloader firmware. So I2C and SPI pins were interfering in my case. After removing solder bridges it worked.

View solution in original post

3 REPLIES 3
daniel adelsberger
Associate
Posted on May 30, 2017 at 11:11

Have similar problem with STM32L432KC-Nucleo board. I2C1 is working if used in example firmware (or my own firmware) but not with bootloader.

Something strange is happening with SCL (see screenshot)

0690X00000607AMQAY.png
Imen.D
ST Employee
Posted on May 30, 2017 at 17:34

Hi,

Refer to this link with example of code,

https://community.st.com/0D50X00009XkW1mSAF

 

Hope this help you

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on May 31, 2017 at 07:21

Ok, found out what was wrong. I forgot to remove two solder bridges on the Nucleo board (SB16, SB18). The solder bridges were connecting PB6 (Bootloader I2C SCL) to PA6 and PB7 (Bootloader I2C SDA) to PA5. PA5 and PA6 are used as SPI interface in Bootloader firmware. So I2C and SPI pins were interfering in my case. After removing solder bridges it worked.