AnsweredAssumed Answered

How to manually enable VLE for a given section of memory?

Question asked by petitbeurre on May 22, 2013

Hi all,

 

I am writing an application on a MPC5516 microcontroler, and I want it to be able to execute some VLE instructions that I manually wrote in flash memory.

 

I succeed in making PC jump to the address where is stored the code that I want to execute, but they are not recognized as VLE instructions. For exemple, the 32bits VLE instruction

182106E0 e_stwu R1, -32(R1)

is considered illegal.

 

My guess is that the memory section where are stored my instructions is not 'VLE enabled'. The document "Variable Lenth Encoding (VLE) Programming Environments Manual" indicates that the "set of alternate encodings is selected on a page basis. A single storage bit attribute bit selects between standard instruction encodings and VLE instructions for that page".

 

Could someone explain me how could I manually enable VLE for a given section of flash memory?

 

Thanks a lot,

Regards,

Nicolas

Outcomes