It seems that this board needs a reset command before flashing with jlink This adds the reset - r - to the JLINK_PRE_FLASH