Fabien Le Mentec
18d6fe4893
Get st-util ack'ing the monitor request. Responds to
...
monitor reset -- reset the core
monitor resume -- get the core running but don't stop gdb executing commands
monitor halt -- halt the core
2012-02-01 16:05:46 -06:00
Karl Palsson
f38ff8f912
Unify chipid naming convention.
...
Flag more duplicate variables that need to be removed/combined
2012-02-01 20:55:10 +00:00
Daniel O'Connor
5e5d1fa747
Use pkg-config to find libusb CFLAGS and LDFLAGS.
2012-01-31 16:49:45 +10:30
Uwe Bonnes
9c41193a16
Use stlink_r|w_debug32 for single word access in the gdbserver too
2012-01-19 13:47:23 +01:00
Friedrich Beckmann
8e5b2b51bf
Added the library to the list of dependencies as in flash
2012-01-03 23:58:01 +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
82c638ed83
For gdbserver, use the same initialization sequence like for flashing
2011-12-18 21:44:40 +01: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
768a70d321
Added code so gdbserver can fully support the STM32F4 variable page sizes
...
gdbserver can now upload up to 1MB projects to flash
2011-11-14 16:20:49 -05:00
Karl Palsson
d019d3fc4f
Turn down default logging level.
...
And remove dead/duplicate code that is included in the opening of the device
2011-11-14 04:11:10 +00:00
Karl Palsson
5a5d36fdc3
Move all the flash size mapping from gdb server into core.
...
All the device params like flash size and page size should all be in the core open routines, not
_only_ in the gdbserver. (This should stop it from ending up duplicated in the core, and get rid of
some of the hacks that were turning up. All of this is chip specific!)
2011-11-12 20:36:43 +00:00
Fabien Le Mentec
0ff09f90ce
[merge] merge jnosky/master
2011-11-12 02:25:02 -06:00
Fabien Le Mentec
13c0da3bcc
Merge branch 'jnosky/master'
2011-11-12 01:49:08 -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
jnosky
d6ab5b0c3f
Temp fix to work with F4 up to 64k of flash, changed chip detection
...
Can debug with up to 64k flash on the F4
2011-11-10 20:12:29 -05:00
Dmitry Bravikov
72104c9816
[fix] parsing command line and sg autodetection
2011-11-08 09:41:43 +06:00
Dmitry Bravikov
c85c172c63
Parsing the arguments of command line
2011-11-06 23:26:12 +06: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
fd5967fba6
Fix compilation error after removing devices.
2011-11-04 01:05:27 +00:00
Karl Palsson
0f376a74a5
Remove device names, we now just find it via USB ids.
...
In the future, we might actually want device names back again, if you have multiple stlink's
connected. But that would be a new device name, not scanning for /dev/sgX looking for scsi
devices.
2011-11-03 23:40:27 +00:00
Karl Palsson
e8bae670d2
Fix compilation for 32bit machines
...
%Ld works for size_t only on 64 bit, the correct conversion is %zd
2011-11-01 21:26:05 +00:00
jnosky
0fbdd62e61
Fixed flash utility for STM32F4
...
Can write entire 1MB of flash
2011-10-29 18:17:46 -04:00
Chris Samuelson
59a7e8b470
Place -lusb-1.0 as the last of the linker options
2011-10-22 21:23:53 -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
c37975c157
remove swallowing of ctrl-c
...
No idea why this was added, but it's not necessary for anything I've found.
2011-10-22 15:53:03 +00:00
Karl Palsson
2f7b70f1a8
Add option parsing and help
...
Supports setting the gdb listen port
Supports setting which version of stlink to use
Supports setting the device to use (in case autoprobing doesn't work)
2011-10-22 15:20:21 +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
Fabien Le Mentec
27cbdfaa6e
[fix] do not set socket timeout
2011-10-20 18:25:11 -05:00
Fabien Le Mentec
0571447546
[merge] patches from uwe
2011-10-20 16:43:21 -05:00
Fabien Le Mentec
a34d563757
[merge] karl/uwe_usb branch
2011-10-18 16:35:24 -05:00
Fabien Le Mentec
4bb6ab6d9f
[merge] karl/uwe_usb branch
2011-10-18 16:27:36 -05:00
Fabien Le Mentec
f01fc0c4f1
[fix] GDB port fixed to 4242 until better command line parsing. leave DFU mode.
2011-10-14 16:08:44 -05:00
Fabien Le Mentec
ea11de2d8b
[fix] GDB listening port, temporary. needs better command line parsing.
2011-10-14 15:55:17 -05:00
Fabien Le Mentec
6463c75a4b
[fix] gdb-server unused variable
2011-10-14 15:02:06 -05:00
Karl Palsson
1d8b0c600b
Merge remote branch 'karlgithub/master' into mystm32l
...
Conflicts:
build/Makefile
gdbserver/gdb-server.c
This merges in the bulk of bravikov's work on the command line and automatic sensible defaults for
the gdb server
2011-10-13 20:13:31 +00:00
Karl Palsson
59162a0b5c
More debug in prepration for working out writemem32
2011-10-12 21:24:33 +00:00
Uwe Bonnes
af225b39c9
The Flash Size Register is different for the different chips, so add it to the chip parameters
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-12 19:16:56 +00:00
Uwe Bonnes
36812d6e32
Explain source of CHIP ID and add new devices
...
Modified by karlp to merge the two 0x416 devices
Modified to add F1 to the F1 devices and sort by device id
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-12 19:08:21 +00:00
Karl Palsson
371b100cb0
Fix stm32l readmem32.
...
As noted, the usb transfer only has a 1 byte length, but it also has a different mode
to enter.
Tidied up and removed more duplicate and hard coded code, tried to add some notes on
where the magic came from.
No idea where the chip ids came from, I can't find them in the datasheets anywhere.
2011-10-12 01:45:28 +00:00
Karl Palsson
8f4e7c64dc
build gdbserver with new library
...
Has a line hardcoding it to the the usb backend. I don't have a stm32vl board :(
2011-10-07 20:17:48 +00:00
Karl Palsson
d060c3c040
Initial commit of workable stm32l debug
...
Move towards a standard libstlink, with backends for libusb (stm32l discovery) and scsi
passthrough (stm32vl discovery) and a common front end.
Verified that stm32l branch works much the same, but more to go for stm32vl.
2011-10-06 23:22:33 +00:00