fw/stlink
12 years agoAdded multiple-board support to blink_flash Makefile
Ned Konz [Thu, 20 Oct 2011 01:55:29 +0000 (18:55 -0700)]
Added multiple-board support to blink_flash Makefile

12 years agoAdded rules for subdirectories
Ned Konz [Thu, 20 Oct 2011 01:39:57 +0000 (18:39 -0700)]
Added rules for subdirectories

12 years agoFixed compile of flash program
Ned Konz [Thu, 20 Oct 2011 01:39:26 +0000 (18:39 -0700)]
Fixed compile of flash program

12 years ago[merge] patches from uwe
Fabien Le Mentec [Wed, 19 Oct 2011 17:07:56 +0000 (12:07 -0500)]
[merge] patches from uwe

12 years ago[merge] karl/uwe_usb branch
Fabien Le Mentec [Tue, 18 Oct 2011 21:35:24 +0000 (16:35 -0500)]
[merge] karl/uwe_usb branch

12 years ago[merge] karl/uwe_usb branch
Fabien Le Mentec [Tue, 18 Oct 2011 21:27:36 +0000 (16:27 -0500)]
[merge] karl/uwe_usb branch

12 years ago[update] add macpod to AUTHORS. update documentation for the blink program.
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.

12 years agoMerge branch 'master' of https://github.com/macpod/stlink
Fabien Le Mentec [Tue, 18 Oct 2011 05:42:32 +0000 (00:42 -0500)]
Merge branch 'master' of https://github.com/macpod/stlink

12 years ago[update] .gitignore
Fabien Le Mentec [Tue, 18 Oct 2011 05:36:50 +0000 (00:36 -0500)]
[update] .gitignore

12 years agoUpdated SRAM blink files to work with STM32F4-Discovery board
Jeffrey Nelson [Tue, 18 Oct 2011 04:31:26 +0000 (00:31 -0400)]
Updated SRAM blink files to work with STM32F4-Discovery board

12 years ago[fix] read_mem32 needs to add +1 to len
Fabien Le Mentec [Mon, 17 Oct 2011 21:21:29 +0000 (16:21 -0500)]
[fix] read_mem32 needs to add +1 to len

12 years ago[update] TODO
Fabien Le Mentec [Mon, 17 Oct 2011 20:34:10 +0000 (15:34 -0500)]
[update] TODO

12 years ago[update] documentation
Fabien Le Mentec [Mon, 17 Oct 2011 20:06:23 +0000 (15:06 -0500)]
[update] documentation

12 years ago[fix] flash tool. not working for stm32l, ok with stm32vl
Fabien Le Mentec [Mon, 17 Oct 2011 19:52:57 +0000 (14:52 -0500)]
[fix] flash tool. not working for stm32l, ok with stm32vl

12 years ago[update] TODO
le mentec fabien [Mon, 17 Oct 2011 09:14:08 +0000 (04:14 -0500)]
[update] TODO

12 years ago[update] add read command to flash tool
le mentec fabien [Mon, 17 Oct 2011 09:00:02 +0000 (04:00 -0500)]
[update] add read command to flash tool

12 years ago[update] TODO
Fabien Le Mentec [Mon, 17 Oct 2011 05:45:30 +0000 (00:45 -0500)]
[update] TODO

12 years ago[add] blink_flash example
Fabien Le Mentec [Sun, 16 Oct 2011 22:38:27 +0000 (17:38 -0500)]
[add] blink_flash example

12 years ago[update] flash tool, missing SWD mode entering and core reset
Fabien Le Mentec [Sun, 16 Oct 2011 21:29:28 +0000 (16:29 -0500)]
[update] flash tool, missing SWD mode entering and core reset

12 years ago[fix] stlink_usb_read_mem32 len command field
Fabien Le Mentec [Sun, 16 Oct 2011 21:28:29 +0000 (16:28 -0500)]
[fix] stlink_usb_read_mem32 len command field

