HAL tested with stm32f4discovery board.