Wykres commitów

52 Commity (5a8f637a5c1c19f73d987e5526236beeed7bf850)

Autor SHA1 Wiadomość Data
Nic McDonald f68e4c201f change flash to st-flash
Previous commit changed binary "flash" to "st-flash" but the actual
code printed help message still called it "flash". This commit changes
it to "st-flash".
2015-01-14 22:52:13 -08:00
lementec 3c39d6ba80 add command line debug option to flash util 2014-11-18 10:55:41 +01:00
Rene Hopf 8f97b230fc gdb server fix, indentation 2014-08-15 10:44:24 +02:00
Rene Hopf fde9ec6743 jtag reset 2014-08-13 16:00:40 +02:00
Michael Pratt 3b443dc1c8 Reindent all source files
The indentation of various st-link source files is highly inconsistent.
Reindent all source files to 4 space indentions for consistency.

I went with 4 space indentations, as it was the most common style.
2014-07-09 22:56:36 -07:00
Pete 9b1c00452a Fix segv if only --reset option given
We didn't recheck that there are enough parameters after shifting the --reset option off the list.
2014-03-10 14:32:09 -04:00
Jim Paris 99e8194f7f Add --reset option to trigger a reset both before and after flashing. 2013-10-31 18:02:55 -04:00
Chris Hiszpanski c2e22f961d Fixes issue #161 2013-10-23 22:59:32 -07:00
Michael Pratt 596fb35916 Add option to not reset board on connect
'-n' in st-util will cause it to skip the reset step, and thus allow you
to begin debugging at whatever point the code may currently be at.

