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)!

Parents
  • 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!

Reply
  • 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!

Children
No data