Wykres commitów

242 Commity (b48420e3941991b9d3f646e539499327c2417a3c)

Autor SHA1 Wiadomość Data
Karl Palsson b48420e394 Don't refetch the chip id on every single page erase.
And update some of the logging to be a bit tidier
2011-11-14 02:51:16 +00:00
Karl Palsson a7c80d038f Fix linking with new names 2011-11-14 02:47:44 +00:00
Karl Palsson a7d14c7d4e Adding original source of vl factory demo
It compiles, but I've got bugs preventing me from running this yet :(
2011-11-14 02:47:44 +00:00
Karl Palsson fd1e3f5f2e Build libraries for stm32l1xx and stm32f10x
These libraries IGNORE assert_param.  Maybe later.
2011-11-14 02:47:44 +00:00
Karl Palsson 518fe1b0d0 Fix compile error with new libraries 2011-11-14 02:47:44 +00:00
Karl Palsson d69cad8849 Rename board specific demos as appropriate 2011-11-14 02:47:44 +00:00
Karl Palsson 3ec53a0d34 Rename 32L specific examples 2011-11-14 02:47:44 +00:00
Karl Palsson 29cf5d590c Restructure libs source to support multi platform
The "libstm32l_discovery" was actually the ST std periph library, plus the
CMSIS core files.  Renamed it as such, and restructured the directories and
naming to make this easier to contain the std periph drivers for more than
just one board.

Verified with the LCD demo makefile, and loading it in sram again.
2011-11-14 02:47:44 +00:00
Karl Palsson 77f2d8b76c Don't try reading device params in bad USB modes.
You cannot read device params when we're not in debug mode and trying to will fill the USB buffer with garbage, and you will have to
unplug and replug and start again.  (which will fail, because, you're in the
wrong mode... :)
2011-11-14 02:25:31 +00:00
Karl Palsson 3c6f2f5231 Fix flash writing for VL cores.
The change from run->step breaks the VL cores.  Need to double check that this
still works for L cores.  The whole flash writing needs to be better
abstracted.

Lots more informational debug.
2011-11-14 01:25:56 +00: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
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