AnsweredAssumed Answered

executing function in paged RAM (S12X)

Question asked by arnaud gregoire on Dec 22, 2016
Latest reply on Dec 22, 2016 by lama

Hi all,

 

I'm using S12XEP100 in large memory model and i'm trying to use 0xFF Flash page relocate to 4 paged RAM (0xFC to 0xFF)

ROM_RELOC = READ_ONLY     0x7FC400'G TO 0x7FE3FF'G  RELOCATE_TO 0xFC400'G;

 

At startup ROM code is copyied on RAM, then code (main function) relocate in RAM is executed. 

main                                    7FCF70'G      83     131       2   .text             FCF70'G

 

CALL  main,PAGE(main)

 

CALL 0x1F70,0xFC is executing and PPAGE is setting to 0xFC but RPAGE is not manage and the code is not correctly execute.

 

Is it possible to use paged RAM to execute code ?

 

thanks,

 

Arnaud Grégoire

Outcomes