12 years ago[fix] stlinkv2 missing initialisation
Fabien Le Mentec [Sun, 16 Oct 2011 21:13:58 +0000 (16:13 -0500)]
[fix] stlinkv2 missing initialisation

12 years ago[fix] missing stlink_fwrite_flash decl
Fabien Le Mentec [Sun, 16 Oct 2011 20:36:53 +0000 (15:36 -0500)]
[fix] missing stlink_fwrite_flash decl

12 years ago[add] flash memory loader tool
Fabien Le Mentec [Sun, 16 Oct 2011 20:36:11 +0000 (15:36 -0500)]
[add] flash memory loader tool

12 years ago[add] TODO
Fabien Le Mentec [Sun, 16 Oct 2011 19:38:28 +0000 (14:38 -0500)]
[add] TODO

12 years ago[update] lcd example, minor
Fabien Le Mentec [Sun, 16 Oct 2011 16:26:52 +0000 (11:26 -0500)]
[update] lcd example, minor

12 years ago[fix] LCD GPIO mode must be alternate function
Fabien Le Mentec [Sun, 16 Oct 2011 16:21:59 +0000 (11:21 -0500)]
[fix] LCD GPIO mode must be alternate function

12 years ago[update] lcd example uses libstm32l_discovery
Fabien Le Mentec [Sun, 16 Oct 2011 16:05:46 +0000 (11:05 -0500)]
[update] lcd example uses libstm32l_discovery

12 years ago[update] documentation
Fabien Le Mentec [Sun, 16 Oct 2011 15:59:51 +0000 (10:59 -0500)]
[update] documentation

12 years ago[add] libstm32l_discovery from ST packages. build directory contains the necessary...
Fabien Le Mentec [Sun, 16 Oct 2011 15:54:03 +0000 (10:54 -0500)]
[add] libstm32l_discovery from ST packages. build directory contains the necessary to build

12 years ago[add, wip] example/lcd
Fabien Le Mentec [Sun, 16 Oct 2011 11:01:11 +0000 (06:01 -0500)]
[add, wip] example/lcd

12 years ago[update] documentation
Fabien Le Mentec [Sun, 16 Oct 2011 08:48:27 +0000 (03:48 -0500)]
[update] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sun, 16 Oct 2011 08:24:45 +0000 (03:24 -0500)]
[update] documentation

12 years ago[update] blink does not use bootmode
Fabien Le Mentec [Sun, 16 Oct 2011 06:30:07 +0000 (01:30 -0500)]
[update] blink does not use bootmode

12 years ago[mv] blink source into example/blink
Fabien Le Mentec [Sun, 16 Oct 2011 06:28:57 +0000 (01:28 -0500)]
[mv] blink source into example/blink

12 years ago[update] documentation, libsg2 dependency
Fabien Le Mentec [Sat, 15 Oct 2011 22:25:11 +0000 (17:25 -0500)]
[update] documentation, libsg2 dependency

12 years ago[update] unused stlinkv2 commands
Fabien Le Mentec [Sat, 15 Oct 2011 22:21:35 +0000 (17:21 -0500)]
[update] unused stlinkv2 commands

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 22:20:56 +0000 (17:20 -0500)]
[update] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 22:15:50 +0000 (17:15 -0500)]
[update] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 22:14:12 +0000 (17:14 -0500)]
[update] documentation

12 years ago[update] port blink example to stm32l discovery
Fabien Le Mentec [Sat, 15 Oct 2011 22:10:15 +0000 (17:10 -0500)]
[update] port blink example to stm32l discovery

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 21:40:47 +0000 (16:40 -0500)]
[update] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 20:15:33 +0000 (15:15 -0500)]
[update] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 20:06:14 +0000 (15:06 -0500)]
[update] documentation

12 years ago[update] blinky entrypoint
Fabien Le Mentec [Sat, 15 Oct 2011 18:31:15 +0000 (13:31 -0500)]
[update] blinky entrypoint

12 years ago[fix] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 18:18:26 +0000 (13:18 -0500)]
[fix] documentation

