>>The chip is being programmed and once it is plugged into the target board only the ports are working and nothing is working like memory access,lcd etc. are not working including the RS232 port.<<
Did you take care of the other differences (variable timer clocking etc)?
Erik