Adding this feature required changing the stlink_open functions to
accept a reset flag that tells them whether or not to reset after
connecting.  Skipping reset does not seem to have any adverse effects on
stlink usb devices.  Unfortunately, I have to stlink v1 devices to test.
2013-08-18 14:44:58 -04:00
Ian Griffiths 0b2c105687 Limited DMA clearing to STM32F4, removed fatal error for flash loading.
Commit 0ed3907 added the clearing of DMA registers that was preventing
programming (see issue #74), however it uses hardcoded addresses of the
DMA registers on the STM32F4. This seems to prevent the flashing and
verification on STM32L1, as the registers only partly cover the range
zeroed. So the DMA clearing has been limited to the STM32F4
microcontroller.

Additionally, sometimes, typically directly after erases, a 'flash
loader run error' will occur that terminates the writing. This is not
necessary, as the writing is successfully performed by page writing
(line 1581 onwards of stlink-common.c), and so has been returned to a
error message (see issue #112). There is a comment on line 1574 (added by
Uwe Bonnes in commit 0164043f) that this may happen on blank devices,
and so the fatal error message is the incorrect response.
2013-03-22 13:39:00 +00:00
A Sheaff 0ed390771c Clears DMA config registers for Discovery F4 board
to allow flash programming.  See texane/stlink issue #74.
2013-01-09 17:00:52 -05:00
Uwe Bonnes cfb1e86252 st-flash: Honor size, if given 2012-06-07 18:03:23 +02:00
Uwe Bonnes 41c5ef21ab Rename "flash" to "st-flash" 2012-02-07 21:48:46 +01:00
texane 9aeeca2687 Merge pull request #52 from UweBonnes/master
Fixes around F4
2012-01-31 09:11:35 -08:00
Uwe Bonnes 9e842c3aa5 Merge branch 'master' of github.com:UweBonnes/stlink 2012-01-31 11:39:55 +01:00
Daniel O'Connor 5e5d1fa747 Use pkg-config to find libusb CFLAGS and LDFLAGS. 2012-01-31 16:49:45 +10:30
Uwe Bonnes a1a949fa55 Limit reading from RAM to the SRAM Size 2012-01-30 13:32:18 +01:00
Uwe Bonnes 19b8c64540 Give a different error when writing to flash or ram 2012-01-29 14:21:26 +01:00
Uwe Bonnes 8c36e07cbe Make stlink_erase_flash_mass device dependant and implement mass erase for L1
by consecutive page erase
Allow to erase the device with the flash
2012-01-19 16:10:43 +01:00
Uwe Bonnes 4c206c3b7c Allow to write to sram from the command line 2012-01-19 14:07:14 +01:00
Uwe Bonnes 7eb080490c Move reset/load_param in the open functions, as requested by Karl 2011-12-18 23:35:20 +01:00
Uwe Bonnes 9ef6d28cb5 Modify shutdown seqeunce. Now a F107 in sleep mode reacts on the reset pin after running stlink 2011-12-13 18:41:07 +01:00
Uwe Bonnes 5eda4566d6 Determine the device parameters explicit after running
stlink_reset(). Otherwise a sleeping device (WFI) doesn't return the
parameters.
2011-12-13 17:48:54 +01:00
Uwe Bonnes face2e7bab Add explicit dependancy on the stlink archive 2011-12-10 18:22:51 +01:00
Uwe Bonnes bcee01d705 Chevck first for NULL before writing anything to the alloceted structure 2011-12-10 17:17:25 +01:00
Uwe Bonnes 2edd0530a6 Only call strtoul when there is an argument that strtoul can work on 2011-12-10 17:15:48 +01:00
le mentec fabien e9586c100e [update] apply patches from marpe@mimuw.edu.pl for flash tool: verbosity, run after programm\ 2011-11-22 09:39:58 -06:00
Karl Palsson 83a5eb2ed3 Merge branch 'tmaster' into future
This branch should work for F1 and F4 devices.  It has currently been tested
with F1 value line, (a VL discovery board) programmed via gdb via both an
stlinkv1 and an stlinkv2.

F4 has _not_ yet been tested on this branch

Conflicts:
	.gitignore
	doc/tutorial/tutorial.pdf
	example/blink/main.c
	gdbserver/Makefile
	gdbserver/gdb-server.c
	src/stlink-common.c
	src/stlink-common.h
	src/stlink-usb.c
2011-11-15 00:57:09 +00:00
Karl Palsson b55b75c3b9 Remove final reference to old sg/usb compilation flags 2011-11-14 23:01:03 +00:00
jnosky 67db39b0b3 Changed size argument to hex
Address was hex, size was decimal. Now uniform to be hex
2011-11-14 16:16:57 -05:00
Fabien Le Mentec 0ff09f90ce [merge] merge jnosky/master 2011-11-12 02:25:02 -06:00
Karl Palsson 6cc3375151 Merge branch 'master' of github.com:karlp/stlink 2011-11-11 22:59:44 +00:00
Karl Palsson e9a205ff98 Finish removing sg-utils dependencies.
The code deps were removed, but the flags stayed in some makefiles.
2011-11-11 15:38:09 +00:00
Karl Palsson c98c487fa5 Merge branch 'master' of https://github.com/texane/stlink
Conflicts:
	Makefile
	doc/tutorial/tutorial.pdf
	example/blink/Makefile
	flash/main.c
	src/stlink-common.c
	src/stlink-usb.c

Mostly whitespace conflicts it seems.
2011-11-04 02:51:15 +00:00
Karl Palsson 388606716e Update tutorial docs and flash writing/reading 2011-11-04 02:23:17 +00:00
jnosky 0fbdd62e61 Fixed flash utility for STM32F4
Can write entire 1MB of flash
2011-10-29 18:17:46 -04:00
Fabien Le Mentec 224966f637 [update] factorize flash writing code. use core_id to identify. 2011-10-23 03:12:23 -05:00
Chris Samuelson 207a5b7c6a Merge branch 'master' of github.com:csamuelson/stlink 2011-10-22 21:25:56 -05:00
Chris Samuelson 59a7e8b470 Place -lusb-1.0 as the last of the linker options 2011-10-22 21:23:53 -05:00
Fabien Le Mentec 70f04de7fc [update] retry write once on failure 2011-10-22 17:34:05 -05:00
Karl Palsson d7e37a684a Replace all logging
I needed some sanity...
2011-10-22 20:32:02 +00:00
Karl Palsson 42d2da531f flag out the only scsi specific code
Also flag out some places where code appears unused.
2011-10-22 19:09:31 +00:00
Karl Palsson 076f1086fa Remove all #ifdefs for sg-utils.
We're starting on integration from github.com/afaerber
So, instead of scanning all the usb devices, just open what we want.
2011-10-22 18:05:24 +00:00
Karl Palsson 9bc72d4519 Merge upstream texane/master 2011-10-22 02:11:04 +00:00
Ned Konz 105e266a05 Allowed CONFIG_USE_LIBSG=0 to suppress STLink/V1 compilation
This will let people with Macintosh OS/X computers compile and use stlink with STLink/V2 devices, as libsg3 is not available for that platform.
2011-10-20 19:21:43 -07:00
Ned Konz 152989ba1c Added usage prompt to flash utility 2011-10-19 18:55:56 -07:00
Ned Konz d0e853ff2b Fixed compile of flash program 2011-10-19 18:39:26 -07:00
Fabien Le Mentec 2ec1e2b25d [fix] read_mem32 needs to add +1 to len 2011-10-17 16:21:29 -05:00
Fabien Le Mentec 8abe4682dd [fix] flash tool. not working for stm32l, ok with stm32vl 2011-10-17 14:52:57 -05:00
le mentec fabien ffe5d1f31a [update] add read command to flash tool 2011-10-17 04:00:02 -05:00