fw/stlink
9 years agoMerge pull request #309 from rkreis/fix-stm32l0x-typo
texane [Wed, 29 Apr 2015 05:23:21 +0000 (07:23 +0200)]
Merge pull request #309 from rkreis/fix-stm32l0x-typo

fix typo in stm32l0x flash loader

9 years agofix typo in stm32l0x flash loader
Robin Kreis [Tue, 28 Apr 2015 20:37:01 +0000 (22:37 +0200)]
fix typo in stm32l0x flash loader

The typo caused errors when flashing an stm32l052.  This commit makes
stlink-common.c match flashloaders/stm32l0x.s.

9 years agoMerge pull request #307 from kylemanna/stm32f303_high_density
texane [Fri, 24 Apr 2015 06:06:26 +0000 (08:06 +0200)]
Merge pull request #307 from kylemanna/stm32f303_high_density

Add support for STM32F303 High Density

9 years agostlink: Add flash support for STM32F303 High Density
Kyle Manna [Fri, 24 Apr 2015 00:03:28 +0000 (17:03 -0700)]
stlink: Add flash support for STM32F303 High Density

* Add the necessary teststo use the existing flash code.  Haven't
  verified via datasheet if it's correct.
* Works for me on the STM32F303RE Nucleo.

9 years agoREADME: Add STM32 Nucleo-F303RE board
Kyle Manna [Thu, 23 Apr 2015 01:55:30 +0000 (18:55 -0700)]
README: Add STM32 Nucleo-F303RE board

* Add another to the list.  Preliminary testing works.

9 years agostlink: Add STM32F303 High Density Support
Kyle Manna [Thu, 23 Apr 2015 01:48:27 +0000 (18:48 -0700)]
stlink: Add STM32F303 High Density Support

* STK32F303RET6 device from STM32 F3 Nucelo board

9 years agoREADME, GDB load command issue
texane [Fri, 10 Apr 2015 04:17:28 +0000 (06:17 +0200)]
README, GDB load command issue

9 years agoadd Nucleo-F411RE to work board set
texane [Sun, 5 Apr 2015 06:02:19 +0000 (08:02 +0200)]
add Nucleo-F411RE to work board set

9 years agoadd HY-STM32 to working board set
texane [Fri, 3 Apr 2015 12:13:58 +0000 (14:13 +0200)]
add HY-STM32 to working board set

9 years agoapply patch from rewolff: dont go bezurk if serve returns with error
lementec [Wed, 25 Mar 2015 15:53:14 +0000 (16:53 +0100)]
apply patch from rewolff: dont go bezurk if serve returns with error

9 years agoMerge pull request #302 from ulikoehler/stm32f030f4
texane [Sat, 21 Mar 2015 19:15:12 +0000 (20:15 +0100)]
Merge pull request #302 from ulikoehler/stm32f030f4

Added STM32F030F4P6 to working targets

9 years agoAdded STM32F030F4P6 to working targets
Uli Köhler [Sat, 21 Mar 2015 19:07:21 +0000 (20:07 +0100)]
Added STM32F030F4P6 to working targets

9 years agomerge request: my STM32F042 has 6k of RAM according to table 2 of the datasheet
texane [Fri, 20 Mar 2015 16:52:25 +0000 (17:52 +0100)]
merge request: my STM32F042 has 6k of RAM according to table 2 of the datasheet

9 years agoMerge pull request #300 from elvisfox/master
texane [Sun, 15 Mar 2015 16:15:59 +0000 (17:15 +0100)]
Merge pull request #300 from elvisfox/master

Properly close socket on WIN32 to allow accepting further connections

9 years agoProperly close socket on WIN32 to allow accepting further connections
Denis Fokin [Sun, 15 Mar 2015 15:49:30 +0000 (17:49 +0200)]
Properly close socket on WIN32 to allow accepting further connections

9 years agoMerge pull request #299 from tyszja/master
texane [Tue, 10 Mar 2015 18:05:48 +0000 (19:05 +0100)]
Merge pull request #299 from tyszja/master

Minor error reporting tweaks and redundant  includes removal

9 years agoRemove redundant includes from stlink-sg.c
Jakub Tyszkowski [Sat, 7 Mar 2015 18:47:03 +0000 (19:47 +0100)]
Remove redundant includes from stlink-sg.c

