Flash programmer for microcontrollers