fw/stlink
10 years agoupdate patch
Keith Packard [Sat, 14 Dec 2013 21:01:41 +0000 (13:01 -0800)]
update patch

10 years agoAdd patches
Keith Packard [Sat, 14 Dec 2013 20:59:22 +0000 (12:59 -0800)]
Add patches

10 years agodependencies
Keith Packard [Sat, 14 Dec 2013 20:17:06 +0000 (12:17 -0800)]
dependencies

10 years agoRun autoreconf before dh_auto_configure
Keith Packard [Sat, 14 Dec 2013 20:15:36 +0000 (12:15 -0800)]
Run autoreconf before dh_auto_configure

This makes sure the configure script is generated and up-to-date

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years agoInitial debian build bits
Keith Packard [Sat, 14 Dec 2013 20:05:17 +0000 (12:05 -0800)]
Initial debian build bits

Signed-off-by: Keith Packard <keithp@keithp.com>
10 years ago[ fix ] ident typo
texane [Thu, 12 Dec 2013 04:48:40 +0000 (22:48 -0600)]
[ fix ] ident typo

10 years agoMerge pull request #197 from rene-dev/master
texane [Wed, 11 Dec 2013 21:49:04 +0000 (13:49 -0800)]
Merge pull request #197 from rene-dev/master

st-term magic byte via commandline argument

10 years agost-term magic byte via commandline argument
Rene Hopf [Wed, 11 Dec 2013 19:31:37 +0000 (20:31 +0100)]
st-term magic byte via commandline argument

10 years agoMerge pull request #195 from onnokort/master
texane [Sat, 7 Dec 2013 07:09:42 +0000 (23:09 -0800)]
Merge pull request #195 from onnokort/master

Properly detect and warn if multiple stlinky magic bytes are detected

10 years agoProperly detect and warn if multiple stlinky magic bytes are detected
Onno Kortmann [Sat, 7 Dec 2013 04:30:01 +0000 (20:30 -0800)]
Properly detect and warn if multiple stlinky magic bytes are detected

Stlinky can silently fail if its magic bytes are present anywhere else
in the SRAM. This change makes st-term detect all stlinky structures,
warn about multiple occurences and will use the last one detected.

10 years agoMerge pull request #191 from jimparis/flash-support-reset
texane [Fri, 1 Nov 2013 06:50:38 +0000 (23:50 -0700)]
Merge pull request #191 from jimparis/flash-support-reset

Add --reset option to trigger a reset both before and after flashing.

10 years agoAdd --reset option to trigger a reset both before and after flashing.
Jim Paris [Thu, 31 Oct 2013 22:02:55 +0000 (18:02 -0400)]
Add --reset option to trigger a reset both before and after flashing.

10 years agoMerge pull request #189 from dandev37/master
texane [Wed, 30 Oct 2013 20:24:31 +0000 (13:24 -0700)]
Merge pull request #189 from dandev37/master

Added known working targets STM32L151CB and STM32L152RB.

10 years agoAdded known working targets STM32L151CB and STM32L152RB.
Dan Hepler [Wed, 30 Oct 2013 20:14:09 +0000 (13:14 -0700)]
Added known working targets STM32L151CB and STM32L152RB.

10 years ago[ update ] README, STM32F439VIT6 working as reported by Pawel Kraszewski
texane [Tue, 29 Oct 2013 21:13:56 +0000 (16:13 -0500)]
[ update ] README, STM32F439VIT6 working as reported by Pawel Kraszewski

10 years agoMerge pull request #187 from chrisdew/master
texane [Mon, 28 Oct 2013 18:00:53 +0000 (11:00 -0700)]
Merge pull request #187 from chrisdew/master

Added STM32F429I-DISCO to list of working boards.

10 years agoAdded STM32F429I-DISCO
Chris Dew [Mon, 28 Oct 2013 15:09:49 +0000 (15:09 +0000)]
Added STM32F429I-DISCO

10 years agoMerge pull request #185 from ouah/master
texane [Sun, 27 Oct 2013 16:10:16 +0000 (09:10 -0700)]
Merge pull request #185 from ouah/master

