fw/stlink
11 years agoUpdated .gitignore to include test binaries
Michael Pratt [Sun, 8 Jul 2012 19:49:36 +0000 (15:49 -0400)]
Updated .gitignore to include test binaries

11 years agoMerge pull request #98 from karlp/master
texane [Thu, 21 Jun 2012 05:16:23 +0000 (22:16 -0700)]
Merge pull request #98 from karlp/master

page count is wrong when writing to 32L

11 years agoDisplay proper final page write count for 32L
Karl Palsson [Thu, 3 May 2012 22:05:32 +0000 (22:05 +0000)]
Display proper final page write count for 32L

11 years agoMerge pull request #97 from karlp/kill_examples
texane [Wed, 20 Jun 2012 19:40:45 +0000 (12:40 -0700)]
Merge pull request #97 from karlp/kill_examples

Kill examples and update the docs

11 years agoUpdate tutorial documentation to reflect current code.
Karl Palsson [Wed, 20 Jun 2012 19:35:46 +0000 (19:35 +0000)]
Update tutorial documentation to reflect current code.

11 years agoUpdate primary README with current documentation
Karl Palsson [Wed, 20 Jun 2012 19:16:40 +0000 (19:16 +0000)]
Update primary README with current documentation

11 years agoExamples have no place in stlink codebase.
Karl Palsson [Wed, 20 Jun 2012 19:01:27 +0000 (19:01 +0000)]
Examples have no place in stlink codebase.

They should be in a standalone repository, that can focus on clean,
easy to follow, well documented, well tested examples.

If you just want some example binaries that you can use to test your
installation is working, the libopencm3 project has various blink
projects for all the STM32 Discovery boards.

11 years agoMerge pull request #93 from zyp/master
texane [Fri, 8 Jun 2012 14:57:31 +0000 (07:57 -0700)]
Merge pull request #93 from zyp/master

Added flash loader stub for F2/F4.

11 years agoAdded flash loader stub for F2/F4.
Vegard Storheil Eriksen [Thu, 7 Jun 2012 21:16:19 +0000 (23:16 +0200)]
Added flash loader stub for F2/F4.

11 years agoMerge pull request #91 from UweBonnes/master
texane [Thu, 7 Jun 2012 16:23:57 +0000 (09:23 -0700)]
Merge pull request #91 from UweBonnes/master

st-flash: Honor read size, when given and add \n to mesage when no STLINK found

11 years agoAdd \n to WLOG when no STLINK found
Uwe Bonnes [Thu, 7 Jun 2012 16:13:43 +0000 (18:13 +0200)]
Add \n to WLOG when no STLINK found

11 years agost-flash: Honor size, if given
Uwe Bonnes [Thu, 7 Jun 2012 16:03:23 +0000 (18:03 +0200)]
st-flash: Honor size, if given

11 years agoMerge pull request #86 from szczys/master
texane [Sun, 3 Jun 2012 17:28:42 +0000 (10:28 -0700)]
Merge pull request #86 from szczys/master

Added support for the STM32F0-Discovery board

11 years agoAdded STM32F0-Discovery board to the blink example code
Mike Szczys [Sun, 3 Jun 2012 15:47:18 +0000 (10:47 -0500)]
Added STM32F0-Discovery board to the blink example code

11 years agoAdded memory map for STM32F05xxx chips
Mike Szczys [Sun, 3 Jun 2012 15:44:48 +0000 (10:44 -0500)]
Added memory map for STM32F05xxx chips

11 years agoCorrected F0 DBGMCU_IDCODE register address
Mike Szczys [Sun, 3 Jun 2012 15:39:34 +0000 (10:39 -0500)]
Corrected F0 DBGMCU_IDCODE register address

11 years ago[ update ] F0 chip id
Fabien Le Mentec [Sun, 3 Jun 2012 06:40:27 +0000 (01:40 -0500)]
[ update ] F0 chip id

