5 INT_FILE=${BASE_DIR}/openocd/${PROGRAMMER_TYPE}.cfg
6 CPU_FILE=${BASE_DIR}/openocd/${PROGRAMMER_CPU}.cfg
9 if [ ! -f ${INT_FILE} ]; then
10 printf "Interface ${PROGRAMMER_TYPE} not supported\n";
14 if [ ! -f ${CPU_FILE} ]; then
15 printf "CPU ${PROGRAMMER_CPU} not supported\n";
19 sed -e "s#PROGRAMMER_TYPE#${INT_FILE}#" ${BASE_DIR}/openocd/flash.cfg | sed -e "s#PROGRAMMER_CPU#${CPU_FILE}#" \
20 | sed -e "s#IMAGE_FILE#${IMAGE_FILE}#" > ${OUT_FILE}
22 openocd -f ${OUT_FILE}