Not sure why those were here. Probaly leftovers after refactoring?

9 years agoFix getting error message when successfully using stlinkV2
Jakub Tyszkowski [Sat, 7 Mar 2015 17:42:16 +0000 (18:42 +0100)]
Fix getting error message when successfully using stlinkV2

When using stlinkV2 you are constantly getting error messages from
'stlink_v1_open' when all goes well and 'stlink_open_usb' is used
instead. This patch fixes this confusing behaviour and makes stlink-sg.c
use logging macros consistently by removing last 'stderr' printout. It
is not needed as 'stlink_v1_open_inner' is verbose enough.

9 years agoFix error being reported twice
Jakub Tyszkowski [Sat, 7 Mar 2015 17:29:38 +0000 (18:29 +0100)]
Fix error being reported twice

If 'stlink_v1_open_inner' returns NULL then 'stlink_v1_open' prints
to stderr thus there is no need for the former one to print it also.

This removes 'Error: could not open stlink device' being printed
twice.

9 years agoMerge pull request #298 from giuseppebarba/master
texane [Mon, 9 Feb 2015 21:00:30 +0000 (22:00 +0100)]
Merge pull request #298 from giuseppebarba/master

Added support for flashing STM32F091

9 years agoAdded support for flashing STM32F091
giuseppe barba [Mon, 9 Feb 2015 20:54:05 +0000 (21:54 +0100)]
Added support for flashing STM32F091

Signed-off-by: giuseppe barba <giuseppe.barba@gmail.com>
9 years agorevert 5608a3e, breaks on ubuntu 14.04
texane [Tue, 3 Feb 2015 20:47:06 +0000 (21:47 +0100)]
revert 5608a3e, breaks on ubuntu 14.04

9 years agoadd --enable-static support to autoconf
texane [Tue, 3 Feb 2015 18:07:06 +0000 (19:07 +0100)]
add --enable-static support to autoconf

9 years agoMerge pull request #295 from simonjwright/master
texane [Sat, 24 Jan 2015 15:35:14 +0000 (16:35 +0100)]
Merge pull request #295 from simonjwright/master

STM32F42xx memory map issues

9 years agoMerge branch 'master' of https://github.com/texane/stlink
Simon Wright [Fri, 23 Jan 2015 20:43:32 +0000 (20:43 +0000)]
Merge branch 'master' of https://github.com/texane/stlink

9 years agoExtra RAM for STM32F42xx.
Simon Wright [Fri, 23 Jan 2015 20:43:23 +0000 (20:43 +0000)]
Extra RAM for STM32F42xx.

9 years agoMerge pull request #294 from normaldotcom/master
texane [Sun, 18 Jan 2015 08:25:42 +0000 (09:25 +0100)]
Merge pull request #294 from normaldotcom/master

Added support for flashing STM32F042

9 years agoAdded support for flashing STM32F042
Ethan Zonca [Sat, 17 Jan 2015 19:24:38 +0000 (14:24 -0500)]
Added support for flashing STM32F042

9 years agoMerge pull request #293 from nicmcd/master
texane [Thu, 15 Jan 2015 07:21:59 +0000 (08:21 +0100)]
Merge pull request #293 from nicmcd/master

change flash to st-flash

9 years agochange flash to st-flash
Nic McDonald [Thu, 15 Jan 2015 06:52:13 +0000 (22:52 -0800)]
change flash to st-flash

Previous commit changed binary "flash" to "st-flash" but the actual
code printed help message still called it "flash". This commit changes
it to "st-flash".

9 years agoMerge pull request #292 from nicmcd/master
texane [Wed, 14 Jan 2015 06:24:41 +0000 (07:24 +0100)]
Merge pull request #292 from nicmcd/master

added Nucleo F334R8 to README

9 years agoadded Nucleo F334R8 to README
Nic McDonald [Tue, 13 Jan 2015 21:19:34 +0000 (13:19 -0800)]
added Nucleo F334R8 to README

9 years agoMerge pull request #288 from stefan-misik/master
texane [Mon, 29 Dec 2014 22:55:14 +0000 (16:55 -0600)]
Merge pull request #288 from stefan-misik/master