Restore gdb-server cleanup handlers for MinGW

10 years agoFix all compilation warnings
Olivier Gay [Sun, 27 Oct 2013 16:05:13 +0000 (17:05 +0100)]
Fix all compilation warnings

10 years agoRestore gdb-server cleanup handlers for MinGW
Olivier Gay [Sun, 27 Oct 2013 15:17:08 +0000 (16:17 +0100)]
Restore gdb-server cleanup handlers for MinGW

There were removed in my previous commit 5851dee due
to compilation errors. It actually appears these signals
are supported in MinGW but there was an include error for
MinGW, this commit fixes it.

10 years agoMerge pull request #184 from ouah/master
texane [Sun, 27 Oct 2013 15:02:33 +0000 (08:02 -0700)]
Merge pull request #184 from ouah/master

Fix build issues with MinGW

10 years agoFix build issues with MinGW
Olivier Gay [Sun, 27 Oct 2013 14:19:29 +0000 (15:19 +0100)]
Fix build issues with MinGW

Remove st-term from the list of the targets for MinGW.
st-term uses termios and would require a rewrite to have
it compile on MinGW. Also remove cleanup signal handlers
in gdb-server for MinGW to compile.

10 years agoMerge pull request #183 from thinkski/master
texane [Thu, 24 Oct 2013 16:28:13 +0000 (09:28 -0700)]
Merge pull request #183 from thinkski/master

Fixed missing parenthesis. Resolves issues #92, #161, and #170.

10 years agoFixes issue #161
Chris Hiszpanski [Thu, 24 Oct 2013 05:59:32 +0000 (22:59 -0700)]
Fixes issue #161

10 years ago[ patch from Uwe Bonnes ] add STM32F42x and F43x-parts (bank handling not yet supported)
texane [Mon, 14 Oct 2013 23:08:42 +0000 (18:08 -0500)]
[ patch from Uwe Bonnes ] add STM32F42x and F43x-parts (bank handling not yet supported)

10 years ago[ patch from Uwe Bonnes ] determine flash size for more devices
texane [Mon, 14 Oct 2013 23:07:46 +0000 (18:07 -0500)]
[ patch from Uwe Bonnes ] determine flash size for more devices

10 years ago[ fix ] st-info warnings
texane [Mon, 30 Sep 2013 14:15:47 +0000 (09:15 -0500)]
[ fix ] st-info warnings

10 years agoMerge pull request #181 from SuperVirus/master
texane [Mon, 30 Sep 2013 07:13:14 +0000 (00:13 -0700)]
Merge pull request #181 from SuperVirus/master

Support for reading target voltage

10 years agoSupport for reading target voltage
htk [Sun, 29 Sep 2013 23:51:26 +0000 (01:51 +0200)]
Support for reading target voltage

10 years agoMerge pull request #180 from nekromant/info
texane [Sun, 29 Sep 2013 12:49:52 +0000 (05:49 -0700)]
Merge pull request #180 from nekromant/info

Add st-info utility

10 years agoAdd st-info utility
Andrew 'Necromant' Andrianov [Sun, 29 Sep 2013 12:22:07 +0000 (16:22 +0400)]
Add st-info utility

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
10 years agoMerge pull request #178 from maximevince/master
texane [Sun, 1 Sep 2013 09:23:55 +0000 (02:23 -0700)]
Merge pull request #178 from maximevince/master

Fixed the DEBUG switch in gdb-server.c

10 years agoMerge branch 'master' of git://github.com/texane/stlink
Maxime Vincent [Sun, 1 Sep 2013 07:26:43 +0000 (09:26 +0200)]
Merge branch 'master' of git://github.com/texane/stlink

10 years agoFixed the DEBUG switch in gdb-server.c
Maxime Vincent [Sun, 1 Sep 2013 07:23:19 +0000 (09:23 +0200)]
Fixed the DEBUG switch in gdb-server.c

