Wykres commitów

383 Commity (v1.3.0)

Autor SHA1 Wiadomość Data
Jerry Jacobs 4868a62fbf Prepare for win64 static executable builds 2017-01-28 11:30:30 +01:00
GagoSoft 0106c53821 Support serial numbers in st-util and st-flash (#541)
Support multiple stlink programmers by passing the serial number as a commandline argument. Fixes #318.
2017-01-10 17:18:59 +01:00
Torstein Husebø ba898b1c9c after 4c69cae257 a compile produces the (#539)
following warning:
warning: missing initializer for field ‘set_swdclk’ of ‘stlink_backend_t
{aka struct _stlink_backend}’ [-Wmissing-field-initializers]

silence the warning and expand comment
2017-01-09 16:13:16 +01:00
Andreas 01b9e16821 Add support for STM32F412 (#538) 2017-01-02 22:00:56 +01:00
night-ghost e761a47fc4 Reset flash MER bit after mass erase
Otherwise all subsequent erases before turning off the power will be mass erases (#489)
2016-12-30 12:15:20 +01:00
jkhax0r c44182465a Set SWDCLK and fix jtag_reset bug (#534)
* - Fixed bug where stlink_jtag_reset in stlink_open_usb() was never being called because the STLINK version was being checked before it had been initialized
- Added support for stlink_set_swdclk() to adjust the SWD clock speed.  For example, to set at 4Mhz, 1.8Mhz, 900Khz, etc similar to in the official ST-LINK utility.  NOTE: The default when STLINK is powered appears to be 1.8Mhz (looked at scope traces) but it retains whatever was set before.

* Fixed tab->space
2016-12-30 12:00:27 +01:00
texane ecc31f764d Merge pull request #528 from galexander1/k_killrequest
Add 'k' (kill) command to gdb-server, which resets the connection
2016-12-11 16:40:33 +01:00
texane e0100301f2 Merge pull request #527 from galexander1/rdwr_error
return error condition if st-util's read/write memory commands fail
2016-12-11 16:39:26 +01:00
texane 8efa16bdd5 remove warning 2016-12-11 13:48:55 +01:00
Greg Alexander 98044163ab Add 'k' (kill) command to gdb-server, which completely resets the connection. 2016-12-10 21:35:36 -05:00
Greg Alexander 0879af2edc don't return stale value from gdb-server "read memory" command if the
underlying transport fails, and return an error code if the gdb-server
"write memory" command fails
2016-12-10 14:01:59 -05:00
Georg von Zengen 7ab464527e flash: added easy way to reset the target (#505)
* flash: added easy way to reset the target

st-flash does now have a 'reset' command
makes it easy to reset the Target

* Doc: added man page entry for reset command of st-flash
2016-11-03 22:56:33 +01:00
Geoffrey Brown 97052483cf fixed formatting, description 2016-10-15 14:47:30 -04:00
Geoffrey Brown e3975598fa stm32l432 support 2016-10-15 14:33:41 -04:00
Dave Flogeras 4bf6cb387f Do not issue JTAG reset on stlink-v1 2016-09-21 11:44:38 -03:00
Jerry Jacobs 6f26487f83 Add --version commandline argument flag. Fixes #470 2016-09-18 11:17:25 +02:00
Jerry Jacobs 4209e4b924 cmake: Refactor into seperate files, fix project version detection when everything fails (travis) 2016-09-16 15:42:34 +02:00
Jerry Jacobs 3fd0f09978 Remove hacky st-term (which needed special undocumented firmware from https://github.com/nekromant/antares/tree/master/src/lib/stlinky ) as we now have arm semihosting with a well defined interface 2016-09-08 15:43:27 +02:00
Jerry Jacobs cc1cb00d73 Fix variable shadow warnings (brk, signal). Disable redundant-decl flag on OpenBSD 2016-09-08 17:07:09 +02:00
Christophe Levantis 1cffc453c5 Add memory map for stm32f401xe
Trying to load a elf image on a stm32f401xe can result in a problem
of flash write if a section does not start on a flash sector because
the memory map given to gdb was wrong.
2016-09-07 11:11:45 +01:00
Anatoli 6c80b8c6b6 add write ihex to RAM 2016-09-06 23:09:41 +02:00
Anatoli 7c99eb0503 re-desing of command line parsing for st-flash; unit-tests for it; implement read into ihex; 2016-09-06 22:56:54 +02:00
Anatoli c37848583b Implement parser of ihex 2016-09-06 00:04:59 +02:00
Andrea Mucignat 1118f8ed49 Fix memory map for STM32F
Also:
- fixed a typo in an if statement condition in make_memory_map
- cleaned up usage of '4096' in favor of const size_t sz = 4096.
2016-08-15 11:15:24 -07:00
Fabien Chouteau 3a1ab6e3e0 Improve ARM semi-hosting support
This patch adds the following operations:

 - SYS_OPEN
 - SYS_CLOSE
 - SYS_WRITE
 - SYS_READ
 - SYS_ERRNO
 - SYS_REMOVE
 - SYS_SEEK

The use of utility functions mem_read() and mem_write() add an
unnecessary memcpy() call. All buffer transfer could be done directly in
the sl->q_buf data instead of using a temporary transfer buffer.
However, given the relative slowness of target memory transfer, I don't
think that this has a big impact on performances
2016-08-12 15:59:46 +02:00
Fabien Chouteau d0910c66d7 Prototype of ARM semihosting support 2016-08-10 17:28:11 +02:00
Fabien Chouteau 1f3aa3c648 Unhexify GDB monitor commands (qRcmd)
It improves readability and will allow parsing of more complex monitor
commands.
2016-08-09 17:35:12 +02:00
Jerry Jacobs 8fadfa918f Merge pull request #430 from andyg24/stop_mode_fix
Do a JTAG reset prior to reading CPU information, fixes #428 and #451.
2016-08-07 14:38:36 +02:00
Jerry Jacobs 9aac78d184 Deprecate autotools 2016-08-03 20:02:50 +02:00
Jerome Lambourg 3de5a54727 Fix gdb and flash support for the STM32F769I-Disco board. 2016-07-19 10:46:40 +02:00
texane 96554d9b9c Merge pull request #442 from bitdump/bug-fix-stm32f030-erase-error
Fix an erase error in stm32f030 device.
2016-06-25 08:03:36 +02:00
Chris c61f160d69 Fix an erase error in stm32f030 device.
I run into flashing error with stm32f030. With some
debugging I find out that the mass erase bit was dropped
when flash programming bit already set on FLASH_CR.
This cause erase and write error with my stm32f030
board.

Mass erase never need the programming bit. Turn off the
programming bit make stlink flash stm32f030 successfully.
2016-06-25 13:50:12 +08:00
Dave Flogeras 471e7bbbd1 Fix a regression introduced in 71535104.
Since STLINK V1 cannot read voltage, and attempting to do so breaks the
USB communications, this patch will revert the behaviour to just blindly
doing 32-bit writes on these programmers.
2016-06-21 19:31:50 -03:00
texane 72fbf6a2c8 Fix zu missing on Windows toolchains. Use unsigned int casts instead. 2016-06-20 20:36:51 +02:00
Jerry Jacobs 5a06869797 Add flash loader core id and chipid for STM32F767ZI with nucleo-144 2016-06-18 19:53:31 +02:00
Jerry Jacobs dfeb5a4e6f flash_loader.c: Add STLINK_CHIPID_STM32_F7XXXX 2016-06-18 19:40:27 +02:00
Jerry Jacobs 3daa3f15cc Initial support for STM32F7x7x, for nucleo-144, STM32F767ZI issue #433 2016-06-18 09:41:32 +02:00
Jerry Jacobs 413790067e src/usb.c: Dont crash when libusb_open fails, check return value 2016-06-10 15:12:23 +02:00
andrey ac43cfdfef Do a JTAG reset prior to reading CPU information. This is needed
when a CPU is in deep sleep mode, and its debug interface is switched
off.
2016-06-07 09:21:14 -07:00
Greg Alexander 8924c51d9e Provide more detailed error messages when send_recv() fails. 2016-06-05 08:31:10 -04:00
texane 753dfab17d Merge pull request #424 from galexander1/novoltagef1
Don't read the target voltage on startup, because it crashes STM32F100.
2016-06-05 09:24:26 +02:00
Greg Alexander 3d438166ce Don't read the target voltage on startup, because it crashes STM32F100. 2016-06-04 15:50:33 -04:00
Jean-Marie Lemetayer 113f3e3507 Fix multiple warnings
- Replace 'typedef reg' by 'struct stlink_reg'
 - Prefix the 'sl' global variable with a 'g'
 - Rename 'j' -> 'k' and 'i' -> 'j' variables
 - Rename 'hex' variable into 'hextmp'
 - Fix unused parameter
 - Use a correct printf format for gsize
 - Use correct MAX macro
 - Use correct data casting
 - Do not use 'GTK_STOCK_*' anymore
 - Do not use 'gtk_tree_view_set_rules_hint'
 - Remove unused functions
 - Explicitly cast data type
 - Enable Werror
2016-06-02 17:41:15 +02:00
Jerry Jacobs 486cc10c70 Add forgotten tests/CMakeLists.txt 2016-05-21 00:28:14 +02:00
Jerry Jacobs 43cbf73380 Further Refactor stlink.h into correct places and files, create backend.h 2016-05-20 23:30:44 +02:00
Jerry Jacobs e2a4fb37d4 Move USB defines into usb.h, move chip register defines into new reg.h 2016-05-20 23:30:36 +02:00
Jerry Jacobs 48a8ac59e1 Move STLINK_DEBUG_* defines into enum, move flash_loader code into seperate header and c file 2016-05-20 20:03:57 +02:00
Jerry Jacobs 8da1467bb1 common.c: Add STLINK_CHIPID_STM32_F410 for correct flash loader selection 2016-05-20 17:51:27 +02:00
Jerry Jacobs 1507e34dd6 Merge pull request #419 from stm32-template/fix_warning
Fix const warning on struct stlink_chipid_params
2016-05-19 11:09:13 +02:00
Jean-Marie Lemetayer d83d7f7392 Fix const warning 2016-05-19 11:03:35 +02:00