Wykres commitów

585 Commity (dae71f4a8e8a24753cfbcaa984fa67c84c0f7a90)

Autor SHA1 Wiadomość Data
texane 044b6dc7d6 Merge pull request #148 from AleCher/master
Environment STLINK_DEVICE allow to choose usb device
2013-04-23 05:54:14 -07:00
Alexey Cherevatenko 90d380e8d1 Environment STLINK_DEVICE allow to choose ST_LINK 2013-04-23 15:17:09 +03:00
texane 29d03e95b4 Merge pull request #143 from mower7/master
Added SIGTERM handler
2013-04-16 09:52:21 -07:00
texane 86ad03e774 Merge pull request #142 from yurovsky/master
minor cleanup
2013-04-13 23:21:21 -07:00
Andrey Yurovsky 821a21482f Don't use magic numbers for chip_id field
The chip IDs are defined up top and those macros are used throughout the
code so let's remove the magic numbers in .chip_id so that everything is
using the macros.

No functionality changes, just a find/replace.
2013-04-13 22:32:09 -07:00
Jack Peel 04c142c69b Add SIGTERM signal handler to also call cleanup
When stopping st-util under Eclipse as an external tool the st-util
	receives a SIGTERM signal, and would not return the device to
	usb mass storage mode.  This change now calls cleanup in the SIGTERM handler too!!
2013-04-05 17:55:19 -07:00
texane 4cea62e454 Merge pull request #141 from mower7/master
A little mode tweaking for the STM32L Medium Density Devies
2013-04-05 09:12:06 -07:00
Jack Peel 55b9ecd36c Add support for the STM32L1 Medium density device flash size calculation
In devices before "Rev X" the flash size register is 0 so we assume 128k
Note that "Rev X" is a LATER revision than "Rev Y" and others that might
seem like they are later!
2013-04-05 09:06:26 -07:00
texane 3cfabe5c3a Merge pull request #140 from mower7/master
Adding Support for STM32L1xx Medium and High density devices
2013-04-03 22:29:20 -07:00
Jack Peel e5772dffbf Add Support for STM32L1xx Medium Plus and High density Devices
Using reference RM0038 Rev 7
		The flash size register moved
		and the values in the registers changed their meaning
		Note that Medium Plus and High density deives have the
		same device ID, but only the Medium Plus definition is
		used in the code (the High comes along for free)
