This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STARTUP.A51 -- silab C8051F931

Can you suggest me STARTUP.A51 for silabs microcontroller C8051F931..
I have problem with starting code on Silab toolstick debuger (but same code work on simulation)!

  • Can you suggest me STARTUP.A51 for silabs microcontroller C8051F931
    no, but I can tell you how to make one.

    save startup.a51 under a different name and include it in your project

    then add to that file the needed code to disable the watchdog and enable the "internal external memory" if there is any in your chip.

    Erik

    "internal external memory": internal memory addressed via the dptr

  • Yees!

    I edit startup.a51 and instead:

                    CSEG    AT      0
    ?C_STARTUP:     LJMP    STARTUP1
    

    I add at beginning ANL 0xD9,#0xBF so:

                    CSEG    AT      0
    ?C_STARTUP:     ;PCA0MD &= ~0x40;                    // WDTE = 0 (clear watchdog timer enable)
                   ANL     0xD9,#0xBF
                   LJMP    STARTUP1
    

    and work OK also on silab toolstick debug adapter!!
    THANKS for helping me!