We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 !
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?