texane [Fri, 29 Jan 2016 15:35:37 +0000 (16:35 +0100)]
Merge pull request #366 from meisteg/l4_voltage
Allow flashing of STM32L4 down to 1.71 V
Greg Meiste [Mon, 19 Oct 2015 14:24:40 +0000 (09:24 -0500)]
Allow flashing of STM32L4 down to 1.71 V
The STM32L4 specification specifies that VDD can be 1.71 - 3.6 V.
Signed-off-by: Greg Meiste <w30289@motorola.com>
texane [Mon, 11 Jan 2016 15:02:48 +0000 (16:02 +0100)]
Merge pull request #363 from gingold-adacore/cache
st-util: synchronize cache for stm32f7
Tristan Gingold [Mon, 11 Jan 2016 14:44:17 +0000 (15:44 +0100)]
st-util: synchronize cache for stm32f7
This patch handles the cache on the cortex-m7 stm32f7 cpu.
When gdb inserts a soft breakpoint (which is the default for
code in RAM), it replaces an instruction with a breakpoint
instruction. But if the caches are enabled, the replacement
may be made only in the D-cache. To reach the I-cache, the
D-cache must be flushed and the I-cache invalidated.
This implementation is coarse: it cleans the whole D-cache
and invalidate the whole I-cache. It is possible to
track which cache lines have to be cleaned and invalidated.
texane [Thu, 17 Dec 2015 11:38:21 +0000 (12:38 +0100)]
Merge pull request #360 from gingold-adacore/stm32f7-regs
stm32f7: also send features to gdb.
texane [Thu, 17 Dec 2015 11:37:50 +0000 (12:37 +0100)]
Merge pull request #359 from gingold-adacore/no-trailing-nul
Do not send a NUL at end of packets to gdb.
Tristan Gingold [Thu, 17 Dec 2015 10:05:00 +0000 (11:05 +0100)]
stm32f7: also send features to gdb.
So that 'extra' registers (msp, psp, ...) are visible to user.
Tristan Gingold [Thu, 17 Dec 2015 10:00:45 +0000 (11:00 +0100)]
Do not send a NUL at end of packets to gdb.
GDB doesn't need it and see the NUL as a junk character
(visible with 'set debug remote 1').
texane [Tue, 15 Dec 2015 16:18:25 +0000 (17:18 +0100)]
Merge pull request #357 from jlbirccyn/patch-1
Added STM32L053R8
Jean-Luc Béchennec [Tue, 15 Dec 2015 14:12:55 +0000 (15:12 +0100)]
Added STM32L053R8
Hello, checked this board with stink. It communicates without flaw with the board:
```
2015-12-15T14:47:03 INFO src/stlink-common.c: Loading device parameters....
2015-12-15T14:47:03 INFO src/stlink-common.c: Device connected is: L0x3 device, id 0x10086417
2015-12-15T14:47:03 INFO src/stlink-common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 128 bytes
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Chip ID is
00000417, Core ID is
0bc11477.
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Target voltage is 3264 mV.
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Listening at *:4242...
```
When I launch GDB and connect to the server, I get :
```
2015-12-15T14:51:41 ERROR gdbserver/gdb-server.c: [FP_CTRL] = 0x00000041 expecting 0x00000261
2015-12-15T14:51:41 INFO gdbserver/gdb-server.c: GDB connected.
```
on the st-util side and :
```
Cannot access memory at address 0xffffffff
```
on the GDB side
Reading and writing to memory and registers works however I get
```
Cannot access memory at address 0xffffffff
```
Each time I write to the memory or to a register
texane [Mon, 7 Dec 2015 17:29:58 +0000 (18:29 +0100)]
Merge pull request #354 from gvz/master
Added parameter to specify one stlink v2 of many
Georg von Zengen [Mon, 7 Dec 2015 16:23:15 +0000 (17:23 +0100)]
Added parameter to specify one stlink v2 of many
This adds a parameter to the function stlink_open_usb and to the binary
st-flash to specify one of multiple connected stlinks.
As the identifier the iSerial of the stlink is used.
If no serial is given the function and binary behave as before.
texane [Fri, 20 Nov 2015 16:53:56 +0000 (17:53 +0100)]
Merge pull request #350 from cheshirekow/cmake_build
Cmake build
Josh Bialkowski [Fri, 20 Nov 2015 16:09:12 +0000 (08:09 -0800)]
Merge branch 'master' into cmake_build
Josh Bialkowski [Thu, 19 Nov 2015 17:29:27 +0000 (09:29 -0800)]
fix MINGW test in cmake
texane [Thu, 19 Nov 2015 10:00:20 +0000 (11:00 +0100)]
Merge pull request #349 from ibobalo/master
mingw compilation error (sleep) fixed
bob [Thu, 19 Nov 2015 08:53:21 +0000 (10:53 +0200)]
mingw compilation error (sleep) fixed
texane [Tue, 17 Nov 2015 16:32:39 +0000 (17:32 +0100)]
Merge pull request #348 from cheshirekow/cmake_build
first stab at a cmake build
Josh Bialkowski [Tue, 17 Nov 2015 00:50:08 +0000 (16:50 -0800)]
first stab at a cmake build
texane [Mon, 9 Nov 2015 18:15:13 +0000 (19:15 +0100)]
Merge pull request #347 from jauler/master
Implement 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
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
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>
lementec [Mon, 12 Oct 2015 06:07:59 +0000 (08:07 +0200)]
README, add working target
texane [Sat, 3 Oct 2015 15:20:35 +0000 (17:20 +0200)]
Merge pull request #341 from mlu/master
Breakpoint handling for Cortex M7
mlundinse [Sat, 3 Oct 2015 14:36:37 +0000 (16:36 +0200)]
Breakpoint handling for Cortex M7
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.
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
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"
mlu [Fri, 21 Aug 2015 13:44:34 +0000 (15:44 +0200)]
Revert "Make _stlink_usb_reset use hardreset"
texane [Mon, 17 Aug 2015 20:08:05 +0000 (22:08 +0200)]
Merge pull request #330 from brunowonka/length_fix
segmentation fault length 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
bruno_dalbo [Mon, 17 Aug 2015 17:54:19 +0000 (14:54 -0300)]
segmentation fault length fix
Dave Vandervies [Wed, 12 Aug 2015 21:34:32 +0000 (17:34 -0400)]
Correctly compute flash write size for partial pages
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
mlundinse [Sat, 15 Aug 2015 17:42:52 +0000 (19:42 +0200)]
Make _stlink_usb_reset use hardreset
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.
mlundinse [Sat, 15 Aug 2015 17:23:53 +0000 (19:23 +0200)]
Make sure MCU is halted before running RAM based flashloaders.
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
mlundinse [Sat, 15 Aug 2015 16:56:40 +0000 (18:56 +0200)]
Correct flash sector numbers and sizes for STM32F7
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
texane [Thu, 13 Aug 2015 20:31:14 +0000 (22:31 +0200)]
Merge pull request #324 from mlu/master
Added STM32F7 Support
mlundinse [Thu, 13 Aug 2015 17:15:23 +0000 (19:15 +0200)]
Added STM32F7 Support
Max Chen [Thu, 13 Aug 2015 06:24:09 +0000 (14:24 +0800)]
fix can not flash STM32_F3_SMALL
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)
texane [Sat, 1 Aug 2015 14:42:07 +0000 (16:42 +0200)]
Merge pull request #321 from dj3vande/stm32l4
STM32L4 support
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.
Dave Vandervies [Mon, 20 Jul 2015 19:15:25 +0000 (15:15 -0400)]
Flash loader for STM32L4
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!
Dave Vandervies [Sat, 18 Jul 2015 20:25:11 +0000 (16:25 -0400)]
Add STM32L4 to CHIPID #defines and devices[]
texane [Sat, 1 Aug 2015 11:27:41 +0000 (13:27 +0200)]
Merge pull request #320 from pavel-kirienko/master
STM32F446 support
Pavel Kirienko [Fri, 17 Jul 2015 09:34:37 +0000 (12:34 +0300)]
GDN server: F446 support
Pavel Kirienko [Fri, 17 Jul 2015 08:55:28 +0000 (11:55 +0300)]
Basic support for F446
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
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.
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
Nicolas Schodet [Tue, 19 May 2015 14:30:51 +0000 (16:30 +0200)]
Add STM32L1xx Cat.2 devices support
texane [Mon, 18 May 2015 15:16:28 +0000 (17:16 +0200)]
Merge pull request #313 from schodet/f2-memory
Fix 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.
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.
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.
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
Robin Kreis [Wed, 29 Apr 2015 07:07:45 +0000 (09:07 +0200)]
add some known working targets
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
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.
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
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.
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.
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
texane [Fri, 10 Apr 2015 04:17:28 +0000 (06:17 +0200)]
README, GDB load command issue
texane [Sun, 5 Apr 2015 06:02:19 +0000 (08:02 +0200)]
add Nucleo-F411RE to work board set
texane [Fri, 3 Apr 2015 12:13:58 +0000 (14:13 +0200)]
add HY-STM32 to working board set
lementec [Wed, 25 Mar 2015 15:53:14 +0000 (16:53 +0100)]
apply patch from rewolff: dont go bezurk if serve returns with error
texane [Sat, 21 Mar 2015 19:15:12 +0000 (20:15 +0100)]
Merge pull request #302 from ulikoehler/stm32f030f4
Added STM32F030F4P6 to working targets
Uli Köhler [Sat, 21 Mar 2015 19:07:21 +0000 (20:07 +0100)]
Added STM32F030F4P6 to working targets
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
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
Denis Fokin [Sun, 15 Mar 2015 15:49:30 +0000 (17:49 +0200)]
Properly close socket on WIN32 to allow accepting further connections
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
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?
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.
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.
texane [Mon, 9 Feb 2015 21:00:30 +0000 (22:00 +0100)]
Merge pull request #298 from giuseppebarba/master
Added 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>
texane [Tue, 3 Feb 2015 20:47:06 +0000 (21:47 +0100)]
revert
5608a3e, breaks on ubuntu 14.04
texane [Tue, 3 Feb 2015 18:07:06 +0000 (19:07 +0100)]
add --enable-static support to autoconf
texane [Sat, 24 Jan 2015 15:35:14 +0000 (16:35 +0100)]
Merge pull request #295 from simonjwright/master
STM32F42xx memory map issues
Simon Wright [Fri, 23 Jan 2015 20:43:32 +0000 (20:43 +0000)]
Merge branch 'master' of https://github.com/texane/stlink
Simon Wright [Fri, 23 Jan 2015 20:43:23 +0000 (20:43 +0000)]
Extra RAM for STM32F42xx.
texane [Sun, 18 Jan 2015 08:25:42 +0000 (09:25 +0100)]
Merge pull request #294 from normaldotcom/master
Added support for flashing STM32F042
Ethan Zonca [Sat, 17 Jan 2015 19:24:38 +0000 (14:24 -0500)]
Added support for flashing STM32F042
texane [Thu, 15 Jan 2015 07:21:59 +0000 (08:21 +0100)]
Merge pull request #293 from nicmcd/master
change 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".
texane [Wed, 14 Jan 2015 06:24:41 +0000 (07:24 +0100)]
Merge pull request #292 from nicmcd/master
added Nucleo F334R8 to README
Nic McDonald [Tue, 13 Jan 2015 21:19:34 +0000 (13:19 -0800)]
added Nucleo F334R8 to README
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
texane [Fri, 26 Dec 2014 03:31:26 +0000 (21:31 -0600)]
update README for STM32F103RB support
Stefan Misik [Wed, 24 Dec 2014 21:36:44 +0000 (22:36 +0100)]
Added AHB3 Peripherals definition for STM32F4
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
Rene Hopf [Tue, 2 Dec 2014 17:33:36 +0000 (18:33 +0100)]
Support for stm32f100 low density devices