Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve command line interface #3

Open
osresearch opened this issue Jun 26, 2019 · 1 comment
Open

Improve command line interface #3

osresearch opened this issue Jun 26, 2019 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@osresearch
Copy link
Owner

The write-ram tool is a bit of a hack and could be merged into a read/write/monitor tool. The command protocol should be updated to include ACKs and ensure that the serial port is in the correct mode.

@osresearch osresearch added enhancement New feature or request good first issue Good for newcomers labels Jun 26, 2019
@osresearch osresearch mentioned this issue Jun 28, 2019
@osresearch
Copy link
Owner Author

Proposal for the spispy command line utility:

Usage:
  -h | --help                    This help
  -d | --device /dev/ttyACM0     Serial port device
  -b | --baud 3000000            Baud rate (for FTDI serial)

  -r | --read file               Read RAM into file
  -w | --write file              Write RAM from file
  -R | --read-flash file         Read flash into file
  -W | --write-flash file        Write flash from file
  -a | --address 0x0             RAM/flash address to read from
  -l | --length 0x1000           Length to read from RAM/flash
  -z | --size 16                 Flash chip size in MiB
  -c | --clone                   Clone the flash chip into RAM

  -i | --id cf2316               Set flash chip ID in RAM
  -I | --flash-id                Read the flash chip ID from flash

  -s | --sfdp file               Write RAM SFDP from file
  -S | --sfdp-flash file         Read flash SFDP into file

  -m | --monitor                 Monitor flash access patterns
  -e | --emulate                 Enable flash emulation mode
  -n | --no-emulate              Turn off flash emulation mode

  -t | --toctou                  Need to figure out how this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant