What's the memory map for the debug/OpenSDA K20 on the Freescale Freedom?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What's the memory map for the debug/OpenSDA K20 on the Freescale Freedom?

Jump to solution
1,241 Views
andrewpayne
Contributor II

I'd like to develop my own dev/debug app to load on the debug K20 on the FRDM-LK25Z.  What's the memory map for image files loaded by the debug bootstrap code?


Specifically, I'm looking for the information needed to make a loadable debug app:

  • The starting address for the image (i.e. where it gets loaded in flash)
  • The boot entry point address
  • How/where interrupt vectors are handled
  • Ranges of flash and RAM available to loaded apps (vs reserved for the bootloader)
  • Any other requirements (e.g. a signature recognized by the bootloader)

Back in Oct someone asked about the source code to make a loadable app (see:  OpenSDA Source code), with the a release planned "in the next couple of weeks".  Short of getting the source code, is this information documented anywhere?

Thanks!

-andy

Labels (1)
0 Kudos
1 Solution
700 Views
rogerzhong
Contributor III
0 Kudos
3 Replies
700 Views
andrewpayne
Contributor II

I heard back from P&E Micro (they were very helpful, and responded quickly):

In short, the memory map available is from $8000-$1ffff. The bootloader expects

the loaded application to have it's vector table at address $8000 which is

where we fetch the "reset vector" for your application. You have full control

of everything on the processor (including all ram and peripherals) with the

exception of flash ranges $0000-$7FFF. One of the first operations your

application should perform if you want to use interrupts is to set the SCB_VTOR

register to point to your vector table (presumably at address $8000).

So, an SREC origin'd at 0x8000 should do the trick.

0 Kudos
700 Views
andrewpayne
Contributor II

Update: 

I opened a support ticket with Freescale (1-996057826), they replied:

"Please accept my apologies for the late response. Unfortunately the firmware that is loaded on the K20 of the freedom board was develop by P&E micro, because of this is property of P&E."

...and referred me to P&E. I opened a support request with P&E.

0 Kudos
701 Views
rogerzhong
Contributor III

Hi Andrew,

Please refer to, Basic OpenSDA Project

0 Kudos