cancel
Showing results for 
Search instead for 
Did you mean: 

run programme at the rams

eolman
Associate II
Posted on May 12, 2005 at 09:33

run programme at the rams

2 REPLIES 2
eolman
Associate II
Posted on May 17, 2011 at 12:06

hello,everybody.would you help me?I need to erase and program csboot0-3.the data are copied from fs1.

Therefore,main flash are used as data space.so, I copy the relevant code from csboot1 to SRAM and set VM to execute operation from SRAM. but the MCU gets stuck, (or reset by watchdog).

I am using upsd3254a device with KEIL uVision2.

My bootloader project configs:

fs0: 0x8000 - 0xFFFF page 0

fs1: 0x8000 - 0xFFFF page 1

fs2: 0x8000 - 0xFFFF page 2

...

fs7: 0x8000 - 0xFFFF page 7

rs0: 0x0300 - 0x7FFF

csiop: 0x200 - 0x2FF

csboot0: 0x0000 - 0x7FFF

thanks to all!

thomasthanner9
Associate II
Posted on May 17, 2011 at 12:06

Hello,

in order to be able to execute a program from SRAM you have to ensure that Bit 0 of the VM-register is set.