Added AHB3 Peripherals definition for STM32F4

9 years agoupdate README for STM32F103RB support
texane [Fri, 26 Dec 2014 03:31:26 +0000 (21:31 -0600)]
update README for STM32F103RB support

9 years agoAdded AHB3 Peripherals definition for STM32F4
Stefan Misik [Wed, 24 Dec 2014 21:36:44 +0000 (22:36 +0100)]
Added AHB3 Peripherals definition for STM32F4

9 years agoMerge pull request #284 from rene-dev/master
texane [Tue, 2 Dec 2014 17:38:00 +0000 (11:38 -0600)]
Merge pull request #284 from rene-dev/master

Support for stm32f100 low density devices

9 years agoSupport for stm32f100 low density devices
Rene Hopf [Tue, 2 Dec 2014 17:33:36 +0000 (18:33 +0100)]
Support for stm32f100 low density devices

9 years agoImprove error message for not able to open
texane [Mon, 24 Nov 2014 22:29:09 +0000 (16:29 -0600)]
Improve error message for not able to open

9 years agocheck stlink_load_device_params
lementec [Tue, 18 Nov 2014 10:05:51 +0000 (11:05 +0100)]
check stlink_load_device_params

9 years agoadd command line debug option to flash util
lementec [Tue, 18 Nov 2014 09:55:41 +0000 (10:55 +0100)]
add command line debug option to flash util

9 years agoMerge pull request #281 from wdouglass/master
texane [Fri, 31 Oct 2014 18:49:02 +0000 (13:49 -0500)]
Merge pull request #281 from wdouglass/master

use correct SNB values for high flash pages on 2mb devices.

9 years agouse correct SNB values for high flash pages on 2mb devices.
Woodrow Douglass [Fri, 31 Oct 2014 17:54:37 +0000 (13:54 -0400)]
use correct SNB values for high flash pages on 2mb devices.

9 years agoMerge pull request #280 from wdouglass/master
texane [Fri, 31 Oct 2014 17:02:42 +0000 (12:02 -0500)]
Merge pull request #280 from wdouglass/master

Modify flash calculation functions to support 2MB devices

9 years agoModify flash calculation functions to support 2MB devices in the STM32F4 series
Woodrow Douglass [Fri, 31 Oct 2014 14:47:34 +0000 (10:47 -0400)]
Modify flash calculation functions to support 2MB devices in the STM32F4 series

9 years agoupdate README, NUCLEO-F072RB as reported by kwikius
lementec [Thu, 30 Oct 2014 13:38:36 +0000 (14:38 +0100)]
update README, NUCLEO-F072RB as reported by kwikius

9 years agoMerge pull request #277 from swegener/for-upstream
texane [Tue, 21 Oct 2014 16:44:07 +0000 (11:44 -0500)]
Merge pull request #277 from swegener/for-upstream

SNB is wider than three bits on STM32F4

9 years agoSNB is wider than three bits on STM32F4
Sven Wegener [Tue, 21 Oct 2014 08:04:10 +0000 (10:04 +0200)]
SNB is wider than three bits on STM32F4

The SNB part of the FLASH_CR register is four bits wide on F4 devices
and five bits wide on F4_HD devices. F4 devices have a reserved bit
alongside the sector number, so just increase the bitmask to cover all
five bits.

Currently flashing breaks, if flahing sector eight and above before
flashing lower sectors, because the highest bit is never unset.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
9 years agoMerge pull request #272 from bjoernh/master
texane [Tue, 14 Oct 2014 19:07:42 +0000 (14:07 -0500)]
Merge pull request #272 from bjoernh/master

add support for OS X 10.10 Yosemite

9 years agoUpdate README
Bjoern [Tue, 14 Oct 2014 19:01:41 +0000 (21:01 +0200)]
Update README

9 years agoadd kernelextension for OS X 10.10 Yosemite
Björn Hauffe [Tue, 14 Oct 2014 18:58:11 +0000 (20:58 +0200)]
add kernelextension for OS X 10.10 Yosemite

9 years agoMerge pull request #268 from ros2/master
texane [Sun, 5 Oct 2014 06:00:16 +0000 (01:00 -0500)]
Merge pull request #268 from ros2/master