10 years ago[ fix ] missing exit prototype, include stdlib.h
texane [Sun, 1 Sep 2013 03:09:05 +0000 (22:09 -0500)]
[ fix ] missing exit prototype, include stdlib.h

10 years ago[ fix ] 0001-stlink-gui-Follow-new-stlink_open-usage, fix from Jim Huang <jserv@0xlab...
texane [Sun, 1 Sep 2013 03:04:21 +0000 (22:04 -0500)]
[ fix ] 0001-stlink-gui-Follow-new-stlink_open-usage, fix from Jim Huang <jserv@0xlab.org>

10 years agoMerge pull request #177 from Disasm/master
texane [Sat, 24 Aug 2013 10:07:40 +0000 (03:07 -0700)]
Merge pull request #177 from Disasm/master

Update list of known working targets

10 years agoUpdate list of known working targets
Vadim Kaushan [Sat, 24 Aug 2013 09:40:03 +0000 (13:40 +0400)]
Update list of known working targets

10 years agoMerge pull request #176 from prattmic/reset
texane [Sun, 18 Aug 2013 19:40:45 +0000 (12:40 -0700)]
Merge pull request #176 from prattmic/reset

V2: Add option to not reset board on connect

10 years agoAdd option to not reset board on connect
Michael Pratt [Wed, 6 Mar 2013 20:24:15 +0000 (15:24 -0500)]
Add option to not reset board on connect

'-n' in st-util will cause it to skip the reset step, and thus allow you
to begin debugging at whatever point the code may currently be at.

Adding this feature required changing the stlink_open functions to
accept a reset flag that tells them whether or not to reset after
connecting.  Skipping reset does not seem to have any adverse effects on
stlink usb devices.  Unfortunately, I have to stlink v1 devices to test.

10 years agoMerge pull request #173 from JohannesTaelman/master
texane [Tue, 13 Aug 2013 14:05:58 +0000 (07:05 -0700)]
Merge pull request #173 from JohannesTaelman/master

fixed USB VID/PID detection bug

10 years agofixed USB VID/PID detection bug
JohannesTaelman [Tue, 13 Aug 2013 13:37:44 +0000 (15:37 +0200)]
fixed USB VID/PID detection bug

When a USB device with same VID but different PID is found, it got
selected as STLINK device.

10 years agojtag reset introduced in 57d068097eb57aa7ee985ddb1edea90a5d6d5d8a breaks things
lementec [Thu, 18 Jul 2013 15:42:59 +0000 (17:42 +0200)]
jtag reset introduced in 57d068097eb57aa7ee985ddb1edea90a5d6d5d8a breaks things

10 years agoMerge pull request #167 from bms20/master
texane [Tue, 9 Jul 2013 15:57:37 +0000 (08:57 -0700)]
Merge pull request #167 from bms20/master

Proper reset control for stlink_reset

10 years agoAdded proper reset support; now asserts nrst and then performs sysreset.
Breton M. Saunders [Tue, 9 Jul 2013 15:02:07 +0000 (16:02 +0100)]
Added proper reset support; now asserts nrst and then performs sysreset.

10 years agoMerge branch 'master' of https://github.com/burnsfisher/stlink
Fabien Le Mentec [Sun, 23 Jun 2013 11:49:22 +0000 (06:49 -0500)]
Merge branch 'master' of https://github.com/burnsfisher/stlink

10 years agoMerge branch 'master' of https://github.com/yurovsky/stlink
Fabien Le Mentec [Sun, 23 Jun 2013 11:48:38 +0000 (06:48 -0500)]
Merge branch 'master' of https://github.com/yurovsky/stlink

10 years agoSupport for STM32L1 medium-plus chips with chip id 0x427
Burns [Fri, 21 Jun 2013 21:36:15 +0000 (17:36 -0400)]
Support for STM32L1 medium-plus chips with chip id 0x427

    -Changed the STM32L1 "medium plus" (id 0x436) support to be called HIGH.
    -Added the device id 0x427 and call it medium plus.
    -Gave the loader more time so it stopped timing out and thinking it failed.
    -Added st-term to .gitignore
