2007-05-17 11:55 PM
Is this code must be executed from ram?
2011-05-17 12:43 AM
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 ?2011-05-17 12:43 AM
Thank you Zouhair. How to make run the function from ram in KEIL?
2011-05-17 12:43 AM
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?