Add memory config for STM32F4

9 years ago[ update ] add ST NUCLEO F030R8 as a working target in README
unknown [Fri, 3 Oct 2014 18:16:51 +0000 (20:16 +0200)]
[ update ] add ST NUCLEO F030R8 as a working target in README

9 years agoFix memory config for STM32F4
Victor Mayoral Vilches [Mon, 29 Sep 2014 21:26:20 +0000 (14:26 -0700)]
Fix memory config for STM32F4

The previous memory map didn't allow to debug the whole flash
memory. A new configuration has been added and should be
used while working with the STM32F4Discovery.

9 years agoMerge pull request #263 from latsku/master
texane [Tue, 9 Sep 2014 08:11:56 +0000 (10:11 +0200)]
Merge pull request #263 from latsku/master

Adds support for STM32F334 MCU

9 years agoAdds support for STM32F334 MCU
Lari Lehtomäki [Mon, 8 Sep 2014 15:49:11 +0000 (18:49 +0300)]
Adds support for STM32F334 MCU

9 years agoMerge pull request #258 from MartinNowak/master
texane [Thu, 21 Aug 2014 05:20:03 +0000 (07:20 +0200)]
Merge pull request #258 from MartinNowak/master

fix missing error msg when no suitable device is found

9 years agofix missing error msg when no suitable device is found
Martin Nowak [Wed, 20 Aug 2014 21:21:50 +0000 (23:21 +0200)]
fix missing error msg when no suitable device is found

9 years agoMerge pull request #257 from rene-dev/master
texane [Fri, 15 Aug 2014 10:07:49 +0000 (12:07 +0200)]
Merge pull request #257 from rene-dev/master

reset chip via JTAG

9 years agogdb server fix, indentation
Rene Hopf [Fri, 15 Aug 2014 08:44:24 +0000 (10:44 +0200)]
gdb server fix, indentation

9 years agojtag reset
Rene Hopf [Wed, 13 Aug 2014 14:00:40 +0000 (16:00 +0200)]
jtag reset

9 years agoSupport for nucleo 411re.
Matteo Collina [Thu, 7 Aug 2014 06:39:15 +0000 (08:39 +0200)]
Support for nucleo 411re.

9 years agoMerge pull request #253 from Netolish/master
texane [Sat, 2 Aug 2014 05:35:05 +0000 (00:35 -0500)]
Merge pull request #253 from Netolish/master

First support for STM32L0x family

9 years agoAdd support for STM32L0x.
Jiří Netolický [Fri, 1 Aug 2014 19:28:22 +0000 (21:28 +0200)]
Add support for STM32L0x.

First try to support new STM32L0x family. Tested
on NUCLEO-L053R8 development board
http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260001

Chid ID, read, erase and write flash works fine.

9 years agoAdded support fo STM32L0x chip id and base params.
Jiří Netolický [Wed, 9 Jul 2014 13:13:31 +0000 (15:13 +0200)]
Added support fo STM32L0x chip id and base params.

9 years agoMerge pull request #251 from iabdalkader/master
texane [Thu, 17 Jul 2014 05:59:15 +0000 (00:59 -0500)]
Merge pull request #251 from iabdalkader/master

Send F4 memory-map and features for STM32F429

9 years agoSend F4 memory-map and features for STM32F429
mux [Wed, 16 Jul 2014 22:46:18 +0000 (00:46 +0200)]
Send F4 memory-map and features for STM32F429

* Fix issues #250 #196

9 years agoMerge pull request #249 from prattmic/cleanup
texane [Sun, 13 Jul 2014 14:56:11 +0000 (09:56 -0500)]
Merge pull request #249 from prattmic/cleanup

gdbserver: use uglylogging logging

9 years agogdbserver: use uglylogging logging
Michael Pratt [Sat, 12 Jul 2014 20:19:41 +0000 (13:19 -0700)]
gdbserver: use uglylogging logging

Rather than putting debug printing in #ifdef blocks, use the same
uglylogging framework used by core stlink code.

To support this, the *LOG() macros are moved into the uglylogging.h
header file, and always use the filename as the logging tag.

