Repair some HEX-file scripts and configure debug monitor.