Wykres commitów

232 Commity (0c587eedfd33396cc6da94850e0dfcac15a953f2)

Autor SHA1 Wiadomość Data
Karl Palsson 0c587eedfd Read chip and core id in device param loading.
Instead of expecting everyone to read it every time they need to check it.
Just assume it's always there.
2011-11-12 20:45:41 +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
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 5ac2c52296 Merge pull request #1 from PetteriAimonen/master
Here is a fix for the register bug :)
2011-11-11 07:30:21 -08:00
Petteri Aimonen fb9d6399a7 Fixed a bug that caused gdb to display wrong registers when using stlink ver 1. 2011-11-10 21:38:16 +02: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 52b626bd16 netbeans project update for flash utility 2011-11-04 02:31:17 +00:00
Karl Palsson e224519608 Include a udev rules file for v1 boards too, for permissions 2011-11-04 02:30:13 +00:00
Karl Palsson 388606716e Update tutorial docs and flash writing/reading 2011-11-04 02:23:17 +00:00
Karl Palsson b463d50c5b Update documentation removing all sg-utils notes
Just libusb now.  Verified the modprobe.conf on Ubuntu 10.04
2011-11-04 01:56:22 +00:00
Karl Palsson 3dd1addf92 Update netbeans project files. 2011-11-04 01:05:54 +00:00
Karl Palsson fd5967fba6 Fix compilation error after removing devices. 2011-11-04 01:05:27 +00:00
Karl Palsson a19abbb547 Writing registers works too 2011-11-04 00:56:50 +00:00
Karl Palsson 8c7b98a4cb blinking LEDs via stlink also works 2011-11-04 00:54:01 +00:00
Karl Palsson 2dc7d9f4ec write_mem8 works too.
I just misinterpreted the test results earlier.
2011-11-04 00:51:30 +00:00
Karl Palsson 8febc74cf1 Fix write_mem32.
Moved some of the static methods up to the top, so they can always be used, so the changes is
messier than it needs to be.
2011-11-04 00:44:18 +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 87490393e8 Duh, don't try and do a bulk read when we requested 0 bytes back. 2011-11-03 23:24:28 +00:00
Karl Palsson 22d0777df9 Properly use tags. Doesn't help though. 2011-11-03 23:16:30 +00:00
Karl Palsson f587baa03a Use the libusb based sense and status reading from afaerber
Before, I could a single operation (get version) after plugging in, now I can issue two at least
:)  I suspect there are two problems still.  1, I'm not using tags properly, as the original
sg-utils code seemed to skip that.  2) I'm pretty sure I need to be sending variable lengths for
the cdb field.
2011-11-03 21:28:19 +00:00
Karl Palsson 9ff594a6a7 Merge branch 'killsg' of github.com:karlp/stlink into killsg 2011-11-03 03:49:44 +00:00
Karl Palsson 3bf3bbef0b Read stlink version info via libusb.
Hooray! Stage 1 complete.  The stlink version can now be read by sending the scsi
commands via libusb directly, instead of using sg-utils.  It's very very prototype code
however, but should come together from here.

Major bugs: Only works when the device has been first plugged in.  I'm clearly not
resetting some usb state somewhere.

Now that libusb is being used directly, you can use linux usb-storage quirks to
completely IGNORE the device as mass storage.  We'll just grab it via libusb when we
want it.
2011-11-03 03:45:23 +00:00
Karl Palsson 214ecc8622 Successfully locate and open stlinkv1 by usb
Very very raw, this just finds the device and opens the usb handle.
2011-11-03 01:07:15 +00:00
Karl Palsson ed7464f235 Merge branch 'master' into killsg
Conflicts:
	src/stlink-common.c
	src/test_sg.c

Conflicts were only in changes to logging.
2011-11-03 00:47:28 +00:00
Karl Palsson 7de94e5491 drop non shared directories from netbeans project 2011-11-03 00:37:32 +00:00
Karl Palsson afb487cfb6 Remove -sg's private version decoding
Remove duplication of stlink version decoding, and put the decoded version information
into the stlink object itself.
2011-11-03 00:36:31 +00:00
Karl Palsson 66c50cec89 Remove sg-utils test output
More bulk cleanup on the path to removing sg-utils dependencies.  Trying to make
test-sg as simple as possible so I can use it reliably to test on both master and my
killsg branch
2011-11-03 00:35:19 +00:00
Karl Palsson c0c45e259e More generic stlinkv2 udev naming
Better support for F4, or anything else that appears as an stlinkv2
2011-11-01 21:57:46 +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
Karl Palsson ee772151c2 Remove unneeded old files 2011-11-01 18:51:14 +00:00
Karl Palsson a672ee1a34 Ignore all elf outputs. Ignore pdflatex outputs 2011-11-01 18:50:06 +00:00
Fabien Le Mentec 5a379699bb [add] dac example 2011-10-27 10:58:13 -05:00
Fabien Le Mentec fb84122913 [update] tutorial, led blinking from flash 2011-10-23 08:31:40 -05:00
Fabien Le Mentec d762080c1b [fixme] blink_flash example working. more initialization needed, use libstm32_discovery. 2011-10-23 08:23:38 -05:00
Fabien Le Mentec 81e4e8d157 [update] documentation, CHIBIOS 2011-10-23 03:26:55 -05:00
Fabien Le Mentec 224966f637 [update] factorize flash writing code. use core_id to identify. 2011-10-23 03:12:23 -05:00
Fabien Le Mentec a2d758e29b [update] AUTHORS 2011-10-23 01:45:18 -05:00
Fabien Le Mentec 2953d3a6e8 [update] disable flash write operation checking 2011-10-23 01:45:01 -05:00
texane 85f4519307 Merge pull request #17 from csamuelson/master
Update Makefiles to compile on Ubuntu Oneiric
2011-10-22 23:29:47 -07: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
Fabien Le Mentec 27448f5a6f [fix] stm32l flash write 2011-10-22 16:07:13 -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
Fabien Le Mentec 165e5fd66c [update, wip] stm32l flash write, to be tested 2011-10-22 13:06:28 -05: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 85ff603805 Make the blink example build for all platforms.
Less mucking around with make parameters, it's a tiny build.  Verified with a
VL and L board.

Removed the old obsolete bin file
2011-10-22 15:46:19 +00:00