kammce / sammy

Sammy is a tool for managing SJSU-Dev2 firmware projects and to install external packages such as platforms and libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sammy flash

evanugarte opened this issue · comments

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.

  1. Sammy executed without any arguments will assume flashing by serial (not jtag)
  2. Sammy searches a build directory
  3. If found, Sammy finds all platform folders with a firmware.bin in them that support serial flashing (in this case only lpc17xx and lpc40xx)
  4. If there are multiple prompt user asking them which one to, if only 1 folder proceed to step 5
  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)
  6. Device if flashed and we are good to go

Additional Requirements

see @kammce's helpful description:
image