Wykres commitów

280 Commity (1a1f950027609aca26b107762a83b22632a391da)

Autor SHA1 Wiadomość Data
mlundinse 601d4d3329 Make _stlink_usb_reset use hardreset 2015-08-15 19:42:52 +02:00
texane feb1a2ddd8 Merge pull request #326 from mlu/master
Correct flash sector numbers and sizes for STM32F7
2015-08-15 19:17:42 +02:00
mlundinse 21f87f56c4 Correct flash sector numbers and sizes for STM32F7 2015-08-15 18:56:40 +02:00
texane 9b90ba0f24 Merge pull request #325 from trlsmax/master
fix can not flash STM32_F3_SMALL
2015-08-15 08:31:12 +02:00
mlundinse 7fbd79eef3 Added STM32F7 Support 2015-08-13 19:15:23 +02:00
Max Chen f83ed07f45 fix can not flash STM32_F3_SMALL 2015-08-13 14:24:09 +08:00
texane 6d3f105d2a FIX: "unaligned addr or size" in attempt of write the program in the RAM (#323) 2015-08-08 16:03:49 +02:00
Dave Vandervies bc3d61adc3 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.
2015-08-01 10:01:42 -04:00
Dave Vandervies 0419b8bec6 Flash loader for STM32L4 2015-08-01 10:01:42 -04:00
Dave Vandervies ab464492f7 Add supprt for STM32L4 flash driver
No loader yet, but we can erase!
2015-08-01 09:56:12 -04:00
Dave Vandervies 67fd44b837 Add STM32L4 to CHIPID #defines and devices[] 2015-08-01 09:48:25 -04:00
Pavel Kirienko 972ed48924 Basic support for F446 2015-07-17 11:55:28 +03:00
Andy Isaacson 71535104e4 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.
2015-06-09 17:53:55 -07:00
Nicolas Schodet ee62707b4a Add STM32L1xx Cat.2 devices support 2015-05-25 16:42:42 +02:00
Robin Kreis 8c26581f59 fix typo in stm32l0x flash loader
The typo caused errors when flashing an stm32l052.  This commit makes
stlink-common.c match flashloaders/stm32l0x.s.
2015-04-28 22:37:01 +02:00
Kyle Manna 0c900d76a9 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.
2015-04-23 17:05:33 -07:00
Kyle Manna 3b37cbf3c6 stlink: Add STM32F303 High Density Support
* STK32F303RET6 device from STM32 F3 Nucelo board
2015-04-23 17:05:29 -07:00
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