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

Code Compiled, linked, downloaded but not running

Hi,
Do you have faced with this problem ? The USB debug adapter runs but the IDE debugger not. I can put breakpoint on the first line of the main but no break, no timer it generated too, when i stop running no stop on the code line executing.
It seems there is a problem just before the main call.

thx

Parents
  • Hi,
    Thx for your quick responses, indeed it seems to be the watchdog, before main call, which reset.
    But do you know how what to write in the WATCHDOG macro in INIT.A51 file ?

    here is my current watchdog reset macro.
    but seem to not work. however LST file show the macro at right place.

    User-defined Watch-Dog Refresh.
    ; ; If the C application contains many initialized variables uses a watchdog
    ; it might be possible that the user has to include a watchdog refresh into
    ; the initialization process. The watchdog refresh routine can be included
    ; in the following MACRO and can alter all CPU registers except
    ; DPTR.
    ; WATCHDOG MACRO MOV 0CFH,#78H ENDM

Reply
  • Hi,
    Thx for your quick responses, indeed it seems to be the watchdog, before main call, which reset.
    But do you know how what to write in the WATCHDOG macro in INIT.A51 file ?

    here is my current watchdog reset macro.
    but seem to not work. however LST file show the macro at right place.

    User-defined Watch-Dog Refresh.
    ; ; If the C application contains many initialized variables uses a watchdog
    ; it might be possible that the user has to include a watchdog refresh into
    ; the initialization process. The watchdog refresh routine can be included
    ; in the following MACRO and can alter all CPU registers except
    ; DPTR.
    ; WATCHDOG MACRO MOV 0CFH,#78H ENDM

Children