Skip to main content
spa
Associate II
March 26, 2009
Question

Boot loader and I2C

  • March 26, 2009
  • 15 replies
  • 3022 views
Posted on March 26, 2009 at 09:47

Boot loader and I2C

    This topic has been closed for replies.

    15 replies

    st3
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:58

    Quote:

    Maybe ST need a diagram in the application note.

    There is a diagram in the

    http://www.st.com/stonline/products/literature/an/13588.pdf

    App Note that shows its memory layout... :)

    What's missing is specific instructions on how to achieve that with the supported tools... :|

    trevor1
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:58

    Hi Søren,

    The erase function lives in the bootloader application and the bootloader application lives in the first few pages of flash that will not be erased.

    You need two different projects i.e. a bootloader project and a separate application project. In your project setup (not sure what tools you are using) you set the base address. For the bootloader this will be 0x08000000 and for the application this will be (0x08000000 + the bootloader length).

    Your not the first not to get this immediately. Maybe ST need a diagram in the application note. I'm always a little surprised how unfamiliar people are with this approach as I and others I've worked with have been using this approach on different processors for many years.

    Regards

    Trevor

    [ This message was edited by: trevor on 07-01-2009 16:02 ]

    spa
    spaAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:58

    Quote:

    You need two different projects i.e. a bootloader project and a separate application project

    Ok thansk, I have used this approach before. :)

    Best regards

    Søren

    marknorman9
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:58

    Hi

    I'm writing an I2C loader too. I would be very interested in any information or code to help me achieve this, even if it is just links for examples on I2C image transfer, anything would be greatly received, thanks.

    Mark

    marknorman9
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:58

    Hi

    I'm writing an I2C loader too. I would be very interested in any information or code to help me achieve this, even if it is just links for examples on I2C image transfer, anything would be greatly received, thanks.

    Mark