An implementation of a flash programmer for flashrom(1) on a STM32F4DISCOVERY board