Skip to main content
Kannan M
Visitor II
March 31, 2017
Solved

I2C Bootloader Issue - STM32L071KB

  • March 31, 2017
  • 2 replies
  • 1142 views
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
This topic has been closed for replies.
Best answer by daniel adelsberger
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.

2 replies

daniel adelsberger
Visitor II
May 30, 2017
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
daniel adelsberger
Visitor II
May 31, 2017
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.

Technical Moderator
May 30, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks