Wykres commitów

786 Commity (a6b2f93661822b33de22aa533f09319850e352fe)

Autor SHA1 Wiadomość Data
texane a6b2f93661 Fix issue #399: Some Nucleo devices (L476RG) do not return a valid serial 2016-04-24 09:25:51 +02:00
texane 6fe3a02c18 Merge pull request #398 from xor-gate/refactoring
Refactoring some code, merge st-probe and fixup #318 serial print
2016-04-16 08:05:28 +02:00
texane 17e3571a93 Merge pull request #397 from xor-gate/st-probe-libusb-fix
st-probe: Fix hang when user has no libusb access
2016-04-16 08:04:03 +02:00
Jerry Jacobs 0e22df918e stlink_open_usb: Fix issue where serial is not cached when serial is not compared in search 2016-04-15 23:35:42 +02:00
Jerry Jacobs db5f0297bf * Merge st-probe tool into st-info
* Fixup #318 serial print in stlink probe with trailing zeros
* Refactor stlink-usb.h with some doxygen-style comments
* Refactor some pieces of stlink_open_usb
2016-04-15 23:09:45 +02:00
Jerry Jacobs a86d51b469 Fix hang when user has no libusb access because of plugdev under e.g linux.
Add some better sanity checking when using libusb_open and cleanup accordingly.

Fixes hang (debian 8, amd64, libusb 1.0.19):
libusb: warning [add_to_flying_list] failed to arm first timerfd (errno 9)
libusb: warning [libusb_close] internal signalling write failed, closing anyway
2016-04-15 22:20:22 +02:00
texane 78430e718c Merge pull request #396 from xor-gate/cmake-fixes
Add -fPIC compiler flag, remove st-info from libstlink.a
2016-04-15 16:24:56 +02:00
Jerry Jacobs 2e1204175e Add -fPIC compiler flag, remove st-info from libstlink.a which is already specified by the st-info tool 2016-04-15 16:05:36 +02:00
texane a781594405 Merge pull request #395 from halt-hammerzeit/master
Styling
2016-04-08 09:06:30 +02:00
Nikolay 217e854010 driver README minor edits 2016-04-08 03:26:30 +03:00
Nikolay 438eafffd5 renaming the README file to README.md 2016-04-08 03:16:59 +03:00
Nikolay 7db660511e Beautify + El Capitan confirmation 2016-04-08 03:12:48 +03:00
texane af35370364 Merge pull request #393 from xor-gate/cmake-better-cflags
cmake: Extend cflags and add Debug build type to be debuggable with gdb
2016-04-07 13:58:39 +02:00
Jerry Jacobs d9814ffe9a Merge with master 2016-04-07 13:01:32 +02:00
texane 3cd9cbb88c Merge pull request #394 from xor-gate/st-probe-busy-segfault
st-probe: Fix segfault when programmer is already busy
2016-04-07 12:22:10 +02:00
texane 3ed1676e58 Merge pull request #392 from xor-gate/travis
travis: Initial continues integration build on linux and osx
2016-04-07 12:20:44 +02:00
Jerry Jacobs 1c32fc05b6 st-probe: Fix segfault when programmer is already busy and null pointers are in the list 2016-04-07 12:08:05 +02:00
Jerry Jacobs 32807fb950 cmake: Add -ggdb flag when CMAKE_BUILD_TYPE=Debug, add more usefull and stricter compiler flags when supported 2016-04-07 11:58:16 +02:00
Jerry Jacobs ca08bed617 travis: Initial continues integration build on linux and osx
* Fixup README to render HTML from Markdown
* Fixup CMakeLists.txt to have a lower working minimum version
* Add .travis.yml and .travis.sh for autobuild
2016-04-07 11:35:50 +02:00
texane 9c5c2a0803 Merge pull request #391 from xor-gate/st-probe
st-probe: Initial working stlink_probe_* API and CLI tool
2016-04-06 17:43:55 +02:00
Jerry Jacobs 89711265a5 st-probe: Initial working stlink_probe_* API and CLI tool 2016-04-06 14:58:51 +02:00
texane 532a26bdbe Merge pull request #389 from tobbad/master
Trace the read data in stlink_read_debug32 and not the address of the…
2016-04-02 18:52:07 +02:00
Tobias Badertscher b0251b9956 Trace the read data in stlink_read_debug32 and not the address of the variable. 2016-04-02 18:18:39 +02:00
texane f76dba7450 Merge pull request #388 from tobbad/master
Proper writing of page 0 of second bank for stm32l476xe.
2016-04-02 16:37:29 +02:00
Tobias Badertscher 85abb8c056 Proper writing of page 0 of second bank for stm32l476xe. 2016-04-02 15:19:27 +02:00
texane 04bed6788b Merge pull request #386 from l29ah/texane-master
avoid reading from NULL
2016-03-20 07:19:26 +01:00
Sergey Alirzaev b05f7008e4 avoid reading from NULL 2016-03-20 05:28:07 +03:00
texane 8a190733a2 fix: FLASH_F4_CR_LOCK 2016-03-17 19:27:14 +01:00
texane 03024048eb fix: chip_id now a pointer, dereference 2016-03-16 20:27:37 +01:00
fabien.lementec 1611f5ea86 fix: stlink_version return code 2016-03-16 11:33:57 +01:00
texane f157237112 Merge pull request #384 from mcoquelin-stm32/cleanups
Cleanups
2016-03-14 17:20:16 +01:00
Maxime Coquelin faa19b5280 stlink-common: Ensure flash type is properly declared in device params
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:17:44 +01:00
Maxime Coquelin d0458ee756 stlink-common: Fix STM32L4 loader write count to reflect 64bits granularity
The stm32l4 loader expects a count of 32 bits words while its granularity is
really 64 bits.

This patch fixes this to simplify count calculation in run_flash_loader().

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:17:44 +01:00
Maxime Coquelin e43a737c3c stlink-common: Update STM32L0/1 loaders to return remaining count in r2
All the loaders returns remaining work count in r2, except stm32l0/1.
Make these loaders behaving as the others to simplify run_flash_loader() code.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:17:36 +01:00
Maxime Coquelin 907383da8e stlink-common: Update STM32L0 and STM32L1 loader ABI
This patch invert source and destination registers in the stm32l0 and stm32l1
loaders, so that it follows the same ABI as other stm32 loaders.

Doing that, the run_flash_loader() function can be simplified a little.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin 5693181e6b stlink-common: Simplify run_flash_loader()
This patch simplifies run_flash_loader() function in preparation for error
propagation from backends.

Doing this, we have less call sites for stlink API.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin abcd47f421 stlink-common: Introduce type of flash controller enum
Having a type of flash information has some advantages:
 - Make the code easier to read
 - Make adding family derivatives easier (only add a new entry in header file)
 - Make the backends error propagation easier to implement (less places to fix)

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin a9f00bc5b7 st-flash: Improve error handling
Now that libusb errors are propagated up to stlink API, we can handle these
errors.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin 93e958f137 stlink-common: Make stlink API propagate backend errors
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin 64a48c704f Make the backends propagate errors
As the libusb returns errors, make the backends propagates them so that
callers can decide to continue or stop task execution.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin 89c3b1462b stlink_target_voltage: Check for libusb error
_stlink_usb_target_voltage already returns an error value.
If value return is positive, this is a voltage, if negative this is an error.
Check the return on callers side to inform there is an error in reading the
voltage, instead of notifying of a too low voltage.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin 5fcad7d2bf stlink_core_id: No need to return core_id value
This rework is done in order to prepare for propagating errors returned by
libusb.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Maxime Coquelin bd27213299 read_debug32: Use a pointer instead of returning the value
This rework is done in order to prepare for propagating errors returned by
libusb.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
texane adbb6d270c Merge pull request #383 from xor-gate/cmake-add-st-info
Add st-info to CMakeLists.txt
2016-03-11 22:33:06 +01:00
Jerry Jacobs 61b41b03aa Add st-info to CMakeLists.txt 2016-03-11 22:13:09 +01:00
texane 5df03b2270 be quicker about determining erased byte pattern when flashing, more readable code 2016-02-27 19:17:19 +01:00
texane 44375c9576 Merge pull request #377 from gtalusan/master
be quicker about determining erased byte pattern when flashing
2016-02-27 19:12:27 +01:00
George Talusan 60bd03a517 be quicker about determining erased byte pattern when flashing 2016-02-27 12:51:59 -05:00
texane ccb1fd0efb Merge pull request #376 from gtalusan/master
make st-flash clean up on sigint/term/segv, make gdb-server clean up on sigsegv.
2016-02-23 06:52:15 +01:00
George Talusan 09a8113277 make st-flash clean up on sigint/term/segv, make gdb-server clean up on sigsegv. 2016-02-22 20:07:43 -05:00