cancel
Showing results for 
Search instead for 
Did you mean: 

IAP Problem

christoph239955
Associate II
Posted on January 06, 2006 at 12:14

IAP Problem

2 REPLIES 2
christoph239955
Associate II
Posted on May 17, 2011 at 12:09

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...

cba

wek2
Associate II
Posted on May 17, 2011 at 12:09

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