Note:  ST seems to call some chips with 436 medium plus and some high.  It seemed
easier to name 436 high and 427 medium plus.

10 years agoadd new STM32F401 parts (F4 variant)
Andrey Yurovsky [Fri, 21 Jun 2013 18:59:35 +0000 (11:59 -0700)]
add new STM32F401 parts (F4 variant)

Nearly identical to STM32F403/407 but has different chip ID and RAM
size:
http://www.st.com/web/en/catalog/mmc/FM141/SC1169/SS1577/LN1810

10 years agoMerge pull request #162 from bms20/master
texane [Fri, 14 Jun 2013 15:35:30 +0000 (08:35 -0700)]
Merge pull request #162 from bms20/master

Support for small F0 devices

10 years agoAdded support for small f0 devices with core id 0x444
Breton M. Saunders [Fri, 14 Jun 2013 15:13:33 +0000 (16:13 +0100)]
Added support for small f0 devices with core id 0x444

10 years agoMerge pull request #159 from jonasdn/check-for-ui-file
texane [Thu, 13 Jun 2013 06:17:51 +0000 (23:17 -0700)]
Merge pull request #159 from jonasdn/check-for-ui-file

stlink-gui: add check for existence of UI file

10 years agostlink-gui: add check for existence of UI file
Jonas Danielsson [Thu, 13 Jun 2013 06:03:21 +0000 (08:03 +0200)]
stlink-gui: add check for existence of UI file

10 years agoMerge pull request #156 from jonasdn/gtk-gui
texane [Mon, 10 Jun 2013 15:59:10 +0000 (08:59 -0700)]
Merge pull request #156 from jonasdn/gtk-gui

Gtk gui

10 years agoautoconf: add --with-gtk option to enable gui
Jonas Danielsson [Mon, 10 Jun 2013 09:33:05 +0000 (11:33 +0200)]
autoconf: add --with-gtk option to enable gui

10 years agogui: add initial gtk implementation
Jonas Danielsson [Mon, 10 Jun 2013 09:32:01 +0000 (11:32 +0200)]
gui: add initial gtk implementation

11 years agoMerge pull request #151 from kevlar26/master
texane [Tue, 7 May 2013 12:57:46 +0000 (05:57 -0700)]
Merge pull request #151 from kevlar26/master

Ensure USB device search succeeds if the matched device is at index 0.

11 years agoEnsure that the USB device search succeeds if the matched device is at index 0.
kevin [Tue, 7 May 2013 12:33:58 +0000 (13:33 +0100)]
Ensure that the USB device search succeeds if the matched device is at index 0.

11 years agoMerge pull request #150 from nekromant/master
texane [Mon, 6 May 2013 07:27:53 +0000 (00:27 -0700)]
Merge pull request #150 from nekromant/master

serial terminal support

11 years agost-term: handle two signals and fixups
Andrew 'Necromant' Andrianov [Mon, 6 May 2013 05:54:10 +0000 (09:54 +0400)]
st-term: handle two signals and fixups

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
11 years agoworking st-term proof-of-concept. Period.
Andrew 'Necromant' Andrianov [Mon, 6 May 2013 04:59:25 +0000 (08:59 +0400)]
working st-term proof-of-concept. Period.

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
11 years agoAdd STlink terminal draft
Andrew 'Necromant' Andrianov [Sun, 5 May 2013 21:50:35 +0000 (01:50 +0400)]
Add STlink terminal draft

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
11 years agoMerge pull request #148 from AleCher/master
texane [Tue, 23 Apr 2013 12:54:14 +0000 (05:54 -0700)]
Merge pull request #148 from AleCher/master

Environment STLINK_DEVICE allow to choose usb device

11 years agoEnvironment STLINK_DEVICE allow to choose ST_LINK
Alexey Cherevatenko [Tue, 23 Apr 2013 12:17:09 +0000 (15:17 +0300)]
Environment STLINK_DEVICE allow to choose ST_LINK

11 years agoMerge pull request #143 from mower7/master
texane [Tue, 16 Apr 2013 16:52:21 +0000 (09:52 -0700)]
Merge pull request #143 from mower7/master

