Wykres commitów

620 Commity (cbab4b1e34b91622ae0bd879f540a66bc0d9b9c1)

Autor SHA1 Wiadomość Data
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
texane f4a83ff395 Merge pull request #102 from prattmic/master
Fix the stlink-sg backend to leave space for new functions
2012-07-09 09:29:53 -07:00
Michael Pratt ca0f89c20b Fix build warning 2012-07-09 11:08:55 -04:00
Michael Pratt f300f74a0c Fix the stlink-sg backend to leave space for new functions 2012-07-09 11:06:50 -04:00
texane fde8b6b24e Merge pull request #101 from prattmic/master
Add support for all core registers on the STM32F4DISCOVERY, including floating point registers.
2012-07-08 23:23:53 -07:00
Michael Pratt c6274f026b Write to extra (FP, etc) registers from GDB
The extra registers added in my previous commit can now be modified from
within GDB.  Since the ST-LINK does not support accessing these
registers, a workaround was used from reading an writing to them.

That is, the Debug Core Register Selector Register (DCRSR) can be written
with the register requested, and it will be read/written to/from the
Debug Core Register Data Register (DCRDR).  The standard ST-LINK memory
access functions are used to make these accesses.

A target descriptor XML file is sent to GDB from the server, which tells
GDB which registers exist on the target.

This is only supported for the STM32F4, and has only been tested on the
STM32F4DISCOVERY.  I tested st-util on an STM32L-DISCOVERY and my
changes did not seem to interfere with its operation.
2012-07-09 01:00:53 -04:00
Michael Pratt b1e65ea367 Extra registers integration with GDB
The support for extra registers has been added to GDB.  Now all core
registers can be read from GDB.  Write support has not yet been added.
2012-07-08 23:04:35 -04:00
Michael Pratt a71f48db10 Read Cortex M4F floating point registers
Since the ST-LINK does not seem to support reading these registers, I
have implemented functions that will manually request these registers
and add them to the reg struct.

As of now, these functions are just backend and are not integrated into
anything, however I have verified that they work with the STM32F407
DISCOVERY board.
2012-07-08 21:04:30 -04:00
texane b9eeab4003 Merge pull request #100 from prattmic/master
Update .gitignore for test binaries
2012-07-08 12:58:37 -07:00
Michael Pratt f8d3b170f9 Merge remote-tracking branch 'upstream/master' 2012-07-08 15:52:00 -04:00
Michael Pratt e8601c816a Updated .gitignore to include test binaries 2012-07-08 15:49:36 -04:00
texane bbd45a33fc Merge pull request #99 from TheSeven/master
Fix misinterpreted monitor commands
2012-07-03 06:20:23 -07:00
Michael Sparmann 5b6eb51bd2 Fix "monitor reset" gdb command being misinterpreted as "monitor resume"
by checking for the full word, not just the first two chars.
2012-07-03 15:10:07 +02:00
texane f69c34921a Merge pull request #98 from karlp/master
page count is wrong when writing to 32L
2012-06-20 22:16:23 -07:00
Karl Palsson 406ac42502 Display proper final page write count for 32L 2012-06-21 00:16:48 +00:00
texane e82def787e Merge pull request #97 from karlp/kill_examples
Kill examples and update the docs
2012-06-20 12:40:45 -07:00