AnsweredAssumed Answered

can i use execute function code in ram ?

Question asked by Byeongjin Kim on Jul 18, 2017
Latest reply on Jul 21, 2017 by Radek Sestak

I develop motor control software. 

i use PTU interrupt. (ADC end interrupt)

The code size becomes large, and it takes a long time.

 

Can this processor be copied to RAM and run?

 

The motor controller code has already been developed on the TI MCU (C28xx). (Verified code)

Changing MCU.

 

--------------------------

example)

#pragma CODE_SEG DEFAULT_RAM

void MY_Function(void)

{

  .....

}

#pragma CODE_SEG DEFAULT

 

"Events.c"

void AD2_OnEnd(void)

{

  MY_Function();

}

--------------------------

 

is it right? but compile error.

 

 

- CodeWarrior 10.7 (using PE)

- S12ZVMC128

Outcomes