generate_flash_algo.py: general improvements.
generate_flash_algo.py: general improvements.

- Improve how the stack pointer is calculated.
- Add command line arguments for stack size, an option to only print
  the FLM info, output filename, and template override.

pyocd/pyOCD,flit/pyOCD,pyocd/pyOCD,flit/pyOCD