diff --git a/minichlink/README.md b/minichlink/README.md index 6b8d8c6533af2502a3947fd3641a9fdc95299f7e..241d830a098d13f283ffa1ab486c198c2b2216aa 100644 --- a/minichlink/README.md +++ b/minichlink/README.md @@ -14,16 +14,20 @@ The exe here is about 12kB and contains everything except for the libusb driver. Usage: minichlink [args] single-letter args may be combined, i.e. -3r multi-part args cannot. - -3 Enable 3.3V - -5 Enable 5V - -t Disable 3.3V - -f Disable 5V - -r Release from reest - -R Place into Reset - -D Configure NRST as GPIO **WARNING** If you do this and you reconfig - the SWIO pin (PD1) on boot, your part can never again be programmed! - -d Configure NRST as NRST - -w [binary image to write] - -o [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384] [output binary image] + -3 Enable 3.3V + -5 Enable 5V + -t Disable 3.3V + -f Disable 5V + -u Clear all code flash - by power off (also can unbrick) + -b Reboot out of Halt + -e Resume from halt + -h Place into Halt + -D Configure NRST as GPIO + -d Configure NRST as NRST + -w [binary image to write] [address, decimal or 0x, try0x08000000] + -r [output binary image] [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384] + Note: for memory addresses, you can use 'flash' 'launcher' 'bootloader' 'option' 'ram' and say "ram+0x10" for instance + For filename, you can use - for raw or + for hex. + -T is a terminal. This MUST be the last argument if used. ``` diff --git a/minichlink/minichlink.c b/minichlink/minichlink.c index 14ba5d5d32406dc38427443b2c7ae1e53169ccf2..c75da7220078999ead8ecb8f172b62f64540cea2 100644 --- a/minichlink/minichlink.c +++ b/minichlink/minichlink.c @@ -407,7 +407,7 @@ help: fprintf( stderr, " -r [output binary image] [memory address, decimal or 0x, try 0x08000000] [size, decimal or 0x, try 16384]\n" ); fprintf( stderr, " Note: for memory addresses, you can use 'flash' 'launcher' 'bootloader' 'option' 'ram' and say \"ram+0x10\" for instance\n" ); fprintf( stderr, " For filename, you can use - for raw or + for hex.\n" ); - fprintf( stderr, " -T is a terminal. This MUST be the last argument. You MUST have resumed or \n" ); + fprintf( stderr, " -T is a terminal. This MUST be the last argument if used.\n" ); return -1;