12 years ago[update] documentation
Fabien Le Mentec [Sat, 15 Oct 2011 17:53:44 +0000 (12:53 -0500)]
[update] documentation

12 years ago[update] example/Makefile base text address
Fabien Le Mentec [Sat, 15 Oct 2011 17:31:21 +0000 (12:31 -0500)]
[update] example/Makefile base text address

12 years ago[add] doc/tutorial.tex,pdf
Fabien Le Mentec [Sat, 15 Oct 2011 17:30:33 +0000 (12:30 -0500)]
[add] doc/tutorial.tex,pdf

12 years ago[add] acknowledgments
Fabien Le Mentec [Fri, 14 Oct 2011 22:22:31 +0000 (17:22 -0500)]
[add] acknowledgments

12 years ago[mv] stm32l into toremove
Fabien Le Mentec [Fri, 14 Oct 2011 22:11:18 +0000 (17:11 -0500)]
[mv] stm32l into toremove

12 years ago[update] README
Fabien Le Mentec [Fri, 14 Oct 2011 22:05:14 +0000 (17:05 -0500)]
[update] README

12 years ago[delete] INSTALL. refer to README
Fabien Le Mentec [Fri, 14 Oct 2011 21:56:14 +0000 (16:56 -0500)]
[delete] INSTALL. refer to README

12 years ago[fix] GDB port fixed to 4242 until better command line parsing. leave DFU mode.
Fabien Le Mentec [Fri, 14 Oct 2011 21:08:44 +0000 (16:08 -0500)]
[fix] GDB port fixed to 4242 until better command line parsing. leave DFU mode.

12 years ago[fix] GDB listening port, temporary. needs better command line parsing.
Fabien Le Mentec [Fri, 14 Oct 2011 20:55:17 +0000 (15:55 -0500)]
[fix] GDB listening port, temporary. needs better command line parsing.

12 years ago[fix] remove invalid free
Fabien Le Mentec [Fri, 14 Oct 2011 20:47:08 +0000 (15:47 -0500)]
[fix] remove invalid free

12 years ago[fix] missing parse_version in sg transport layer
Fabien Le Mentec [Fri, 14 Oct 2011 20:38:54 +0000 (15:38 -0500)]
[fix] missing parse_version in sg transport layer

12 years ago[fix] gdb-server unused variable
Fabien Le Mentec [Fri, 14 Oct 2011 20:02:06 +0000 (15:02 -0500)]
[fix] gdb-server unused variable

12 years ago[fix] warnings
Fabien Le Mentec [Fri, 14 Oct 2011 19:51:16 +0000 (14:51 -0500)]
[fix] warnings

12 years ago[update] missing author
Fabien Le Mentec [Fri, 14 Oct 2011 19:44:58 +0000 (14:44 -0500)]
[update] missing author

12 years agoMerge remote branch 'karl/stm32l' into local/stlinkv2
Fabien Le Mentec [Fri, 14 Oct 2011 19:43:42 +0000 (14:43 -0500)]
Merge remote branch 'karl/stm32l' into local/stlinkv2

12 years agoMerge remote branch 'karlgithub/master' into mystm32l
Karl Palsson [Thu, 13 Oct 2011 20:13:31 +0000 (20:13 +0000)]
Merge remote branch 'karlgithub/master' into mystm32l

Conflicts:
build/Makefile
gdbserver/gdb-server.c

This merges in the bulk of bravikov's work on the command line and automatic sensible defaults for
the gdb server

12 years agorandom port
Dmitry Bravikov [Wed, 5 Oct 2011 18:42:23 +0000 (02:42 +0800)]
random port

12 years agoadded installation, added ST_LINK autodetection
Dmitry Bravikov [Wed, 5 Oct 2011 10:15:44 +0000 (18:15 +0800)]
added installation, added ST_LINK autodetection

12 years ago[missing] stlink-hw.h
Fabien Le Mentec [Thu, 29 Sep 2011 22:04:07 +0000 (06:04 +0800)]
[missing] stlink-hw.h

