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
texane
c927b4343a
Merge pull request #375 from gtalusan/master
...
make usb backend status check work, remove some dead code
2016-02-22 18:43:35 +01:00
George Talusan
969fa1279b
make usb backend status check work, remove some dead code
2016-02-22 11:41:48 -05:00
texane
99ed475478
Merge pull request #374 from gtalusan/master
...
use libusb synchronous api
2016-02-19 18:33:24 +01:00
George Talusan
210858549f
use libusb synchronous api
2016-02-19 11:11:31 -05:00
texane
9f0adece18
Merge pull request #371 from gtalusan/master
...
remove empty byte truncation from stlink_fread
2016-02-19 07:12:11 +01:00
texane
37876a14df
Merge pull request #372 from gtalusan/gdb-bigread
...
clamp gdb memory reads to 0x1800
2016-02-19 07:10:00 +01:00
George Talusan
426cdd0866
clamp gdb memory reads to 0x1800
2016-02-19 00:04:44 -05:00
George Talusan
23c79078ac
remove empty byte truncation from stlink_fread
2016-02-18 22:56:27 -05:00
fabien.lementec
079a154f5f
Added STM32F051R8T6
2016-02-15 14:55:09 +01:00
texane
7a9a582dd8
Merge pull request #370 from brunowonka/STM32L4_flash_fix
...
Stm32 l4 flash fix
2016-02-03 23:45:52 +01:00
Bruno Dal Bo
c78e47f0c0
clean SR flags before programming CR
2016-02-03 13:10:54 -08:00
Bruno Dal Bo
094fe67773
fix on stm32l4 to clear flash mass erase flags on CR
2016-02-03 13:06:18 -08:00
fabien.lementec
c632f855ef
fix signed unsigned comparison
2016-02-01 17:02:55 +01:00