fw/stlink
8 years agoImplement simple non-blocking ring buffer for communication over stlink
Rytis Karpuska [Mon, 9 Nov 2015 18:03:42 +0000 (20:03 +0200)]
Implement simple non-blocking ring buffer for communication over stlink

8 years agoMerge pull request #345 from mcoquelin-stm32/stm32f469
texane [Sat, 24 Oct 2015 05:04:21 +0000 (07:04 +0200)]
Merge pull request #345 from mcoquelin-stm32/stm32f469

Add support to STM32F469/STM32F479

8 years agoAdd support to STM32F469/STM32F479
Maxime Coquelin [Fri, 23 Oct 2015 21:14:59 +0000 (23:14 +0200)]
Add support to STM32F469/STM32F479

STM32F469 is a STM32F429 MCU with Dual-QSPI NOR support and DSI screen
support.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
8 years agoREADME, add working target
lementec [Mon, 12 Oct 2015 06:07:59 +0000 (08:07 +0200)]
README, add working target

8 years agoMerge pull request #341 from mlu/master
texane [Sat, 3 Oct 2015 15:20:35 +0000 (17:20 +0200)]
Merge pull request #341 from mlu/master

Breakpoint handling for Cortex M7

8 years agoBreakpoint handling for Cortex M7
mlundinse [Sat, 3 Oct 2015 14:36:37 +0000 (16:36 +0200)]
Breakpoint handling for Cortex M7

8 years agoMerge pull request #339 from b1y1k/master
texane [Thu, 3 Sep 2015 08:45:36 +0000 (10:45 +0200)]
Merge pull request #339 from b1y1k/master

correct error message is given upon missing pkg-config package.

8 years agocorrect error message is given upon missing pkg-config package. fixes texane/stlink#338
Efe Can İçöz [Thu, 3 Sep 2015 08:32:12 +0000 (11:32 +0300)]
correct error message is given upon missing pkg-config package. fixes texane/stlink#338

8 years agoMerge pull request #336 from mlu/revert-328-master
texane [Fri, 21 Aug 2015 13:46:05 +0000 (15:46 +0200)]
Merge pull request #336 from mlu/revert-328-master

Revert "Make _stlink_usb_reset use hardreset"

8 years agoRevert "Make _stlink_usb_reset use hardreset"
mlu [Fri, 21 Aug 2015 13:44:34 +0000 (15:44 +0200)]
Revert "Make _stlink_usb_reset use hardreset"

8 years agoMerge pull request #330 from brunowonka/length_fix
texane [Mon, 17 Aug 2015 20:08:05 +0000 (22:08 +0200)]
Merge pull request #330 from brunowonka/length_fix

segmentation fault length fix

8 years agoMerge pull request #329 from dj3vande/gdbserver-segfault-fix
texane [Mon, 17 Aug 2015 20:06:57 +0000 (22:06 +0200)]
Merge pull request #329 from dj3vande/gdbserver-segfault-fix

Fix segfault in gdb-server

8 years agosegmentation fault length fix
bruno_dalbo [Mon, 17 Aug 2015 17:54:19 +0000 (14:54 -0300)]
segmentation fault length fix

8 years agoCorrectly compute flash write size for partial pages
Dave Vandervies [Wed, 12 Aug 2015 21:34:32 +0000 (17:34 -0400)]
Correctly compute flash write size for partial pages

8 years agoMerge pull request #328 from mlu/master
texane [Sat, 15 Aug 2015 17:47:43 +0000 (19:47 +0200)]
Merge pull request #328 from mlu/master

Make _stlink_usb_reset use hardreset

8 years agoMake _stlink_usb_reset use hardreset
mlundinse [Sat, 15 Aug 2015 17:42:52 +0000 (19:42 +0200)]
Make _stlink_usb_reset use hardreset

8 years agoMerge pull request #327 from mlu/master
texane [Sat, 15 Aug 2015 17:32:27 +0000 (19:32 +0200)]
Merge pull request #327 from mlu/master

Make sure MCU is halted before running RAM based flashloaders.

8 years agoMake sure MCU is halted before running RAM based flashloaders.
mlundinse [Sat, 15 Aug 2015 17:23:53 +0000 (19:23 +0200)]
Make sure MCU is halted before running RAM based flashloaders.

8 years agoMerge pull request #326 from mlu/master
texane [Sat, 15 Aug 2015 17:17:42 +0000 (19:17 +0200)]
Merge pull request #326 from mlu/master

Correct flash sector numbers and sizes for STM32F7

8 years agoCorrect flash sector numbers and sizes for STM32F7
mlundinse [Sat, 15 Aug 2015 16:56:40 +0000 (18:56 +0200)]
Correct flash sector numbers and sizes for STM32F7

8 years agoMerge pull request #325 from trlsmax/master
texane [Sat, 15 Aug 2015 06:31:12 +0000 (08:31 +0200)]
Merge pull request #325 from trlsmax/master

fix can not flash STM32_F3_SMALL

8 years agoMerge pull request #324 from mlu/master
texane [Thu, 13 Aug 2015 20:31:14 +0000 (22:31 +0200)]
Merge pull request #324 from mlu/master

Added STM32F7 Support