12 years ago[ fix ] apply jserv@0xlab.org patch, 0001-trivial-documentation-fix-for-st-util-path
Fabien Le Mentec [Sat, 26 May 2012 14:48:48 +0000 (09:48 -0500)]
[ fix ] apply jserv@0xlab.org patch, 0001-trivial-documentation-fix-for-st-util-path

12 years agoMerge pull request #84 from Tectu/master
texane [Sat, 26 May 2012 14:33:01 +0000 (07:33 -0700)]
Merge pull request #84 from Tectu/master

Fixed option bytes

12 years agofixed option bytes amount
Tectu [Fri, 25 May 2012 15:05:44 +0000 (17:05 +0200)]
fixed option bytes amount

12 years ago[ fix ] missing LIBUSB_CALL definition
Fabien Le Mentec [Thu, 17 May 2012 06:39:16 +0000 (01:39 -0500)]
[ fix ] missing LIBUSB_CALL definition

12 years agoMerge pull request #79 from WinterMute/mingw-mmap
texane [Thu, 17 May 2012 06:21:02 +0000 (23:21 -0700)]
Merge pull request #79 from WinterMute/mingw-mmap

Mingw mmap reimplementation

12 years agouse BSD timersub
Dave Murphy [Wed, 16 May 2012 22:41:42 +0000 (23:41 +0100)]
use BSD timersub

12 years agobump version
Dave Murphy [Wed, 16 May 2012 22:31:07 +0000 (23:31 +0100)]
bump version

12 years agoadd COPYING to repository to avoid license confusion
Dave Murphy [Wed, 16 May 2012 21:44:31 +0000 (22:44 +0100)]
add COPYING to repository to avoid license confusion

12 years agofix whitespace
Dave Murphy [Wed, 16 May 2012 21:22:54 +0000 (22:22 +0100)]
fix whitespace

12 years agoreimplement mingw mmap
Dave Murphy [Wed, 16 May 2012 21:15:38 +0000 (22:15 +0100)]
reimplement mingw mmap

12 years agoMerge pull request #77 from WinterMute/mingw
texane [Mon, 14 May 2012 15:18:46 +0000 (08:18 -0700)]
Merge pull request #77 from WinterMute/mingw

Changes to allow compiling for windows using mingw toolchains

12 years agoMerge branch 'master' into mingw
Dave Murphy [Mon, 14 May 2012 11:35:30 +0000 (12:35 +0100)]
Merge branch 'master' into mingw

12 years agoignore elf files in example
Dave Murphy [Mon, 14 May 2012 09:57:41 +0000 (10:57 +0100)]
ignore elf files in example

12 years agobump stlink version
Dave Murphy [Mon, 14 May 2012 09:55:55 +0000 (10:55 +0100)]
bump stlink version

12 years agouse sys/time.h for mingw compatiblity, use LIBUSB_CALL modifier for callback
Dave Murphy [Sun, 13 May 2012 21:57:27 +0000 (22:57 +0100)]
use sys/time.h for mingw compatiblity, use LIBUSB_CALL modifier for callback

12 years agocast to avoid pointer warning
Dave Murphy [Sun, 13 May 2012 21:55:41 +0000 (22:55 +0100)]
cast to avoid pointer warning

12 years agofix signedness warning
Dave Murphy [Sun, 13 May 2012 21:54:26 +0000 (22:54 +0100)]
fix signedness warning

12 years agoMerge pull request #76 from prattmic/master
texane [Fri, 11 May 2012 18:14:04 +0000 (11:14 -0700)]
Merge pull request #76 from prattmic/master

Fixed issue #66

12 years agoFixed issue #66 - Fixed the F4 memory map to include CCM RAM. https://github.com...
Michael Pratt [Fri, 11 May 2012 18:11:12 +0000 (14:11 -0400)]
Fixed issue #66 - Fixed the F4 memory map to include CCM RAM.  https://github.com/texane/stlink/issues/66

