As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AFTER TAKEOFF, THE FLAPS DID NOT COME UP ABOVE SIX DEGREES. CAPTAIN PERFORMED APPROPRIATED CHECKLIST AND THE DECISION WAS MADE TO DIVERT. AN EMERGENCY WAS DECLARED AND THE AIRCRAFT LANDED OVERWEIGHT. MAINTENANCE COMPLIED WITH THE OVERWEIGHT LANDING INSPECTION WITH NO DEFECT NOTED. MAINTENANCE REMOVED AND REPLACED THE FLAP ELECTRONIC CONTROL UNIT DUE TO INTERNAL FAILURE FAULT CODE. OPERATIONAL CHECKS GOOD. AIRCRAFT RETURNED TO SERVICE.