EMBEDDED SOFTWARE VALIDATION USING ON-CHIP DEBUGGING MECHANISMS