AnsweredAssumed Answered

2 separate programs on one processor (Bootloader- and Applicationcode) flashed with Open SDA.

Question asked by Edward Kaeding on Jun 3, 2014
Latest reply on Jun 4, 2014 by Edward Kaeding

Dear Freescale Community,

 

I apologize in advance if this question has been answered somewhere else before.

 

For my small 32kB Kinetis L processor, I have programed a Bootloader using the Tutorial from "Erich Styger" ( Serial Bootloader for the Freedom Board with Processor Expert ).

Everything works great and have already tested it with various Applicationcodes. The only problem is that I have to flash the Bootloader program first, using Code Warrior 10.3 with the Open SDA connection, and then use the Bootloader

functionallity to flash the Applicationcode to the processor. And this takes ages with bigger codes.

 

Here is my question:

Is it possible to flash both Bootloader- and Applicationcode, using Code Warrior 10.3 with the Open SDA or MultiLink connection, and then have the Applicationcode running normal after reset?

How and which Settings have to be done to accomplish this? At the moment this does not work and I can not figure out how to set this up.

 

Here are my Memory Settings:

MEMORY { (Bootloader)

  m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000000C0

  m_text      (RX) : ORIGIN = 0x00000410, LENGTH = 0x00003BF0     -> Protected

  m_data      (RW) : ORIGIN = 0x1FFFFC00, LENGTH = 0x00001000

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

 

MEMORY { (Application)

  m_interrupts (RX) : ORIGIN = 0x00004000, LENGTH = 0x000000C0

  m_text      (RX) : ORIGIN = 0x000040C0, LENGTH = 0x00003F3F

  m_data      (RW) : ORIGIN = 0x1FFFFC00, LENGTH = 0x00001000

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

 

I hope for good advices and thank each and everyone in advance,

 

Edward.

Outcomes