Wykres commitów

205 Commity (3dd1addf929f95e05fa676bab5a41515e990e16a)

Autor SHA1 Wiadomość Data
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
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 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
Karl Palsson aa479e5b91 Update netbeans project config to reflect combined makefiles 2011-10-22 15:22:24 +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 ae3fc90187 Merge branch 'master' of https://github.com/texane/stlink 2011-10-22 02:11:50 +00:00
Karl Palsson 9bc72d4519 Merge upstream texane/master 2011-10-22 02:11:04 +00:00
Karl Palsson 234e144d5d Add debug flag by default, no need not to have it in the elf. 2011-10-22 02:06:35 +00:00
Karl Palsson a4e5aba21e Fix character encodings of st provided files. 2011-10-22 02:06:07 +00:00
Fabien Le Mentec 9a6c4ac2f6 [update] documentation 2011-10-21 04:28:24 -05:00
Fabien Le Mentec 52ba1bae25 [update] documentation 2011-10-21 02:59:05 -05: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 7c3b58a80c [fix] documentation 2011-10-20 16:39:23 -05:00
Fabien Le Mentec 73765950a6 [update] documentation 2011-10-20 00:38:50 -05:00
Fabien Le Mentec 6a7d585589 [update] AUTHORS 2011-10-20 00:32:03 -05:00
texane 9eaafd0519 Merge pull request #14 from bikeNomad/master
Minor improvements to utilities and example makefile
2011-10-19 22:15:54 -07:00
Ned Konz 152989ba1c Added usage prompt to flash utility 2011-10-19 18:55:56 -07:00
Ned Konz f10d08b4a5 Added multiple-board support to blink_flash Makefile 2011-10-19 18:55:29 -07:00
Ned Konz 93051281c7 Added rules for subdirectories 2011-10-19 18:39:57 -07:00
Ned Konz d0e853ff2b Fixed compile of flash program 2011-10-19 18:39:26 -07:00
Fabien Le Mentec 56c4ba72c5 [merge] patches from uwe 2011-10-19 12:07:56 -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 a821592dad [update] add macpod to AUTHORS. update documentation for the blink program. 2011-10-18 00:49:07 -05:00
Fabien Le Mentec de389469aa Merge branch 'master' of https://github.com/macpod/stlink 2011-10-18 00:42:32 -05:00