Added SIGTERM handler

11 years agoMerge pull request #142 from yurovsky/master
texane [Sun, 14 Apr 2013 06:21:21 +0000 (23:21 -0700)]
Merge pull request #142 from yurovsky/master

minor cleanup

11 years agoDon't use magic numbers for chip_id field
Andrey Yurovsky [Sun, 14 Apr 2013 05:32:09 +0000 (22:32 -0700)]
Don't use magic numbers for chip_id field

The chip IDs are defined up top and those macros are used throughout the
code so let's remove the magic numbers in .chip_id so that everything is
using the macros.

No functionality changes, just a find/replace.

11 years agoAdd SIGTERM signal handler to also call cleanup
Jack Peel [Sat, 6 Apr 2013 00:55:19 +0000 (17:55 -0700)]
Add SIGTERM signal handler to also call cleanup
When stopping st-util under Eclipse as an external tool the st-util
receives a SIGTERM signal, and would not return the device to
usb mass storage mode.  This change now calls cleanup in the SIGTERM handler too!!

11 years agoMerge pull request #141 from mower7/master
texane [Fri, 5 Apr 2013 16:12:06 +0000 (09:12 -0700)]
Merge pull request #141 from mower7/master

A little mode tweaking for the STM32L Medium Density Devies

11 years agoAdd support for the STM32L1 Medium density device flash size calculation
Jack Peel [Fri, 5 Apr 2013 16:06:26 +0000 (09:06 -0700)]
Add support for the STM32L1 Medium density device flash size calculation
In devices before "Rev X" the flash size register is 0 so we assume 128k
Note that "Rev X" is a LATER revision than "Rev Y" and others that might
seem like they are later!

11 years agoMerge pull request #140 from mower7/master
texane [Thu, 4 Apr 2013 05:29:20 +0000 (22:29 -0700)]
Merge pull request #140 from mower7/master

Adding Support for STM32L1xx Medium and High density devices

11 years agoAdd Support for STM32L1xx Medium Plus and High density Devices
Jack Peel [Wed, 3 Apr 2013 23:43:13 +0000 (16:43 -0700)]
Add Support for STM32L1xx Medium Plus and High density Devices

Using reference RM0038 Rev 7
The flash size register moved
and the values in the registers changed their meaning
Note that Medium Plus and High density deives have the
same device ID, but only the Medium Plus definition is
used in the code (the High comes along for free)

