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

program exec well in simulator but not when loaded in target

Hi All
i have written routines for 8051RD2,after compiling and building target i tried this program with simulator,it was working fine and was giving me the desired o/p,but when hex file for this routine was loaded in target,Execution control was coming out of routines sequence when routines where executed in target.
i tried to reduce the program size,just to conform is it due to large program size,but the response remained same !
i observed routines where coming out of sequence when "printf "statement was getting executing.
Now what step should i follow for debugging this problem ,Help!!
Thanks in advance !

Parents Reply Children
  • yes.I tested this hardware (after ISD was giving problem) by loading assembly routines.it was working fine.
    if problem is with hardware which part of it should i look for debug ?
    Is it serial communication part ?
    ISD51 does not require any external hardware.
    i have doubt regarding configuration settings
    are setting given above correct ?

    Even baud rate setting in target option is giving problem.i am using clock 12,11.0592 MHZ crystal,which gives me 57600 baud rate,
    But on setting crystal freq to 11.0592 in target option,Then on entering to debug mode and viewing baud rate IDE shows 115200
    ie double of what i want.
    how can i keep both this freq same without changing harware side ?