12 years agoprototype main function properly
Dave Murphy [Sun, 29 Apr 2012 18:44:51 +0000 (19:44 +0100)]
prototype main function properly

12 years agowrap read/write socket functions on mingw
Dave Murphy [Sun, 29 Apr 2012 18:30:27 +0000 (19:30 +0100)]
wrap read/write socket functions on mingw

12 years agoallow use of %zx format specifier om mingw
Dave Murphy [Sun, 29 Apr 2012 17:49:08 +0000 (18:49 +0100)]
allow use of %zx format specifier om mingw

12 years agouse WSAStartup on windows, replace bzero with memset
Dave Murphy [Sun, 29 Apr 2012 17:48:26 +0000 (18:48 +0100)]
use WSAStartup on windows, replace bzero with memset

12 years agoundefine macros for socket redirection, fix warnings
Dave Murphy [Sun, 29 Apr 2012 17:47:38 +0000 (18:47 +0100)]
undefine macros for socket redirection, fix warnings

12 years agouse correct headers
Dave Murphy [Sun, 29 Apr 2012 17:45:37 +0000 (18:45 +0100)]
use correct headers

12 years agobuild with mingw
Dave Murphy [Sun, 29 Apr 2012 13:43:46 +0000 (14:43 +0100)]
build with mingw

12 years agoupdate ignores for generated files
Dave Murphy [Sun, 29 Apr 2012 13:09:06 +0000 (14:09 +0100)]
update ignores for generated files

12 years agoChanges for compiling with mingw32
Dave Murphy [Sat, 28 Apr 2012 21:55:23 +0000 (22:55 +0100)]
Changes for compiling with mingw32

add mmap & pread functions when compiling for systems that don't provide them
don't use libtoolize, stick with static libraries

12 years agoautoconfiscate
Dave Murphy [Sat, 28 Apr 2012 01:13:58 +0000 (02:13 +0100)]
autoconfiscate

12 years agoMerge pull request #73 from xgoat/master
texane [Tue, 24 Apr 2012 05:16:12 +0000 (22:16 -0700)]
Merge pull request #73 from xgoat/master

Fix an unused parameter compiler warning

12 years agoFix an unused parameter warning
Rob Spanton [Mon, 23 Apr 2012 22:19:55 +0000 (23:19 +0100)]
Fix an unused parameter warning

test_sg.c's main doesn't use its argv parameter, and so the compiler
warns us this is the case.  This patch stops it from warning us.

12 years agoMerge pull request #61 from UweBonnes/master
texane [Wed, 8 Feb 2012 17:00:42 +0000 (09:00 -0800)]
Merge pull request #61 from UweBonnes/master

Use stlink-usb also for STLINKV1, Rename flash to st-flash

12 years agoRename "flash" to "st-flash"
Uwe Bonnes [Tue, 7 Feb 2012 20:48:46 +0000 (21:48 +0100)]
Rename "flash" to "st-flash"

12 years agoRevive the V1 pathes in stlink-usb. Tested with the STM32VL Discovery.
Uwe Bonnes [Tue, 7 Feb 2012 20:43:43 +0000 (21:43 +0100)]
Revive the V1 pathes in stlink-usb. Tested with the STM32VL Discovery.

12 years agoRemove an outdated FIXME
Uwe Bonnes [Tue, 7 Feb 2012 20:20:54 +0000 (21:20 +0100)]
Remove an outdated FIXME

12 years agoMerge pull request #59 from UweBonnes/master
texane [Sat, 4 Feb 2012 15:17:34 +0000 (07:17 -0800)]
Merge pull request #59 from UweBonnes/master

Distinguish L1/F2/F4 and let F2 program

12 years agoReport about more Chips tested
Uwe Bonnes [Sat, 4 Feb 2012 14:49:11 +0000 (15:49 +0100)]
Report about more Chips tested

12 years agoMerge branch 'master' of git://github.com/texane/stlink
Uwe Bonnes [Sat, 4 Feb 2012 14:44:40 +0000 (15:44 +0100)]
Merge branch 'master' of git://github.com/texane/stlink

