cancel
Showing results for 
Search instead for 
Did you mean: 

Is this code must be executed from ram?

k_arthur
Associate II
Posted on May 18, 2007 at 08:55

Is this code must be executed from ram?

3 REPLIES 3
k_arthur
Associate II
Posted on May 17, 2011 at 09:43

RAM_exe void Execute_STR9Application(void)

{

pFunction Jump_To_Application;

/* -------------------------------------------------------------------------- */

/* Configure bank 0 as 512KB and bank 1 as 32KB */

/* Remap bank 0 at address 0x0 and bank 1 at address 0x80000 */

/* -------------------------------------------------------------------------- */

FMI->BBSR = 0x0;

FMI->NBBSR = 0x6;

FMI->BBADR = 0x80000 >> 2;

FMI->NBBADR = 0x0 ;

/* Jump to the user application and execute it */

Jump_To_Application = (pFunction) 0x00;

Jump_To_Application();

} void Execute_STR9Application(void)

{

pFunction Jump_To_Application;

/* -------------------------------------------------------------------------- */

/* Configure bank 0 as 512KB and bank 1 as 32KB */

/* Remap bank 0 at address 0x0 and bank 1 at address 0x80000 */

/* -------------------------------------------------------------------------- */

FMI->BBSR = 0x0;

FMI->NBBSR = 0x6;

FMI->BBADR = 0x80000 >> 2;

FMI->NBBADR = 0x0 ;

/* Jump to the user application and execute it */

Jump_To_Application = (pFunction) 0x00;

Jump_To_Application();

}

Does RAM_exe - means that this code must be executed from RAM ?

k_arthur
Associate II
Posted on May 17, 2011 at 09:43

Thank you Zouhair. How to make run the function from ram in KEIL?

k_arthur
Associate II
Posted on May 17, 2011 at 09:43

Thank you Zouhair !!! I tryed to run the code example from IAP of STMicro,but jump operation steel not work. As you know i work in THUMB mode . May be to try it in ARM mode? Already i do not know what to do?