12 years agoAdd missing functionality stlinkv2
Uwe Bonnes [Thu, 13 Oct 2011 17:27:38 +0000 (19:27 +0200)]
Add missing functionality stlinkv2

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoImplement _stlink_usb_write_mem32|8
Uwe Bonnes [Thu, 13 Oct 2011 14:33:29 +0000 (16:33 +0200)]
Implement _stlink_usb_write_mem32|8

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoAdd a buffer to hold the command
Uwe Bonnes [Thu, 13 Oct 2011 14:32:19 +0000 (16:32 +0200)]
Add a buffer to hold the command

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoAdd a pointer how to wrap USB SG commands
Uwe Bonnes [Thu, 13 Oct 2011 14:28:54 +0000 (16:28 +0200)]
Add a pointer how to wrap USB SG commands

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoMore debug in prepration for working out writemem32
Karl Palsson [Wed, 12 Oct 2011 21:24:33 +0000 (21:24 +0000)]
More debug in prepration for working out writemem32

12 years agoAdd commentary on test methods?
Karl Palsson [Wed, 12 Oct 2011 21:05:44 +0000 (21:05 +0000)]
Add commentary on test methods?

12 years agoAdd comments on register magic numbers.
Karl Palsson [Wed, 12 Oct 2011 20:54:03 +0000 (20:54 +0000)]
Add comments on register magic numbers.

12 years agoSupport arm core cpuid register decoding
Karl Palsson [Wed, 12 Oct 2011 20:40:24 +0000 (20:40 +0000)]
Support arm core cpuid register decoding

12 years agoMake stlink_core_id return the core id.
Karl Palsson [Wed, 12 Oct 2011 20:36:43 +0000 (20:36 +0000)]
Make stlink_core_id return the core id.

Instead of requiring manual extraction from the q_buf

12 years agoFix compiler warnings from missing includes
Karl Palsson [Wed, 12 Oct 2011 19:57:54 +0000 (19:57 +0000)]
Fix compiler warnings from missing includes

12 years agoSupport "force debug" command, required by gdb server
Karl Palsson [Wed, 12 Oct 2011 19:56:19 +0000 (19:56 +0000)]
Support "force debug" command, required by gdb server

usb implementation provided by Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>

Glued together again by me.  With this change, gdbserver actually enters debug and gdbserver
stays open!

12 years agoAdd Uwe Bonnes to the AUTHORS list
Karl Palsson [Wed, 12 Oct 2011 19:19:29 +0000 (19:19 +0000)]
Add Uwe Bonnes to the AUTHORS list

He sent me some patches which I've included here recently.
Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>

12 years agoThe Flash Size Register is different for the different chips, so add it to the chip...
Uwe Bonnes [Wed, 12 Oct 2011 11:51:19 +0000 (13:51 +0200)]
The Flash Size Register is different for the different chips, so add it to the chip parameters

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoExplain source of CHIP ID and add new devices
Uwe Bonnes [Wed, 12 Oct 2011 11:36:13 +0000 (13:36 +0200)]
Explain source of CHIP ID and add new devices

Modified by karlp to merge the two 0x416 devices
Modified to add F1 to the F1 devices and sort by device id

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoMore files to ignore
Uwe Bonnes [Wed, 12 Oct 2011 07:56:20 +0000 (09:56 +0200)]
More files to ignore

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
12 years agoAdd some comments on cells containing identified transfers
Karl Palsson [Wed, 12 Oct 2011 01:48:04 +0000 (01:48 +0000)]
Add some comments on cells containing identified transfers

12 years agoFix stm32l readmem32.
Karl Palsson [Wed, 12 Oct 2011 01:45:28 +0000 (01:45 +0000)]
Fix stm32l readmem32.

As noted, the usb transfer only has a 1 byte length, but it also has a different mode
to enter.

Tidied up and removed more duplicate and hard coded code, tried to add some notes on
where the magic came from.

No idea where the chip ids came from, I can't find them in the datasheets anywhere.

12 years agoSupport version decoding on both platforms
Karl Palsson [Wed, 12 Oct 2011 00:01:46 +0000 (00:01 +0000)]
Support version decoding on both platforms

