Wykres commitów

301 Commity (e82da443bf0f113f7fc3cad71322a69f0db22360)

Autor SHA1 Wiadomość Data
jnosky ec7a84c540 Added USB Host library sources 2011-11-12 16:20:02 -05:00
jnosky 428744bbe3 Added STM32F4xx StdPeriph Driver sources 2011-11-12 16:19:17 -05:00
jnosky c2fa32ce2b Added USB OTG Driver sources 2011-11-12 16:17:43 -05:00
jnosky 4856df1aad Added STM32F4-Discovery utilities 2011-11-12 16:17:03 -05:00
jnosky 6b26cc09ad Added my email 2011-11-12 16:16:15 -05:00
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
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
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
jnosky b32eb29a80 Changed chip detection method
Future plan to detect chip ID rather than core ID
2011-11-10 20:15:06 -05: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
jnosky 43974f34ad Added the IO_Toggle and discovery demo samples including a working make
Can now build and flash these these samples
2011-11-10 20:09:20 -05:00
jnosky bd8b822e97 Added all the F4 libraries to the project
Allows the F4 discovery examples to be built
2011-11-10 20:06:27 -05: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
Fabien Le Mentec e714623a30 [merge] Ned Konz, Fixed spelling and added files to .gitignore 2011-11-09 00:25:55 -06:00
texane b18f735802 Merge pull request #21 from bravikov/master
[fix] parsing command line and sg autodetection
2011-11-07 22:13:05 -08:00
Dmitry Bravikov 72104c9816 [fix] parsing command line and sg autodetection 2011-11-08 09:41:43 +06:00
Fabien Le Mentec 55bd816703 [update] add bravikov@gmail.com to AUTHORS 2011-11-06 12:22:59 -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 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
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