add the stm32 flash code

Signed-off-by: James Pearman <jbpearman@mac.com>