Skip to main content
Visitor II
January 6, 2006
Question

IAP Problem

  • January 6, 2006
  • 2 replies
  • 827 views
Posted on January 06, 2006 at 12:14

IAP Problem

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    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