Wykres commitów

326 Commity (b50eedcdb46c7baee5479ba20ca7d326702ac5a4)

Autor SHA1 Wiadomość Data
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
jnosky 65e7973387 Merge branch 'HEAD' of http://github.com/jnosky/stlink 2011-10-29 18:27:48 -04:00
jnosky 0fbdd62e61 Fixed flash utility for STM32F4
Can write entire 1MB of flash
2011-10-29 18:17:46 -04:00
unknown b998bdd985 Fixed flash utility for STM32F4
Can write entire 1MB of flash
2011-10-29 18:00:26 -04: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
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