2005-05-12 12:33 AM
2011-05-17 03:06 AM
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!2011-05-17 03:06 AM
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.