]>
git.gag.com Git - fw/stlink/log
Karl Palsson [Mon, 14 Nov 2011 03:03:07 +0000 (03:03 +0000)]
Remove confusing distclean/clean dichotomy
in the top level, make clean cleans all stlink code.
in an application level, it only cleans that application
Karl Palsson [Mon, 14 Nov 2011 02:59:38 +0000 (02:59 +0000)]
Start to keep an uptodate list of what's been tested in what combinations
Karl Palsson [Sat, 12 Nov 2011 18:21:46 +0000 (18:21 +0000)]
Don't refetch the chip id on every single page erase.
And update some of the logging to be a bit tidier
Karl Palsson [Tue, 8 Nov 2011 01:13:50 +0000 (01:13 +0000)]
Fix linking with new names
Karl Palsson [Tue, 8 Nov 2011 01:13:21 +0000 (01:13 +0000)]
Adding original source of vl factory demo
It compiles, but I've got bugs preventing me from running this yet :(
Karl Palsson [Tue, 8 Nov 2011 00:57:54 +0000 (00:57 +0000)]
Build libraries for stm32l1xx and stm32f10x
These libraries IGNORE assert_param. Maybe later.
Karl Palsson [Mon, 7 Nov 2011 22:56:34 +0000 (22:56 +0000)]
Fix compile error with new libraries
Karl Palsson [Mon, 7 Nov 2011 22:56:15 +0000 (22:56 +0000)]
Rename board specific demos as appropriate
Karl Palsson [Mon, 7 Nov 2011 22:55:20 +0000 (22:55 +0000)]
Rename 32L specific examples
Karl Palsson [Mon, 7 Nov 2011 22:00:13 +0000 (22:00 +0000)]
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.
Karl Palsson [Mon, 14 Nov 2011 02:25:31 +0000 (02:25 +0000)]
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... :)
Karl Palsson [Mon, 14 Nov 2011 01:25:56 +0000 (01:25 +0000)]
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.
Karl Palsson [Sat, 12 Nov 2011 20:45:41 +0000 (20:45 +0000)]
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.
Karl Palsson [Sat, 12 Nov 2011 20:36:43 +0000 (20:36 +0000)]
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!)
Karl Palsson [Fri, 11 Nov 2011 22:59:44 +0000 (22:59 +0000)]
Merge branch 'master' of github.com:karlp/stlink
Karl Palsson [Fri, 11 Nov 2011 15:38:09 +0000 (15:38 +0000)]
Finish removing sg-utils dependencies.
The code deps were removed, but the flags stayed in some makefiles.
Karl Palsson [Fri, 11 Nov 2011 15:30:21 +0000 (07:30 -0800)]
Merge pull request #1 from PetteriAimonen/master
Here is a fix for the register bug :)
Petteri Aimonen [Thu, 10 Nov 2011 19:38:16 +0000 (21:38 +0200)]
Fixed a bug that caused gdb to display wrong registers when using stlink ver 1.
Karl Palsson [Fri, 4 Nov 2011 02:51:15 +0000 (02:51 +0000)]
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.
Karl Palsson [Fri, 4 Nov 2011 02:31:17 +0000 (02:31 +0000)]
netbeans project update for flash utility
Karl Palsson [Fri, 4 Nov 2011 02:30:13 +0000 (02:30 +0000)]
Include a udev rules file for v1 boards too, for permissions
Karl Palsson [Fri, 4 Nov 2011 02:23:17 +0000 (02:23 +0000)]
Update tutorial docs and flash writing/reading
Karl Palsson [Fri, 4 Nov 2011 01:56:22 +0000 (01:56 +0000)]
Update documentation removing all sg-utils notes
Just libusb now. Verified the modprobe.conf on Ubuntu 10.04
Karl Palsson [Fri, 4 Nov 2011 01:05:54 +0000 (01:05 +0000)]
Update netbeans project files.
Karl Palsson [Fri, 4 Nov 2011 01:05:27 +0000 (01:05 +0000)]
Fix compilation error after removing devices.
Karl Palsson [Fri, 4 Nov 2011 00:56:50 +0000 (00:56 +0000)]
Writing registers works too
Karl Palsson [Fri, 4 Nov 2011 00:54:01 +0000 (00:54 +0000)]
blinking LEDs via stlink also works
Karl Palsson [Fri, 4 Nov 2011 00:51:30 +0000 (00:51 +0000)]
write_mem8 works too.
I just misinterpreted the test results earlier.
Karl Palsson [Fri, 4 Nov 2011 00:44:18 +0000 (00:44 +0000)]
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.
Karl Palsson [Thu, 3 Nov 2011 23:40:27 +0000 (23:40 +0000)]
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.
Karl Palsson [Thu, 3 Nov 2011 23:24:28 +0000 (23:24 +0000)]
Duh, don't try and do a bulk read when we requested 0 bytes back.
Karl Palsson [Thu, 3 Nov 2011 23:16:30 +0000 (23:16 +0000)]
Properly use tags. Doesn't help though.
Karl Palsson [Thu, 3 Nov 2011 21:28:19 +0000 (21:28 +0000)]
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.
Karl Palsson [Thu, 3 Nov 2011 03:49:44 +0000 (03:49 +0000)]
Merge branch 'killsg' of github.com:karlp/stlink into killsg
Karl Palsson [Thu, 3 Nov 2011 03:45:23 +0000 (03:45 +0000)]
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.
Karl Palsson [Thu, 3 Nov 2011 01:07:15 +0000 (01:07 +0000)]
Successfully locate and open stlinkv1 by usb
Very very raw, this just finds the device and opens the usb handle.
Karl Palsson [Thu, 3 Nov 2011 00:46:58 +0000 (00:46 +0000)]
Merge branch 'master' into killsg
Conflicts:
src/stlink-common.c
src/test_sg.c
Conflicts were only in changes to logging.
Karl Palsson [Thu, 3 Nov 2011 00:37:32 +0000 (00:37 +0000)]
drop non shared directories from netbeans project
Karl Palsson [Thu, 3 Nov 2011 00:36:31 +0000 (00:36 +0000)]
Remove -sg's private version decoding
Remove duplication of stlink version decoding, and put the decoded version information
into the stlink object itself.
Karl Palsson [Thu, 3 Nov 2011 00:35:19 +0000 (00:35 +0000)]
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
Karl Palsson [Tue, 1 Nov 2011 21:56:43 +0000 (21:56 +0000)]
More generic stlinkv2 udev naming
Better support for F4, or anything else that appears as an stlinkv2
Karl Palsson [Tue, 1 Nov 2011 21:23:16 +0000 (21:23 +0000)]
Fix compilation for 32bit machines
%Ld works for size_t only on 64 bit, the correct conversion is %zd
Karl Palsson [Tue, 1 Nov 2011 18:51:14 +0000 (18:51 +0000)]
Remove unneeded old files
Karl Palsson [Tue, 1 Nov 2011 18:50:06 +0000 (18:50 +0000)]
Ignore all elf outputs. Ignore pdflatex outputs
Fabien Le Mentec [Thu, 27 Oct 2011 15:58:13 +0000 (10:58 -0500)]
[add] dac example
Fabien Le Mentec [Sun, 23 Oct 2011 13:31:40 +0000 (08:31 -0500)]
[update] tutorial, led blinking from flash
Fabien Le Mentec [Sun, 23 Oct 2011 13:23:38 +0000 (08:23 -0500)]
[fixme] blink_flash example working. more initialization needed, use libstm32_discovery.
Fabien Le Mentec [Sun, 23 Oct 2011 08:26:55 +0000 (03:26 -0500)]
[update] documentation, CHIBIOS
Fabien Le Mentec [Sun, 23 Oct 2011 08:12:23 +0000 (03:12 -0500)]
[update] factorize flash writing code. use core_id to identify.
Fabien Le Mentec [Sun, 23 Oct 2011 06:45:18 +0000 (01:45 -0500)]
[update] AUTHORS
Fabien Le Mentec [Sun, 23 Oct 2011 06:45:01 +0000 (01:45 -0500)]
[update] disable flash write operation checking
texane [Sun, 23 Oct 2011 06:29:47 +0000 (23:29 -0700)]
Merge pull request #17 from csamuelson/master
Update Makefiles to compile on Ubuntu Oneiric
Chris Samuelson [Sun, 23 Oct 2011 02:25:56 +0000 (21:25 -0500)]
Merge branch 'master' of github.com:csamuelson/stlink
Chris Samuelson [Sun, 23 Oct 2011 02:23:53 +0000 (21:23 -0500)]
Place -lusb-1.0 as the last of the linker options
Fabien Le Mentec [Sat, 22 Oct 2011 22:34:05 +0000 (17:34 -0500)]
[update] retry write once on failure
Fabien Le Mentec [Sat, 22 Oct 2011 21:07:13 +0000 (16:07 -0500)]
[fix] stm32l flash write
Karl Palsson [Sat, 22 Oct 2011 20:31:11 +0000 (20:31 +0000)]
Replace all logging
I needed some sanity...
Karl Palsson [Sat, 22 Oct 2011 19:09:31 +0000 (19:09 +0000)]
flag out the only scsi specific code
Also flag out some places where code appears unused.
Fabien Le Mentec [Sat, 22 Oct 2011 18:06:28 +0000 (13:06 -0500)]
[update, wip] stm32l flash write, to be tested
Karl Palsson [Sat, 22 Oct 2011 18:05:24 +0000 (18:05 +0000)]
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.
Karl Palsson [Sat, 22 Oct 2011 15:53:03 +0000 (15:53 +0000)]
remove swallowing of ctrl-c
No idea why this was added, but it's not necessary for anything I've found.
Karl Palsson [Sat, 22 Oct 2011 15:46:19 +0000 (15:46 +0000)]
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
Karl Palsson [Sat, 22 Oct 2011 15:22:24 +0000 (15:22 +0000)]
Update netbeans project config to reflect combined makefiles
Karl Palsson [Sat, 22 Oct 2011 15:13:22 +0000 (15:13 +0000)]
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)
Karl Palsson [Sat, 22 Oct 2011 02:11:50 +0000 (02:11 +0000)]
Merge branch 'master' of https://github.com/texane/stlink
Karl Palsson [Sat, 22 Oct 2011 02:11:04 +0000 (02:11 +0000)]
Merge upstream texane/master
Karl Palsson [Sat, 22 Oct 2011 02:06:35 +0000 (02:06 +0000)]
Add debug flag by default, no need not to have it in the elf.
Karl Palsson [Sat, 22 Oct 2011 02:06:07 +0000 (02:06 +0000)]
Fix character encodings of st provided files.
Fabien Le Mentec [Fri, 21 Oct 2011 09:28:45 +0000 (04:28 -0500)]
Merge branch 'master' into local/stm32l_flash
Fabien Le Mentec [Fri, 21 Oct 2011 09:28:24 +0000 (04:28 -0500)]
[update] documentation
Fabien Le Mentec [Fri, 21 Oct 2011 09:23:50 +0000 (04:23 -0500)]
Merge branch 'master' into local/stm32l_flash
Fabien Le Mentec [Fri, 21 Oct 2011 07:59:05 +0000 (02:59 -0500)]
[update] documentation
Ned Konz [Fri, 21 Oct 2011 02:21:43 +0000 (19:21 -0700)]
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.
Fabien Le Mentec [Thu, 20 Oct 2011 23:25:11 +0000 (18:25 -0500)]
[fix] do not set socket timeout
Fabien Le Mentec [Thu, 20 Oct 2011 21:43:21 +0000 (16:43 -0500)]
[merge] patches from uwe
Fabien Le Mentec [Thu, 20 Oct 2011 21:39:23 +0000 (16:39 -0500)]
[fix] documentation
Fabien Le Mentec [Thu, 20 Oct 2011 05:38:50 +0000 (00:38 -0500)]
[update] documentation
Fabien Le Mentec [Thu, 20 Oct 2011 05:32:03 +0000 (00:32 -0500)]
[update] AUTHORS
texane [Thu, 20 Oct 2011 05:15:54 +0000 (22:15 -0700)]
Merge pull request #14 from bikeNomad/master
Minor improvements to utilities and example makefile
Ned Konz [Thu, 20 Oct 2011 01:55:56 +0000 (18:55 -0700)]
Added usage prompt to flash utility
Ned Konz [Thu, 20 Oct 2011 01:55:29 +0000 (18:55 -0700)]
Added multiple-board support to blink_flash Makefile
Ned Konz [Thu, 20 Oct 2011 01:39:57 +0000 (18:39 -0700)]
Added rules for subdirectories
Ned Konz [Thu, 20 Oct 2011 01:39:26 +0000 (18:39 -0700)]
Fixed compile of flash program
Fabien Le Mentec [Wed, 19 Oct 2011 17:07:56 +0000 (12:07 -0500)]
[merge] patches from uwe
Fabien Le Mentec [Tue, 18 Oct 2011 21:35:24 +0000 (16:35 -0500)]
[merge] karl/uwe_usb branch
Fabien Le Mentec [Tue, 18 Oct 2011 21:27:36 +0000 (16:27 -0500)]
[merge] karl/uwe_usb branch
Fabien Le Mentec [Tue, 18 Oct 2011 05:49:07 +0000 (00:49 -0500)]
[update] add macpod to AUTHORS. update documentation for the blink program.
Fabien Le Mentec [Tue, 18 Oct 2011 05:42:32 +0000 (00:42 -0500)]
Merge branch 'master' of https://github.com/macpod/stlink
Fabien Le Mentec [Tue, 18 Oct 2011 05:41:26 +0000 (00:41 -0500)]
[wip]
Fabien Le Mentec [Tue, 18 Oct 2011 05:36:50 +0000 (00:36 -0500)]
[update] .gitignore
Jeffrey Nelson [Tue, 18 Oct 2011 04:31:26 +0000 (00:31 -0400)]
Updated SRAM blink files to work with STM32F4-Discovery board
Fabien Le Mentec [Mon, 17 Oct 2011 21:21:29 +0000 (16:21 -0500)]
[fix] read_mem32 needs to add +1 to len
Fabien Le Mentec [Mon, 17 Oct 2011 20:34:10 +0000 (15:34 -0500)]
[update] TODO
Fabien Le Mentec [Mon, 17 Oct 2011 20:06:23 +0000 (15:06 -0500)]
[update] documentation
Fabien Le Mentec [Mon, 17 Oct 2011 19:52:57 +0000 (14:52 -0500)]
[fix] flash tool. not working for stm32l, ok with stm32vl
le mentec fabien [Mon, 17 Oct 2011 09:14:08 +0000 (04:14 -0500)]
[update] TODO
le mentec fabien [Mon, 17 Oct 2011 09:00:02 +0000 (04:00 -0500)]
[update] add read command to flash tool
Fabien Le Mentec [Mon, 17 Oct 2011 05:45:30 +0000 (00:45 -0500)]
[update] TODO
Fabien Le Mentec [Sun, 16 Oct 2011 22:38:27 +0000 (17:38 -0500)]
[add] blink_flash example
Fabien Le Mentec [Sun, 16 Oct 2011 21:29:28 +0000 (16:29 -0500)]
[update] flash tool, missing SWD mode entering and core reset