13 Commits

Author SHA1 Message Date
John Finley
bb1add3390 Unprotect option (#1)
* readout unprotect is not done unless explicitly enabled

New command line option "-u" must be supplied or the readout unprotect
will not be done on erase failure. If the erase fails and readout
unprotect is not enabled (i.e. -u was not supplied) then the program
just terminates with an error (nonzero) exit status.

The intent is for the caller to be able to do a few retries to see if
the erase failure is transient, then do an update with readout unprotect
enabled as a last resort.

* explicit logging in case of initChip error

Also test code to simulate initChip error.
2016-04-26 18:23:06 -07:00
Allan Matthew
c469fe573b Adding 3DR's stm32loader.py changes 2015-08-05 08:48:36 -07:00
Domen Puncer
0d5b49b5c3 Add chip id strings 2012-06-19 16:28:47 +02:00
Domen Puncer
aa21cfd79d Bootloader command GO, -g <addr> 2012-06-19 15:06:39 +02:00
Domen Puncer
15db5e2e8a Added extended erase (0x44), needed for stm32f2 stm32f4 series 2012-06-18 11:31:03 +02:00
Domen Puncer
b72acb9cd7 fix "Unknow" typo 2012-06-18 11:12:39 +02:00
Domen Puncer
e502858e6a Open file in binary mode, so it works on windows. Fix from http://www.micromouseonline.com/2009/05/08/stm32-arm-cortex-bootloader/#comment-197 2012-06-18 10:40:43 +02:00
Domen Puncer
0d8fc2912f Fix unclear comments on serial setup 2012-06-18 10:37:36 +02:00
James Snyder
c0d9f993a2 Fix bug with reading to file. 2009-05-10 18:51:42 -05:00
James Snyder
f8c5f2c9df some notes. 2009-04-06 11:18:02 -05:00
James Snyder
2a8dfe789c Include GPL license. 2009-04-06 11:13:44 -05:00
James Snyder
0849df43fb Commit initial modifications of stm32loader.py. 2009-04-06 11:10:28 -05:00
James Snyder
a6fd569d69 first commit 2009-04-06 11:09:26 -05:00