Conflicts:
src/stlink-common.c
Solved by propagating Karl's name change

12 years agoMerge branch 'master' of github.com:UweBonnes/stlink
Uwe Bonnes [Thu, 2 Feb 2012 21:53:20 +0000 (22:53 +0100)]
Merge branch 'master' of github.com:UweBonnes/stlink

12 years agoFix the progress indicator for F2/F4 flash writing
Uwe Bonnes [Thu, 2 Feb 2012 21:49:33 +0000 (22:49 +0100)]
Fix the progress indicator for F2/F4 flash writing

12 years agoAssume maximum FLASH size for F2 as for F4 (broken Flash size register)
Uwe Bonnes [Thu, 2 Feb 2012 21:36:13 +0000 (22:36 +0100)]
Assume maximum FLASH size for F2 as for F4 (broken Flash size register)
Verify F2 and F4 by using a decent block size

12 years agoFor now, we can treat F2 as F4 for flashing
Uwe Bonnes [Thu, 2 Feb 2012 21:20:44 +0000 (22:20 +0100)]
For now, we can treat F2 as F4 for flashing

12 years agoFor L1/F2/F4 we need the chip-id to distinguish, F1 needs core_id as common deniminator
Uwe Bonnes [Thu, 2 Feb 2012 21:10:13 +0000 (22:10 +0100)]
For L1/F2/F4 we need the chip-id to distinguish, F1 needs core_id as common deniminator

12 years agoGive a different error when writing to flash or ram
Uwe Bonnes [Sun, 29 Jan 2012 13:21:26 +0000 (14:21 +0100)]
Give a different error when writing to flash or ram

12 years agoMerge pull request #57 from karlp/th-pull-projfiles
texane [Thu, 2 Feb 2012 05:58:38 +0000 (21:58 -0800)]
Merge pull request #57 from karlp/th-pull-projfiles

Remove all project files from stlink.

12 years agoRemove all project files from stlink.
Karl Palsson [Wed, 1 Feb 2012 23:54:02 +0000 (23:54 +0000)]
Remove all project files from stlink.

The project is made with Makefiles, so while the project files provided some convenience to some people, they were not in any
way portable or maintained.  Removing them also allows other people to keep their own versions without having to deal with
shared conflicts.

Updated gitignore to reflec this.

12 years ago Get st-util ack'ing the monitor request. Responds to
Fabien Le Mentec [Wed, 1 Feb 2012 22:05:46 +0000 (16:05 -0600)]
Get st-util ack'ing the monitor request.  Responds to
    monitor reset     -- reset the core
    monitor resume    -- get the core running but don't stop gdb executing commands
    monitor halt      -- halt the core

12 years agoMerge pull request #56 from karlp/th-pull-documentation
texane [Wed, 1 Feb 2012 21:42:54 +0000 (13:42 -0800)]
Merge pull request #56 from karlp/th-pull-documentation

Update documentation

12 years agoMerge pull request #54 from karlp/th-pull-chipids
texane [Wed, 1 Feb 2012 21:41:57 +0000 (13:41 -0800)]
Merge pull request #54 from karlp/th-pull-chipids

Unify chip id names, fix warnings

12 years agoAdd pkg-config to the list of requirements.
Karl Palsson [Wed, 1 Feb 2012 21:27:20 +0000 (21:27 +0000)]
Add pkg-config to the list of requirements.

12 years agoUpdate list of known working targets
Karl Palsson [Wed, 16 Nov 2011 02:44:01 +0000 (02:44 +0000)]
Update list of known working targets

12 years agoRemove the "merge in progress" notice
Karl Palsson [Tue, 15 Nov 2011 01:42:47 +0000 (01:42 +0000)]
Remove the "merge in progress" notice

