lib: remove unnecessary asserts in bsearch
platform: use openocd to flash stm32f4 as fallback method