12 years agoUse defined VID/PIDs instead of magic numbers
Karl Palsson [Tue, 11 Oct 2011 23:41:49 +0000 (23:41 +0000)]
Use defined VID/PIDs instead of magic numbers

12 years agoUSB_traces is an open office spreadsheet of all csv files
Karl Palsson [Tue, 11 Oct 2011 23:12:03 +0000 (23:12 +0000)]
USB_traces is an open office spreadsheet of all csv files

This can make it a little easier to visualize than the raw csv files...

12 years ago.gitignore files are nice
Karl Palsson [Sat, 8 Oct 2011 18:52:38 +0000 (18:52 +0000)]
.gitignore files are nice

12 years agoAdd a netbeans project setup
Karl Palsson [Sat, 8 Oct 2011 18:51:16 +0000 (18:51 +0000)]
Add a netbeans project setup

Has two run configs, one for the gdb server, and one for the command line
tools and library build.

12 years agoremove the keypress to exit the app
Karl Palsson [Sat, 8 Oct 2011 18:50:45 +0000 (18:50 +0000)]
remove the keypress to exit the app

12 years agomove debugging output to common code
Karl Palsson [Fri, 7 Oct 2011 20:21:37 +0000 (20:21 +0000)]
move debugging output to common code

12 years agobuild gdbserver with new library
Karl Palsson [Fri, 7 Oct 2011 20:17:48 +0000 (20:17 +0000)]
build gdbserver with new library

Has a line hardcoding it to the the usb backend.  I don't have a stm32vl board :(

12 years agoRemove stm32l directory now that code is merged.
Karl Palsson [Fri, 7 Oct 2011 19:45:41 +0000 (19:45 +0000)]
Remove stm32l directory now that code is merged.

Keep the documentation, that will still be useful...

12 years agoFix the missing mode calls.
Karl Palsson [Fri, 7 Oct 2011 19:36:38 +0000 (19:36 +0000)]
Fix the missing mode calls.

Start cleaning up the debug output a little

12 years agoDebugging is helpful!
Karl Palsson [Fri, 7 Oct 2011 19:32:19 +0000 (19:32 +0000)]
Debugging is helpful!

12 years agoudev rules for non-root access, plus a symlink
Karl Palsson [Fri, 7 Oct 2011 18:53:14 +0000 (18:53 +0000)]
udev rules for non-root access, plus a symlink

12 years agoPluggable backends for libsg or libusb
Karl Palsson [Fri, 7 Oct 2011 02:47:37 +0000 (02:47 +0000)]
Pluggable backends for libsg or libusb

Compiles, but not fully tested yet.

12 years agoRemove duplicate endianness
Karl Palsson [Fri, 7 Oct 2011 02:17:36 +0000 (02:17 +0000)]
Remove duplicate endianness

12 years agoInitial commit of workable stm32l debug
Karl Palsson [Thu, 6 Oct 2011 23:22:33 +0000 (23:22 +0000)]
Initial commit of workable stm32l debug

Move towards a standard libstlink, with backends for libusb (stm32l discovery) and scsi
passthrough (stm32vl discovery) and a common front end.

Verified that stm32l branch works much the same, but more to go for stm32vl.

12 years agoSwap build.sh for a real Makefile
Karl Palsson [Sat, 1 Oct 2011 23:22:57 +0000 (23:22 +0000)]
Swap build.sh for a real Makefile

12 years agoTweak stm32l version to start using shared headers
Karl Palsson [Thu, 29 Sep 2011 22:06:54 +0000 (22:06 +0000)]
Tweak stm32l version to start using shared headers

12 years ago[missing] stlink-hw.h
Fabien Le Mentec [Thu, 29 Sep 2011 22:04:07 +0000 (17:04 -0500)]
[missing] stlink-hw.h

12 years ago[update] minor, tests
Fabien Le Mentec [Sun, 11 Sep 2011 22:33:25 +0000 (17:33 -0500)]
[update] minor, tests