8 years agoAdded STM32F7 Support
mlundinse [Thu, 13 Aug 2015 17:15:23 +0000 (19:15 +0200)]
Added STM32F7 Support

8 years agofix can not flash STM32_F3_SMALL
Max Chen [Thu, 13 Aug 2015 06:24:09 +0000 (14:24 +0800)]
fix can not flash STM32_F3_SMALL

8 years agoFIX: "unaligned addr or size" in attempt of write the program in the RAM (#323)
texane [Sat, 8 Aug 2015 14:03:49 +0000 (16:03 +0200)]
FIX: "unaligned addr or size" in attempt of write the program in the RAM (#323)

8 years agoMerge pull request #321 from dj3vande/stm32l4
texane [Sat, 1 Aug 2015 14:42:07 +0000 (16:42 +0200)]
Merge pull request #321 from dj3vande/stm32l4

STM32L4 support

8 years agoClear STM32L4 PER,MER,PG bits
Dave Vandervies [Mon, 20 Jul 2015 19:25:48 +0000 (15:25 -0400)]
Clear STM32L4 PER,MER,PG bits

The controller doesn't clear them automatically when the operation
finishes, so to avoid getting errors we need to clear them manually
before we request another operation.

8 years agoFlash loader for STM32L4
Dave Vandervies [Mon, 20 Jul 2015 19:15:25 +0000 (15:15 -0400)]
Flash loader for STM32L4

8 years agoAdd supprt for STM32L4 flash driver
Dave Vandervies [Mon, 20 Jul 2015 02:58:43 +0000 (22:58 -0400)]
Add supprt for STM32L4 flash driver

No loader yet, but we can erase!

8 years agoAdd STM32L4 to CHIPID #defines and devices[]
Dave Vandervies [Sat, 18 Jul 2015 20:25:11 +0000 (16:25 -0400)]
Add STM32L4 to CHIPID #defines and devices[]

8 years agoMerge pull request #320 from pavel-kirienko/master
texane [Sat, 1 Aug 2015 11:27:41 +0000 (13:27 +0200)]
Merge pull request #320 from pavel-kirienko/master

STM32F446 support

8 years agoGDN server: F446 support
Pavel Kirienko [Fri, 17 Jul 2015 09:34:37 +0000 (12:34 +0300)]
GDN server: F446 support

8 years agoBasic support for F446
Pavel Kirienko [Fri, 17 Jul 2015 08:55:28 +0000 (11:55 +0300)]
Basic support for F446

8 years agoMerge pull request #316 from radii/stm32f4-low-voltage
texane [Wed, 10 Jun 2015 05:20:18 +0000 (07:20 +0200)]
Merge pull request #316 from radii/stm32f4-low-voltage

STM32F4 8-bit support for 1.8v operation

8 years agoSTM32F4 8-bit support for 1.8v operation
Andy Isaacson [Tue, 9 Jun 2015 18:15:28 +0000 (11:15 -0700)]
STM32F4 8-bit support for 1.8v operation

Per ST doc DM00035129.pdf "DocID022063 Rev 5", the STM32F415xx data sheet,
table 40 on page 110 of the PDF, 32-bit program operation is only possible
above 2.7 Volts.

In order to support programming on devices running at lower voltages, this
commit adds an 8-bit programming mode and the necessary tests to enable it
when the reported voltage is below 2.7 Volts.

8 years agoMerge pull request #315 from schodet/l1xx-cat2-support
texane [Mon, 25 May 2015 16:09:15 +0000 (18:09 +0200)]
Merge pull request #315 from schodet/l1xx-cat2-support

Add STM32L1xx Cat.2 devices support

8 years agoAdd STM32L1xx Cat.2 devices support
Nicolas Schodet [Tue, 19 May 2015 14:30:51 +0000 (16:30 +0200)]
Add STM32L1xx Cat.2 devices support

9 years agoMerge pull request #313 from schodet/f2-memory
texane [Mon, 18 May 2015 15:16:28 +0000 (17:16 +0200)]
Merge pull request #313 from schodet/f2-memory

Fix F2 memory map

9 years agoFix F2 memory map
Nicolas Schodet [Mon, 18 May 2015 14:55:32 +0000 (16:55 +0200)]
Fix F2 memory map

This enables GCC to only erase needed pages.

9 years agoMerge pull request #311 from naedanger/master
texane [Tue, 5 May 2015 10:53:02 +0000 (12:53 +0200)]
Merge pull request #311 from naedanger/master

Updated the memory map for stm32f42xxx and stm32f43xxx devices.

9 years agoUpdated the memory map for stm32f42xxx and stm32f43xxx devices.
Craig Lilley [Mon, 4 May 2015 22:16:31 +0000 (23:16 +0100)]
Updated the memory map for stm32f42xxx and stm32f43xxx devices.

* These devices have up to 256K of sram.
* External memory accessed via the FMC controller is now accessible
  in GDB.

9 years agoMerge pull request #310 from rkreis/add-working-targets
texane [Wed, 29 Apr 2015 07:52:01 +0000 (09:52 +0200)]
Merge pull request #310 from rkreis/add-working-targets

add some known working targets

9 years agoadd some known working targets
Robin Kreis [Wed, 29 Apr 2015 07:07:45 +0000 (09:07 +0200)]
add some known working targets

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