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
  • You should first check the initilization of the serial interface. The uVision2 simulator lists the baudrate that you are acutally using in the peripherals dialog pages.

    Next, set the STIME VTREG to 1. This will simulate the exact baudrate and you should be able to see the software problem also in the simulator.

    Also check the memory regions listed in the linker map file (*.M51). Are all the memory regions available in your target hardware?

Reply
  • You should first check the initilization of the serial interface. The uVision2 simulator lists the baudrate that you are acutally using in the peripherals dialog pages.

    Next, set the STIME VTREG to 1. This will simulate the exact baudrate and you should be able to see the software problem also in the simulator.

    Also check the memory regions listed in the linker map file (*.M51). Are all the memory regions available in your target hardware?

Children
No data