Xgate on Flash

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

Xgate on Flash

1,822 Views
RubenCG
Contributor III
Hi,
I'm working with mc9s12xdp512 16-bit proccessor. This MCU has Xgate co-processor. Xgate is a great idea for the purpouse of my application but I have some questions that, perphaps, you can resolve.

Is it possible to execute Xgate code from Flash or is it a must the code was executed from RAM?

Thanks in advance
Ruben
Labels (1)
0 Kudos
2 Replies

298 Views
Steve
NXP Employee
NXP Employee
XGATE has access to about 30k of flash and you can use this for whatever purpose you want including code space.
Be aware that XGATE will run at half the speed when fetching code from flash (i.e. same bus speed as the CPU - 40MHz max.) and this is the reason that RAM is the primary recommendation. Essentially flash is slow compared to RAM.
To place XGATE code in RAM you define the appropriate code segment in the linker file and the linker will place the code where you want it to be.
0 Kudos

298 Views
RubenCG
Contributor III
Thank you Steve for your quickly answer. Now I know that I have the two possibilities, probably I'll use the RAM.
0 Kudos