12 years agoUse proper modifiers for size_t printing.
Karl Palsson [Wed, 1 Feb 2012 21:05:06 +0000 (21:05 +0000)]
Use proper modifiers for size_t printing.

Eliminates build warnings.

12 years agoUnify chipid naming convention.
Karl Palsson [Wed, 1 Feb 2012 20:55:10 +0000 (20:55 +0000)]
Unify chipid naming convention.

Flag more duplicate variables that need to be removed/combined

12 years agoMerge pull request #52 from UweBonnes/master
texane [Tue, 31 Jan 2012 17:11:35 +0000 (09:11 -0800)]
Merge pull request #52 from UweBonnes/master

Fixes around F4

12 years agoMerge pull request #51 from DanielO/master
texane [Tue, 31 Jan 2012 17:11:04 +0000 (09:11 -0800)]
Merge pull request #51 from DanielO/master

Use pkg-config to find libusb

12 years agoMerge branch 'master' of github.com:UweBonnes/stlink
Uwe Bonnes [Tue, 31 Jan 2012 10:39:55 +0000 (11:39 +0100)]
Merge branch 'master' of github.com:UweBonnes/stlink

12 years agoUse pkg-config to find libusb CFLAGS and LDFLAGS.
Daniel O'Connor [Tue, 31 Jan 2012 06:19:45 +0000 (16:49 +1030)]
Use pkg-config to find libusb CFLAGS and LDFLAGS.

12 years agoLimit reading from RAM to the SRAM Size
Uwe Bonnes [Mon, 30 Jan 2012 12:32:18 +0000 (13:32 +0100)]
Limit reading from RAM to the SRAM Size

12 years agoGive a different error when writing to flash or ram
Uwe Bonnes [Sun, 29 Jan 2012 13:21:26 +0000 (14:21 +0100)]
Give a different error when writing to flash or ram

12 years agoCoreIF for F2/F4 is not different, use CPUID to distinguish. F4 errata seems to give...
Uwe Bonnes [Sat, 28 Jan 2012 03:46:22 +0000 (04:46 +0100)]
CoreIF for F2/F4 is not different, use CPUID to distinguish. F4 errata seems to give wrong workaround

12 years agoFix writing to SRAM on F1. Blocksize greater 0x1800 stalls STLINKV2. V1 needs to...
Uwe Bonnes [Fri, 27 Jan 2012 19:26:32 +0000 (20:26 +0100)]
Fix writing to SRAM on F1. Blocksize greater 0x1800 stalls STLINKV2. V1 needs to be checked!

12 years agoFix mass erase of F4
Uwe Bonnes [Tue, 24 Jan 2012 12:21:47 +0000 (13:21 +0100)]
Fix mass erase of F4

12 years agoF1 set_flash_cr_strt unconditionally set the PER bit and so mass erase didn't work
Uwe Bonnes [Fri, 20 Jan 2012 16:25:01 +0000 (17:25 +0100)]
F1 set_flash_cr_strt unconditionally set the PER bit and so mass erase didn't work

12 years agoMerge pull request #49 from UweBonnes/master
texane [Thu, 19 Jan 2012 20:59:27 +0000 (12:59 -0800)]
Merge pull request #49 from UweBonnes/master

Allow to write to ram and start loaded programs.

12 years agoA blank STM32L151 refused half-page writing. Fall back to half-word writing in
Uwe Bonnes [Thu, 19 Jan 2012 14:45:51 +0000 (15:45 +0100)]
A blank STM32L151 refused half-page writing. Fall back to half-word writing in
that case. Report advance in half-word writing. Setting stack and PC give
access error so automatic start fails too and hardware needs to be hard-reset
to start

12 years agoMake stlink_erase_flash_mass device dependant and implement mass erase for L1
Uwe Bonnes [Thu, 19 Jan 2012 13:59:02 +0000 (14:59 +0100)]
Make stlink_erase_flash_mass device dependant and implement mass erase for L1
by consecutive page erase
Allow to erase the device with the flash