9 years agoMerge pull request #248 from prattmic/cleanup
texane [Thu, 10 Jul 2014 07:08:26 +0000 (02:08 -0500)]
Merge pull request #248 from prattmic/cleanup

Initial code cleanup

9 years agoRemove unused code
Michael Pratt [Thu, 10 Jul 2014 06:03:37 +0000 (23:03 -0700)]
Remove unused code

Remove unused #if 0'd code which has existed for years without being
used.

9 years agoRemove toremove/
Michael Pratt [Thu, 10 Jul 2014 05:52:07 +0000 (22:52 -0700)]
Remove toremove/

This directory has been awaiting deletion for 3 years.  It is time to
go.

9 years agoReindent all source files
Michael Pratt [Thu, 10 Jul 2014 05:31:11 +0000 (22:31 -0700)]
Reindent all source files

The indentation of various st-link source files is highly inconsistent.
Reindent all source files to 4 space indentions for consistency.

I went with 4 space indentations, as it was the most common style.

9 years agoMerge pull request #246 from sneuf/patch-1
texane [Tue, 1 Jul 2014 17:08:52 +0000 (12:08 -0500)]
Merge pull request #246 from sneuf/patch-1

Add F3 small devices (F301, F302) with ID 0x439

9 years agoAdd F3 small devices (F301, F302) with ID 0x439
sneuf [Tue, 1 Jul 2014 14:42:27 +0000 (16:42 +0200)]
Add F3 small devices (F301, F302) with ID 0x439

- Add F3 small devices (F301, F302) with MCU device ID code 0x439
- Sort supported devices by MCU device ID code

9 years agoMerge pull request #245 from dobromyslov/master
texane [Fri, 20 Jun 2014 10:45:29 +0000 (05:45 -0500)]
Merge pull request #245 from dobromyslov/master

udev rules initialization and STM32F0Discovery

9 years agoudev rules initialization and STM32F0Discovery
Viacheslav Dobromyslov [Fri, 20 Jun 2014 10:11:09 +0000 (21:11 +1100)]
udev rules initialization and STM32F0Discovery

Added udev rules initialization.
Added STM32F0Discovery board to the supported boards list.

9 years agoMerge pull request #242 from ynsta/master
texane [Wed, 4 Jun 2014 05:16:04 +0000 (00:16 -0500)]
Merge pull request #242 from ynsta/master

Correct gui build when builddir is not srcdir

9 years agoCorrect gui build when builddir is not srcdir
Stany MARCEL [Tue, 3 Jun 2014 22:13:46 +0000 (00:13 +0200)]
Correct gui build when builddir is not srcdir

9 years agoMerge pull request #236 from orangeudav/patch-1
texane [Mon, 26 May 2014 05:22:55 +0000 (00:22 -0500)]
Merge pull request #236 from orangeudav/patch-1

Fix OS X's version detecting

10 years agoFix OS X's version detecting
orangeudav [Sun, 25 May 2014 21:36:59 +0000 (01:36 +0400)]
Fix OS X's version detecting

10 years agoMerge pull request #235 from ocroquette/sigint
texane [Mon, 19 May 2014 08:42:58 +0000 (03:42 -0500)]
Merge pull request #235 from ocroquette/sigint

Include signal.h to define SIGINT

10 years agoInclude signal.h to define SIGINT
Olivier Croquette [Mon, 19 May 2014 08:35:24 +0000 (10:35 +0200)]
Include signal.h to define SIGINT

Fix build error with MinGW

10 years agoUpdate README
fhars [Wed, 16 Apr 2014 08:41:33 +0000 (10:41 +0200)]
Update README

This board uses a ST-Link/V2-1 interface. I don't know what differences there are between v2 and v2-1, but they seem to be small enough that first tests worked as expected.

10 years agoMerge pull request #223 from troth/troth/fix-compiler-warning-32bit
texane [Tue, 15 Apr 2014 16:29:33 +0000 (11:29 -0500)]
Merge pull request #223 from troth/troth/fix-compiler-warning-32bit

Quell compiler warning.

10 years agoQuell compiler warning.
Theodore A. Roth [Tue, 15 Apr 2014 15:46:26 +0000 (09:46 -0600)]
Quell compiler warning.

