sammy flash
evanugarte opened this issue · comments
Evan Ugarte commented
Add the functionality of flashing a board to sammy.
Example
Lets say you are in projects/hello_world
and you already built the lpc40xx binary.
- Sammy executed without any arguments will assume flashing by serial (not jtag)
- Sammy searches a build directory
- If found, Sammy finds all platform folders with a firmware.bin in them that support serial flashing (in this case only lpc17xx and lpc40xx)
- If there are multiple prompt user asking them which one to, if only 1 folder proceed to step 5
- Run nxpprog (We added a feature to nxpprog called lpc search where nxpprog probes each COM devices for a response and if it finds a valid response will flash the first device it finds)
- Device if flashed and we are good to go
Additional Requirements
see @kammce's helpful description: