2006-01-06 03:14 AM
2011-05-17 03:09 AM
Hi,
I try to implement a little bootloader on a uPSD 3354D 1) I jump from BOOT to MAIN with: *************************************************** _Switch_Flash: MOV DPTR,#01e2H ; my VMreg MOV A,#84H MOVX @DPTR,A LJMP 0000H; *************************************************** (that works) from MAIN to BOOT i want to jump with *************************************************** _Switch_Flash: MOV DPTR,#01E2H MOV A,#092H MOVX @DPTR,A LJMP 0000H; *************************************************** (that doesn't work) --> why??? The device produces an reset and restarts the main programm. 2) Is it possible to run the uC at first from MAIN Flash? My uC starts after every reset in the SECOND Flash! (The only exception you can read 5 lines before!) Danks... cba2011-05-17 03:09 AM
What is your memory map? And what is the initial value of VM?
(both information you will get from the settings you entered into PSDSoftExpress and you can find them in the xxxx.map file where xxxx is the name of your design). Jan Waclawek