Building on a 32-bit linux system was generating the following:

  src/st-info.c: In function ‘print_data’:
  src/st-info.c:25:3: warning: format ‘%lx’ expects argument of type \
       ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Wformat]
  src/st-info.c:27:3: warning: format ‘%lx’ expects argument of type \
       ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Wformat]
  src/st-info.c:29:3: warning: format ‘%lx’ expects argument of type \
       ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Wformat]

Using '%zx' eliminates the warning in a platform agnostic way.

10 years ago[ fix ] fix STM32L152RE broken by previous commit
texane [Sun, 16 Mar 2014 19:36:52 +0000 (14:36 -0500)]
[ fix ] fix STM32L152RE broken by previous commit

10 years ago[ update ] flash support for the STM32F401XX (installed on the nucleo F4 boards)
texane [Thu, 13 Mar 2014 12:28:40 +0000 (07:28 -0500)]
[ update ] flash support for the STM32F401XX (installed on the nucleo F4 boards)

10 years agoMerge pull request #215 from petiepooo/patch-1
texane [Mon, 10 Mar 2014 18:44:22 +0000 (19:44 +0100)]
Merge pull request #215 from petiepooo/patch-1

Fix segv if only --reset option given

10 years agoFix segv if only --reset option given
Pete [Mon, 10 Mar 2014 18:32:09 +0000 (14:32 -0400)]
Fix segv if only --reset option given

We didn't recheck that there are enough parameters after shifting the --reset option off the list.

10 years agoMerge pull request #214 from sbsimmons/master
texane [Sat, 8 Mar 2014 16:51:02 +0000 (17:51 +0100)]
Merge pull request #214 from sbsimmons/master

Add support for STM32L152RE (Nucleo-L152RE)

10 years ago* Improved support for STM32L152RE - flash/ram sizes, now correct, flash programming...
Sean Simmons [Sat, 8 Mar 2014 16:21:16 +0000 (11:21 -0500)]
* Improved support for STM32L152RE - flash/ram sizes, now correct, flash programming works.
* Cleaned up checking of FP_CTRL register in gdb-server.c
* Added source code for stm32lx.s flashloader - just for reference.

10 years agoMerge pull request #213 from tekaikko/master
texane [Wed, 5 Mar 2014 16:03:56 +0000 (17:03 +0100)]
Merge pull request #213 from tekaikko/master

Support STM32F07x devices

10 years agoUpdate stlink-common.c
tekaikko [Wed, 5 Mar 2014 14:22:34 +0000 (15:22 +0100)]
Update stlink-common.c

fix typo

10 years agoUpdate stlink-common.c
tekaikko [Wed, 5 Mar 2014 14:21:03 +0000 (15:21 +0100)]
Update stlink-common.c

Adding support for STM32F07x CAN connectivity devices

10 years agoUpdate stlink-common.h
tekaikko [Wed, 5 Mar 2014 14:19:49 +0000 (15:19 +0100)]
Update stlink-common.h

Adding support for STM32F07x CAN connectivity devices

10 years agoMerge pull request #212 from dandev37/mingw
texane [Sat, 1 Mar 2014 12:52:41 +0000 (13:52 +0100)]
Merge pull request #212 from dandev37/mingw

Update MinGW instructions for USB 3.0 hub support.

10 years agoUpdate MinGW instructions for USB 3.0 hub support.
dandev37 [Fri, 28 Feb 2014 20:23:51 +0000 (12:23 -0800)]
Update MinGW instructions for USB 3.0 hub support.

Report libusb_open() error code to the user.

10 years agoMerge pull request #210 from jehoffmann/master
texane [Fri, 21 Feb 2014 14:23:32 +0000 (15:23 +0100)]
Merge pull request #210 from jehoffmann/master

Added STM32F401RE chip id.

10 years agoAdded STM32F401RE chip id.
Jens Hoffmann [Fri, 21 Feb 2014 14:12:16 +0000 (15:12 +0100)]
Added STM32F401RE chip id.

Nucleo F401RE board got 512K flash and 96K sram. This commit adds
device definition for this controller.

10 years agoMerge pull request #209 from jehoffmann/master
texane [Thu, 20 Feb 2014 13:31:03 +0000 (14:31 +0100)]
Merge pull request #209 from jehoffmann/master

Added support for ST nucleo devices.