Skip to main content
Kaushal
Associate
May 19, 2020
Question

How Can I Code For Boot-loader In STM32F030K6T6 Using I2C Protocol With Anther Board of STM32F030K6T6???

  • May 19, 2020
  • 7 replies
  • 1843 views

Hello ,

I Am Working With Two STM32F030K6T6 Board ,Which is Used As a Boot-loader application With I2C protocol.

So I Can Communicate Small Data But Some How I Can Not Communicate A Long Data To Transmitted or Received From Master To Slave Or Slave To Master .

I Have Try Both the The Method Using Blocking mode And Non-Blocking Mode .

So Please suggest How To Make a Code For Long Data Transmission Using I2C Protocol In Both Board .

    This topic has been closed for replies.

    7 replies

    Tesla DeLorean
    Guru
    May 19, 2020

    Break the "Long Data" into smaller sub-blocks?

    Or are you talking about the ROM based system loader described in App Note AN4221 ?

    https://www.st.com/resource/en/application_note/dm00072315-i2c-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    AZHUK.1
    Associate
    June 4, 2020

    The document does not display the protocol diagram of I2C. Do I need to send the device address before each command is sent?

    Tesla DeLorean
    Guru
    June 4, 2020

    Figure 1 seems to indicate that it doesn't..

    Some of us just try things and experiment so we understand how things actually work. Send a couple of query type commands, and some reads, see how it responds.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Kaushal
    KaushalAuthor
    Associate
    May 19, 2020

    Yes I Have To Break All The Data In Small Blocks ,

    But I Only Stuck in Communication Part To synchronous Of Two Board Which Time Which Board Is Selected For Transmitter Or Receiver The Data .

    So I Want The Algorithm Of Communication Between Two Boards Using I2C Protocol.