Skip to main content
shrinath
Associate II
September 14, 2011
Question

STM32F103ze Eval Board burning two different programs in two entierly seperate pages

  • September 14, 2011
  • 2 replies
  • 642 views
Posted on September 14, 2011 at 14:17

I am using 32F103ze eval board with Ulink 2 Keil JTAG,Is there a method to place two different program into two different location in the internal Flash and burn it using JTAG(one after the other burning process, ie first time first program starting say, 0x08000000, then next other program starting at 0x0800c000, so the second burn should not touch the first programmed area;selective burn)?

thanks,

shrinath

#two-programs-in-2-exe-region
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    September 14, 2011
    Posted on September 14, 2011 at 15:40

    Well you'd need to configure Keil so that each application uses different memory (sounds like you've done that), and configure the flash downloading to only erase the pages it needs to touch during download.

    ''Options for Target'' -> ''Debug'' -> ''Use: ULINK Cortex Debugger'' -> ''Settings'' -> ''Flash Download'' -> ''Download Function: Erase Sectors''

    From the debugger you could probably use the LOAD command too, and merge hex files.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    September 14, 2011
    Posted on September 14, 2011 at 17:19

    You would also need some way to choose which of the 2 programs to execute.

    That'd be, essentially, the ''boot'' part of a bootloader - without the ''loader'' part...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.