12 years agoWhen loading a file to SRAM or Flash, set the Stack pointer with the initial
Uwe Bonnes [Thu, 19 Jan 2012 13:17:22 +0000 (14:17 +0100)]
When loading a file to SRAM or Flash, set the Stack pointer with the initial
SP value and the Program counter with the reset value from the Vector
table. Then run reset function

12 years agoAllow to write to sram from the command line
Uwe Bonnes [Thu, 19 Jan 2012 13:07:14 +0000 (14:07 +0100)]
Allow to write to sram from the command line

12 years agoStore the masked chip_id in the stlink structure. Should fix unexpected
Uwe Bonnes [Thu, 19 Jan 2012 12:55:00 +0000 (13:55 +0100)]
Store the masked chip_id in the stlink structure. Should fix unexpected
behaviour with L1 and F2

12 years agoUse stlink_r|w_debug32 for single word access in the gdbserver too
Uwe Bonnes [Thu, 19 Jan 2012 12:47:23 +0000 (13:47 +0100)]
Use stlink_r|w_debug32 for single word access in the gdbserver too

12 years ago[fix] format warning on 32 bits
le mentec fabien [Wed, 18 Jan 2012 15:58:54 +0000 (09:58 -0600)]
[fix] format warning on 32 bits

12 years agoMerge branch 'master' of git://github.com/texane/stlink
Uwe Bonnes [Wed, 18 Jan 2012 09:52:01 +0000 (10:52 +0100)]
Merge branch 'master' of git://github.com/texane/stlink

Conflicts:
gdbserver/Makefile

12 years agoAdd dependancy from stlink.a
Uwe Bonnes [Tue, 17 Jan 2012 20:55:10 +0000 (21:55 +0100)]
Add dependancy from stlink.a

12 years agoAs write_buffer_to_sram() can now handles arbitrary size, use flash_pgsz chunks for...
Uwe Bonnes [Tue, 17 Jan 2012 20:43:58 +0000 (21:43 +0100)]
As write_buffer_to_sram() can now handles arbitrary size, use flash_pgsz chunks for writing F1 and reduce output

12 years agoEnable half_page write for STM32L
Uwe Bonnes [Tue, 17 Jan 2012 20:28:36 +0000 (21:28 +0100)]
Enable half_page write for STM32L

12 years agoIn write_buffer_to_sram() write as much as possible with write_mem32
Uwe Bonnes [Tue, 17 Jan 2012 20:24:01 +0000 (21:24 +0100)]
In write_buffer_to_sram() write as much as possible with write_mem32

12 years agowrite_mem8 with more than 0x40 bytes gives unexpected results
Uwe Bonnes [Tue, 17 Jan 2012 20:17:02 +0000 (21:17 +0100)]
write_mem8 with more than 0x40 bytes gives unexpected results

12 years agoSome L1 flash address was off by 0x10, but is never used
Uwe Bonnes [Tue, 17 Jan 2012 14:44:17 +0000 (15:44 +0100)]
Some L1 flash address was off by 0x10, but is never used

12 years agoLess noisy output for STM32L erase/program, but still showing progess
Uwe Bonnes [Fri, 13 Jan 2012 18:16:15 +0000 (19:16 +0100)]
Less noisy output for STM32L erase/program, but still showing progess

12 years ago[fix] valueless return warning
Fabien Le Mentec [Wed, 4 Jan 2012 06:55:47 +0000 (00:55 -0600)]
[fix] valueless return warning

12 years agoAdded the library to the list of dependencies as in flash
Friedrich Beckmann [Tue, 3 Jan 2012 22:58:01 +0000 (23:58 +0100)]
Added the library to the list of dependencies as in flash

12 years agomoved the device parameter loading at the end of initialization for V1 devices- fixed...
Friedrich Beckmann [Tue, 3 Jan 2012 22:52:44 +0000 (23:52 +0100)]
moved the device parameter loading at the end of initialization for V1 devices- fixed the problem of non working V1 devices