Wykres commitów

263 Commity (5a8f637a5c1c19f73d987e5526236beeed7bf850)

Autor SHA1 Wiadomość Data
texane dceade1c27 merge request: my STM32F042 has 6k of RAM according to table 2 of the datasheet 2015-03-20 17:52:25 +01:00
Jakub Tyszkowski c6afdd500c Remove redundant includes from stlink-sg.c
Not sure why those were here. Probaly leftovers after refactoring?
2015-03-07 19:47:03 +01:00
Jakub Tyszkowski fc961745f5 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.
2015-03-07 19:18:58 +01:00
Jakub Tyszkowski 527de54708 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.
2015-03-07 19:02:44 +01:00
giuseppe barba 31f0250d89 Added support for flashing STM32F091
Signed-off-by: giuseppe barba <giuseppe.barba@gmail.com>
2015-02-09 21:54:42 +01:00
Simon Wright 5a722e3210 Merge branch 'master' of https://github.com/texane/stlink 2015-01-23 20:43:32 +00:00
Simon Wright b2dac26923 Extra RAM for STM32F42xx. 2015-01-23 20:43:23 +00:00
Ethan Zonca 2daeabaead Added support for flashing STM32F042 2015-01-17 14:24:38 -05:00
Rene Hopf d04fcf5cb6 Support for stm32f100 low density devices 2014-12-02 18:33:36 +01:00
texane 7d6dad8546 Improve error message for not able to open 2014-11-24 16:29:09 -06:00
lementec 23e03fa074 check stlink_load_device_params 2014-11-18 11:05:51 +01:00
Woodrow Douglass e80d5d2359 use correct SNB values for high flash pages on 2mb devices. 2014-10-31 13:54:37 -04:00
Woodrow Douglass 10f07fccdd Modify flash calculation functions to support 2MB devices in the STM32F4 series 2014-10-31 10:47:34 -04:00
Sven Wegener abe1a0f026 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>
2014-10-21 16:33:12 +02:00
Lari Lehtomäki add3285b5d Adds support for STM32F334 MCU 2014-09-08 19:05:50 +03:00
Martin Nowak 61fa5101e9 fix missing error msg when no suitable device is found 2014-08-20 23:21:50 +02:00
Rene Hopf fde9ec6743 jtag reset 2014-08-13 16:00:40 +02:00
Matteo Collina 276be4fa42 Support for nucleo 411re. 2014-08-07 08:39:15 +02:00
Jiří Netolický 44c645b7d7 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.
2014-08-01 21:28:22 +02:00
Jiří Netolický ee68f1967a Added support fo STM32L0x chip id and base params. 2014-08-01 21:27:25 +02:00
Michael Pratt 3c3b02e83e 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.
2014-07-12 13:23:24 -07:00
Michael Pratt dae71f4a8e Remove unused code
Remove unused #if 0'd code which has existed for years without being
used.
2014-07-09 23:03:37 -07:00
Michael Pratt 3b443dc1c8 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.
2014-07-09 22:56:36 -07:00
sneuf 95834ef5ed 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
2014-07-01 16:42:27 +02:00
texane a8eb82ee1f Merge pull request #223 from troth/troth/fix-compiler-warning-32bit
Quell compiler warning.
2014-04-15 11:29:33 -05:00
Theodore A. Roth 75be8af547 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.
2014-04-15 09:46:26 -06:00
texane 5e9b096c9c [ fix ] fix STM32L152RE broken by previous commit 2014-03-16 14:36:52 -05:00
texane 4531918c97 [ update ] flash support for the STM32F401XX (installed on the nucleo F4 boards) 2014-03-13 07:28:40 -05:00
Sean Simmons 94c7ac86dc * 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.
2014-03-08 11:21:16 -05:00
tekaikko 0b88c379c3 Update stlink-common.c
fix typo
2014-03-05 15:22:34 +01:00
tekaikko 2121354caf Update stlink-common.c
Adding support for STM32F07x CAN connectivity devices
2014-03-05 15:21:03 +01:00
tekaikko 71d0958873 Update stlink-common.h
Adding support for STM32F07x CAN connectivity devices
2014-03-05 15:19:49 +01:00
dandev37 746d0201a7 Update MinGW instructions for USB 3.0 hub support.
Report libusb_open() error code to the user.
2014-02-28 12:23:51 -08:00
Jens Hoffmann 83e9f70dd8 Added STM32F401RE chip id.
Nucleo F401RE board got 512K flash and 96K sram. This commit adds
device definition for this controller.
2014-02-21 15:12:16 +01:00
Jens Hoffmann fdcb50e0de Added support for ST nucleo devices.
Nucleo boards using the same endpoint for IN and OUT (1). This patch
fix it.
2014-02-20 13:59:49 +01:00
Jim Paris 5dcd45d8a4 When ignoring the end of a file, make sure we don't ignore partial words.
Consider a 128-byte write to the chip.  If the last 2 bytes are
considered "empty", then len is adjusted to 126, and run_flash_loader
will only copy 126 bytes to RAM.  However, run_flash_loader then
proceeds to round up to 32 words (128 bytes) when flashing, which has
the effect of clobbering those last two "empty" bytes with junk data.
2014-01-31 16:26:35 -05:00
Jonas Norling 2e6ba20935 Correct address for STM32F2 flash size register
There was a typo in the flash size register address for STM32F2. Change
to correct address. Verified against STM32F207 reference manual
(RM0033 Rev 5 section 33.2), and an STM32F217 chip.
2014-01-22 22:50:49 +01:00
agpanarin 984aed6bb5 Process SIGINT and SIGTERM only in safe places 2013-12-19 23:43:11 +04:00
texane 9bb1a0c3d7 [ fix ] ident typo 2013-12-11 22:48:40 -06:00
Rene Hopf 93c070d84c st-term magic byte via commandline argument 2013-12-11 20:31:37 +01:00
Onno Kortmann badeef227a 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.
2013-12-06 20:30:01 -08:00
Olivier Gay 3652f98a5d Fix all compilation warnings 2013-10-27 17:07:01 +01:00
texane e40741e827 [ patch from Uwe Bonnes ] add STM32F42x and F43x-parts (bank handling not yet supported) 2013-10-14 18:08:42 -05:00
texane f15ef16aea [ patch from Uwe Bonnes ] determine flash size for more devices 2013-10-14 18:07:46 -05:00
texane a13e75a25a [ fix ] st-info warnings 2013-09-30 09:15:47 -05:00
htk e886396e0e Support for reading target voltage 2013-09-30 01:51:26 +02:00
Andrew 'Necromant' Andrianov e19054a4b3 Add st-info utility
Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
2013-09-29 16:22:07 +04:00
texane 0a6c0903c6 [ fix ] missing exit prototype, include stdlib.h 2013-08-31 22:09:05 -05:00
Michael Pratt 596fb35916 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.
2013-08-18 14:44:58 -04:00
JohannesTaelman 36cd837fc9 fixed USB VID/PID detection bug
When a USB device with same VID but different PID is found, it got
selected as STLINK device.
2013-08-13 15:37:44 +02:00