2013-04-03 16:43:13 -07:00
Fabien Le Mentec 8df5b3be5e [ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws 2013-04-01 15:36:52 -05:00
texane d1635e8013 Merge pull request #138 from 6thimage/master
Fix for programming STM32L152
2013-03-22 06:52:33 -07: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
Ian Griffiths 69fecdca63 Added lock state check to stlink_erase_flash_page.
On the STM32L152 processor, the erase fails for the first page as the
lock is already disabled (with the unlocking code causing the lock to
become re-enabled). This commit adds checking of the lock state and will
only unlock if necessary.
2013-03-20 13:01:49 +00:00
texane 5be889e3fe Merge pull request #135 from prattmic/signal_cleanup
Add SIGINT handler for stlink cleanup
2013-03-06 13:44:48 -08:00
Michael Pratt 2216d28452 Add SIGINT handler for stlink cleanup
SIGINT causes st-util to immediately exit, without closing the open
stlink.  This leaves devices (at least the F4 Discovery) in a state
where they are unable to reset.  st-util could still connect and control
them, but a power cycle was required before they could reset on their
own.

A signal handler is added for SIGINT, which performs cleanup and closing
of the open stlink device, allowing it to function normally on
disconnect.
2013-03-06 16:34:32 -05:00
texane a9b8226d87 Merge pull request #133 from prattmic/master
Move persistence flag to st_state_t
2013-03-06 11:52:25 -08:00
Michael Pratt 4d1ee4d97e Move persistence flag to st_state_t
It makes sense for it to be with all other state data.  This meant
passing the entire state struct into serve.
2013-03-06 14:23:17 -05:00
texane 7adf723a44 Merge pull request #132 from prattmic/master
Add gdb-server persistence
2013-03-06 10:39:14 -08:00
Michael Pratt 9bed540624 Add persistence support to gdb-server
When started with -m, or connected with 'target extended-remote', the
GDB server will not terminate upon disconnection from GDB, instead it
will begin listening for conenctions again.

Starting with extended-remote also has the advantage of allowing 'run'
to be used to reset the target and begin again.  Unfortunately, 'start'
is not working properly, as it does not send a reset packet (R), so it
complains when it tries to access memory before it is connected to the
target.
2013-03-06 12:52:12 -05:00
Michael Pratt 3569970998 Revert "[ merge ] patch from fischermi@t-online.de, GDB server endless loop"
This reverts commit 1c2828cc91.
2013-03-06 12:03:27 -05:00
texane bbecbc1e81 Merge pull request #128 from schodet/unaligned-read
Fix byte count when doing unaligned memory read, fix issue #127
2013-02-12 11:13:54 -08:00
Nicolas Schodet 44445dd7b0 Fix byte count when doing unaligned memory read, fix issue #127
- when start is adjusted, count should also be adjusted,
 - then, count is rounded to the next multiple of word size.
2013-02-12 19:38:46 +01:00
texane 4cfc1f61e9 Merge pull request #122 from sheaff/master
STM32F4 flash while using DMA potential fix
2013-01-09 22:26:09 -08: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
texane d66a7007ec Merge pull request #121 from WinterMute/64bit_win_fix
64bit win fix
2013-01-06 09:20:41 -08:00
Dave Murphy 23884e8b42 bump version 2013-01-06 16:00:57 +00:00
Dave Murphy f22b91b57a file needs to be Binary for windows
O_BINARY only defined on windows
2013-01-06 15:59:57 +00:00
Dave Murphy da129b2ccd fix write_flash size of len for 64bit 2013-01-06 15:33:48 +00:00
Dave Murphy 79b413ca5b bump version 2012-12-31 23:11:46 +00:00
Dave Murphy 9034a8a7b2 Merge branch 'master' of git://github.com/texane/stlink 2012-12-31 23:09:50 +00:00
Dave Murphy acbfa3ad6f bump version 2012-12-31 23:09:30 +00:00
Fabien Le Mentec 1c2828cc91 [ merge ] patch from fischermi@t-online.de, GDB server endless loop 2012-12-27 07:00:46 -06:00
Fabien Le Mentec 7505f99b2a [ merge ] patch from jgobat@gmail.com, add STM32F373 support 2012-11-28 12:48:50 -06:00
Fabien Le Mentec 08872f834d [ merge ] Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> patches 2012-11-25 09:50:44 -06:00
lementec 7942914971 [ merge ] STM32_CHIPIP_F3 patch from Geoffrey Brown 2012-11-15 17:37:00 +01:00
texane c4183b6772 Merge pull request #114 from wkoszek/master
Support for STM32 F3 Discovery board (ARM Techcon 2012)
2012-11-03 23:45:47 -07:00
Wojciech A. Koszek aa66f4ed87 Bring the support for STM32 F3 Discovery board (ARM Techcon 2012)
Support was tested by attaching USB cable to USB ST-LINK USB port, starting

	./st-util

Which resulted in proper device recognition:

	2012-11-03T23:11:25 INFO src/stlink-common.c: Device connected is: F3 device, id 0x10016422
	2012-11-03T23:11:25 INFO src/stlink-common.c: SRAM size: 0xa000 bytes (40 KiB), Flash: 0x40000 bytes (256 KiB) in pages of 2048 bytes
	Chip ID is 00000422, Core ID is  2ba01477.

Then from GDB, after "target remove localhost:4242", I tested reads:

	x/w 0x20000000

And writes:

	set {int}0x20000000 1

And ELF loading:

	(gdb) load main
	Loading section .text, size 0x10 lma 0x20000000
	Start address 0x20000000, load size 16
	Transfer rate: 410 bytes/sec, 16 bytes/write.

And verified dissasembly (in my case--with Thumb mode) with objdump -d <elf>
output:

	(gdb) set arm force-mode thumb
	(gdb) x/7i 0x20000000
	=> 0x20000000:	push	{r7}
	   0x20000002:	sub	sp, #12
	   0x20000004:	add	r7, sp, #0
	   0x20000006:	ldr	r3, [r7, #4]
	   0x20000008:	add.w	r3, r3, #1
	   0x2000000c:	str	r3, [r7, #4]
	   0x2000000e:	b.n	0x20000006
2012-11-03 23:20:17 -07:00
texane 3494c116ec Merge pull request #111 from Senseg/master
Experimental support for STM32F0-Discovery
2012-10-18 04:58:04 -07:00
Pekka Nikander e8b15c0e78 Add support for STM32F0-Discovery 2012-10-05 15:34:36 +03:00
Pekka Nikander bfc368c57e src/stlink-common.c: Improve error reporting 2012-10-05 15:32:48 +03:00
Pekka Nikander f0256c69cb src/stlink-common.[ch]: Another fix on white spaces, unifying coding style 2012-10-05 15:30:28 +03:00
texane 94de0f180e Merge pull request #109 from Senseg/master
Commit to fix white spaces and unify coding style.
2012-10-04 00:31:05 -07:00
Pekka Nikander 8604e0b625 src/stlink-common.c: Fix white spaces, unify coding style 2012-10-04 09:20:18 +03:00
texane b5ece811c3 Merge pull request #108 from jkent/master
Workaround for nRST not being asserted via on the F4-Discovery's st-link/v2...
2012-09-19 10:35:56 -07:00
Jeff Kent ff1a7aa50b workaround for asserting nRST, issue "monitor jtag_reset" from gdb 2012-09-19 12:22:28 -05:00
texane 6a92b0f686 Merge pull request #106 from thotsch/master
Added kext for OS X 10.8
2012-08-22 06:41:30 -07:00
Thomas Gärtner e197cd8e2e Added kext for os x 10.8
I added a kext for mountain lion to osx.tar.gz and modified install.sh
to use the right one or fail if no suitable kext is available.
2012-08-22 15:33:19 +02:00
texane bd11354391 Merge pull request #105 from prattmic/master
Fix watchpoint support
2012-08-19 09:30:43 -07:00
Michael Pratt 684d76afa0 Fix watchpoint support
Setting of watchpoints was nested inside of a case statement, so it
would only run for that case, even though it supports all cases.
2012-08-19 12:19:25 -04:00