11 years ago[ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws
Fabien Le Mentec [Mon, 1 Apr 2013 20:36:52 +0000 (15:36 -0500)]
[ update ] bind gdb server on INADDR_ANY, as requested by thomas@popp.ws

11 years agoMerge pull request #138 from 6thimage/master
texane [Fri, 22 Mar 2013 13:52:33 +0000 (06:52 -0700)]
Merge pull request #138 from 6thimage/master

Fix for programming STM32L152

11 years agoLimited DMA clearing to STM32F4, removed fatal error for flash loading.
Ian Griffiths [Thu, 21 Mar 2013 16:28:15 +0000 (16:28 +0000)]
Limited DMA clearing to STM32F4, removed fatal error for flash loading.

Commit 0ed3907 added the clearing of DMA registers that was preventing
programming (see issue #74), however it uses hardcoded addresses of the
DMA registers on the STM32F4. This seems to prevent the flashing and
verification on STM32L1, as the registers only partly cover the range
zeroed. So the DMA clearing has been limited to the STM32F4
microcontroller.

Additionally, sometimes, typically directly after erases, a 'flash
loader run error' will occur that terminates the writing. This is not
necessary, as the writing is successfully performed by page writing
(line 1581 onwards of stlink-common.c), and so has been returned to a
error message (see issue #112). There is a comment on line 1574 (added by
Uwe Bonnes in commit 0164043f) that this may happen on blank devices,
and so the fatal error message is the incorrect response.

11 years agoAdded lock state check to stlink_erase_flash_page.
Ian Griffiths [Wed, 20 Mar 2013 13:01:49 +0000 (13:01 +0000)]
Added lock state check to stlink_erase_flash_page.

On the STM32L152 processor, the erase fails for the first page as the
lock is already disabled (with the unlocking code causing the lock to
become re-enabled). This commit adds checking of the lock state and will
only unlock if necessary.

11 years agoMerge pull request #135 from prattmic/signal_cleanup
texane [Wed, 6 Mar 2013 21:44:48 +0000 (13:44 -0800)]
Merge pull request #135 from prattmic/signal_cleanup

Add SIGINT handler for stlink cleanup

11 years agoAdd SIGINT handler for stlink cleanup
Michael Pratt [Wed, 6 Mar 2013 21:15:15 +0000 (16:15 -0500)]
Add SIGINT handler for stlink cleanup

SIGINT causes st-util to immediately exit, without closing the open
stlink.  This leaves devices (at least the F4 Discovery) in a state
where they are unable to reset.  st-util could still connect and control
them, but a power cycle was required before they could reset on their
own.

A signal handler is added for SIGINT, which performs cleanup and closing
of the open stlink device, allowing it to function normally on
disconnect.

11 years agoMerge pull request #133 from prattmic/master
texane [Wed, 6 Mar 2013 19:52:25 +0000 (11:52 -0800)]
Merge pull request #133 from prattmic/master

Move persistence flag to st_state_t

11 years agoMove persistence flag to st_state_t
Michael Pratt [Wed, 6 Mar 2013 19:23:17 +0000 (14:23 -0500)]
Move persistence flag to st_state_t

It makes sense for it to be with all other state data.  This meant
passing the entire state struct into serve.

11 years agoMerge pull request #132 from prattmic/master
texane [Wed, 6 Mar 2013 18:39:14 +0000 (10:39 -0800)]
Merge pull request #132 from prattmic/master

Add gdb-server persistence

11 years agoAdd persistence support to gdb-server
Michael Pratt [Wed, 6 Mar 2013 17:52:12 +0000 (12:52 -0500)]
Add persistence support to gdb-server

When started with -m, or connected with 'target extended-remote', the
GDB server will not terminate upon disconnection from GDB, instead it
will begin listening for conenctions again.

Starting with extended-remote also has the advantage of allowing 'run'
to be used to reset the target and begin again.  Unfortunately, 'start'
is not working properly, as it does not send a reset packet (R), so it
complains when it tries to access memory before it is connected to the
target.

11 years agoRevert "[ merge ] patch from fischermi@t-online.de, GDB server endless loop"
Michael Pratt [Wed, 6 Mar 2013 17:03:27 +0000 (12:03 -0500)]
Revert "[ merge ] patch from fischermi@t-online.de, GDB server endless loop"

This reverts commit 1c2828cc914260a57299461373bf835f90043863.

11 years agoMerge pull request #128 from schodet/unaligned-read
texane [Tue, 12 Feb 2013 19:13:54 +0000 (11:13 -0800)]
Merge pull request #128 from schodet/unaligned-read

Fix byte count when doing unaligned memory read, fix issue #127

11 years agoFix byte count when doing unaligned memory read, fix issue #127
Nicolas Schodet [Tue, 12 Feb 2013 18:38:46 +0000 (19:38 +0100)]
Fix byte count when doing unaligned memory read, fix issue #127

 - when start is adjusted, count should also be adjusted,
 - then, count is rounded to the next multiple of word size.

11 years agoMerge pull request #122 from sheaff/master
texane [Thu, 10 Jan 2013 06:26:09 +0000 (22:26 -0800)]
Merge pull request #122 from sheaff/master

STM32F4 flash while using DMA potential fix

11 years agoClears DMA config registers for Discovery F4 board
A Sheaff [Wed, 9 Jan 2013 22:00:52 +0000 (17:00 -0500)]
Clears DMA config registers for Discovery F4 board
to allow flash programming.  See texane/stlink issue #74.

11 years agoMerge pull request #121 from WinterMute/64bit_win_fix
texane [Sun, 6 Jan 2013 17:20:41 +0000 (09:20 -0800)]
Merge pull request #121 from WinterMute/64bit_win_fix

64bit win fix

11 years agobump version
Dave Murphy [Sun, 6 Jan 2013 16:00:57 +0000 (16:00 +0000)]
bump version

11 years agofile needs to be Binary for windows
Dave Murphy [Sun, 6 Jan 2013 15:34:54 +0000 (15:34 +0000)]
file needs to be Binary for windows

O_BINARY only defined on windows

11 years agofix write_flash size of len for 64bit
Dave Murphy [Sun, 6 Jan 2013 15:33:48 +0000 (15:33 +0000)]
fix write_flash size of len for 64bit

11 years agobump version
Dave Murphy [Mon, 31 Dec 2012 23:11:46 +0000 (23:11 +0000)]
bump version

11 years agoMerge branch 'master' of git://github.com/texane/stlink
Dave Murphy [Mon, 31 Dec 2012 23:09:50 +0000 (23:09 +0000)]
Merge branch 'master' of git://github.com/texane/stlink

11 years agobump version
Dave Murphy [Mon, 31 Dec 2012 23:09:30 +0000 (23:09 +0000)]
bump version

11 years ago[ merge ] patch from fischermi@t-online.de, GDB server endless loop
Fabien Le Mentec [Thu, 27 Dec 2012 13:00:46 +0000 (07:00 -0600)]
[ merge ] patch from fischermi@t-online.de, GDB server endless loop

11 years ago[ merge ] patch from jgobat@gmail.com, add STM32F373 support
Fabien Le Mentec [Wed, 28 Nov 2012 18:48:50 +0000 (12:48 -0600)]
[ merge ] patch from jgobat@gmail.com, add STM32F373 support

11 years ago[ merge ] Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> patches
Fabien Le Mentec [Sun, 25 Nov 2012 15:50:44 +0000 (09:50 -0600)]
[ merge ] Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> patches

11 years ago[ merge ] STM32_CHIPIP_F3 patch from Geoffrey Brown
lementec [Thu, 15 Nov 2012 16:37:00 +0000 (17:37 +0100)]
[ merge ] STM32_CHIPIP_F3 patch from Geoffrey Brown

11 years agoMerge pull request #114 from wkoszek/master
texane [Sun, 4 Nov 2012 06:45:47 +0000 (23:45 -0700)]
Merge pull request #114 from wkoszek/master

Support for STM32 F3 Discovery board (ARM Techcon 2012)

11 years agoBring the support for STM32 F3 Discovery board (ARM Techcon 2012)
Wojciech A. Koszek [Sun, 4 Nov 2012 06:20:17 +0000 (23:20 -0700)]
Bring the support for STM32 F3 Discovery board (ARM Techcon 2012)

Support was tested by attaching USB cable to USB ST-LINK USB port, starting

./st-util

Which resulted in proper device recognition:

2012-11-03T23:11:25 INFO src/stlink-common.c: Device connected is: F3 device, id 0x10016422
2012-11-03T23:11:25 INFO src/stlink-common.c: SRAM size: 0xa000 bytes (40 KiB), Flash: 0x40000 bytes (256 KiB) in pages of 2048 bytes
Chip ID is 00000422, Core ID is  2ba01477.

Then from GDB, after "target remove localhost:4242", I tested reads:

x/w 0x20000000

And writes:

set {int}0x20000000 1

And ELF loading:

(gdb) load main
Loading section .text, size 0x10 lma 0x20000000
Start address 0x20000000, load size 16
Transfer rate: 410 bytes/sec, 16 bytes/write.

And verified dissasembly (in my case--with Thumb mode) with objdump -d <elf>
output:

(gdb) set arm force-mode thumb
(gdb) x/7i 0x20000000
=> 0x20000000: push {r7}
   0x20000002: sub sp, #12
   0x20000004: add r7, sp, #0
   0x20000006: ldr r3, [r7, #4]
   0x20000008: add.w r3, r3, #1
   0x2000000c: str r3, [r7, #4]
   0x2000000e: b.n 0x20000006