NXP-13800: updated scripts to diagnose errors