Build and Flash Automation Script

Medium Shell Build
Solve this problem

Write a shell script that builds firmware using make and then flashes it using openocd.

Constraints

  • Stop on error.
  • Build target: all.
  • Flash script: flash.cfg.
  • Output success message.
Starter codeShell
1#!/bin/bash2# TODO