Apply the pre-commit hook whitespace fixes to all files in the repo. (Line endings, blank lines at end of file, trailing whitespace)
Adds targets erase_flash and monitor for users not using idf.py. Closes https://github.com/espressif/esp-idf/issues/2420.
Closes https://github.com/espressif/esp-idf/issues/2553
As reported on forum. Requires a small CMake wrapper script to pick up environment variables at flashing time.