[update] factorize flash writing code. use core_id to identify.
[fw/stlink] / flash /
drwxr-xr-x   ..
-rw-r--r-- 604 Makefile
-rw-r--r-- 2495 main.c