Skip to main content
jaroslaw2
Associate III
December 19, 2008
Question

IAP Bootloader and application in one hex file

  • December 19, 2008
  • 7 replies
  • 1479 views
Posted on December 19, 2008 at 06:39

IAP Bootloader and application in one hex file

    This topic has been closed for replies.

    7 replies

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

    I do this by programming a board with bootloader and application and then using the ST flash loader to copy (upload) the entire flash contents. I use a bin file but I think you can also produce a hex file.

    Regards

    Trevor

    jaroslaw2
    jaroslaw2Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    Hi,

    Is it possible to generate one hex file that contains IAP bootloader and application. Now I have two separate projects, one for IAP and one for application. I am using STM32F103ZET6, RIDE 7, Rlink-STX.

    best reg,

    J.O.

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

    Yes, according to Raisonance, it should be possible - see:

    http://www.raisonance.com/Forum/punbb/viewtopic.php?id=2568

    I didn't manage to get it to work with both source applications inside one project - I just got as far as having the main project, and the bootloader application as an ''auxiliary''

    jaroslaw2
    jaroslaw2Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    Thanks very clever :)

    What do you think, is it possible to create one big project with program and bootloader?

    paul239955_stm1_stmicro_com
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    I had to do this recently, combine 3 different bin files and program them. I use CrossStudio, so I used it to make bin files for each project and wrote a little bash script to combine them into one file before programming. It took 10 minutes and works perfectly. PM/email me if you'd like a hand with something like that.

    malfieri9
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    With IAR Workbench you can put all in a single file by using --image_input linker option.

    Regards

    malfieri9
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:50

    How can i reuse some functions that i put inside IAP portion and recall them from my application?

    I'm using IAR workbench.

    Thanks for any help