Wykres commitów

935 Commity (cde9cb147bb4d35d207aaa85b02043b6d5a2a524)

Autor SHA1 Wiadomość Data
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
texane c131b05b69 Merge pull request #369 from meisteg/stutil_reset
st-util: Fix for connecting to running devices
2016-02-01 17:02:29 +01:00
texane 2c7ee49b5f Merge pull request #368 from meisteg/l4_memory_map
Add memory map for STM32L4
2016-02-01 17:01:45 +01:00
texane def6fc457d Merge pull request #367 from meisteg/fix_every_other
Fix issue where "unknown chip id!" is seen every other time
2016-02-01 17:01:13 +01:00
Greg Meiste ea649eb6e7 st-util: Fix for connecting to running devices
Previously, even with the reset enabled, st-util would not connect
to a target if it was running. This change will reset the chip
when opening the connection, which allows st-util to connect
successfully.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2016-02-01 09:08:59 -06:00
Greg Meiste 2d8cb6be85 Add memory map for STM32L4
Signed-off-by: Greg Meiste <w30289@motorola.com>
2016-02-01 08:51:39 -06:00
Greg Meiste ff40ab6681 Fix issue where "unknown chip id!" is seen every other time
Previously when running the program, reading the chip version
would fail. Running the program a second time worked. This
sequence is repeated the next time st-flash/st-util is run.

Giving reset 10ms to complete before trying to read the chip
version resolves the issue.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2016-02-01 08:44:45 -06:00
texane 67b45433c0 Merge pull request #366 from meisteg/l4_voltage
Allow flashing of STM32L4 down to 1.71 V
2016-01-29 16:35:37 +01:00
Greg Meiste 433a0eb53a Allow flashing of STM32L4 down to 1.71 V
The STM32L4 specification specifies that VDD can be 1.71 - 3.6 V.

Signed-off-by: Greg Meiste <w30289@motorola.com>
2016-01-29 08:51:37 -06:00
texane 37ecabf765 Merge pull request #363 from gingold-adacore/cache
st-util: synchronize cache for stm32f7
2016-01-11 16:02:48 +01:00
Tristan Gingold 54c8d2ca8b st-util: synchronize cache for stm32f7
This patch handles the cache on the cortex-m7 stm32f7 cpu.
When gdb inserts a soft breakpoint (which is the default for
code in RAM), it replaces an instruction with a breakpoint
instruction.  But if the caches are enabled, the replacement
may be made only in the D-cache.  To reach the I-cache, the
D-cache must be flushed and the I-cache invalidated.

This implementation is coarse: it cleans the whole D-cache
and invalidate the whole I-cache.  It is possible to
track which cache lines have to be cleaned and invalidated.
2016-01-11 15:50:28 +01:00
texane d5fd6eda08 Merge pull request #360 from gingold-adacore/stm32f7-regs
stm32f7: also send features to gdb.
2015-12-17 12:38:21 +01:00
texane 8da6f7fcdd Merge pull request #359 from gingold-adacore/no-trailing-nul
Do not send a NUL at end of packets to gdb.
2015-12-17 12:37:50 +01:00
Tristan Gingold cce54ea2c7 stm32f7: also send features to gdb.
So that 'extra' registers (msp, psp, ...) are visible to user.
2015-12-17 11:06:39 +01:00
Tristan Gingold 177ef67b10 Do not send a NUL at end of packets to gdb.
GDB doesn't need it and see the NUL as a junk character
(visible with 'set debug remote 1').
2015-12-17 11:00:45 +01:00
texane 9267566fa9 Merge pull request #357 from jlbirccyn/patch-1
Added STM32L053R8
2015-12-15 17:18:25 +01:00
Jean-Luc Béchennec 3ae69fe659 Added STM32L053R8
Hello, checked this board with stink. It communicates without flaw with the board:

```
2015-12-15T14:47:03 INFO src/stlink-common.c: Loading device parameters....
2015-12-15T14:47:03 INFO src/stlink-common.c: Device connected is: L0x3 device, id 0x10086417
2015-12-15T14:47:03 INFO src/stlink-common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 128 bytes
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Chip ID is 00000417, Core ID is  0bc11477.
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Target voltage is 3264 mV.
2015-12-15T14:47:03 INFO gdbserver/gdb-server.c: Listening at *:4242...
```

When I launch GDB and connect to the server, I get :

```
2015-12-15T14:51:41 ERROR gdbserver/gdb-server.c: [FP_CTRL] = 0x00000041 expecting 0x00000261
2015-12-15T14:51:41 INFO gdbserver/gdb-server.c: GDB connected.
```

on the st-util side and :

```
Cannot access memory at address 0xffffffff
```

on the GDB side

Reading and writing to memory and registers works however I get 

```
Cannot access memory at address 0xffffffff
```

Each time I write to the memory or to a register
2015-12-15 15:12:55 +01:00
texane 881ed008da Merge pull request #354 from gvz/master
Added parameter to specify one stlink v2 of many
2015-12-07 18:29:58 +01:00
Georg von Zengen 06fd9c4b70 Added parameter to specify one stlink v2 of many
This adds a parameter to the function stlink_open_usb and to the binary
st-flash to specify one of multiple connected stlinks.
As the identifier the iSerial of the stlink is used.
If no serial is given the function and binary behave as before.
2015-12-07 17:44:52 +01:00
texane f290f65c74 Merge pull request #350 from cheshirekow/cmake_build
Cmake build
2015-11-20 17:53:56 +01:00
Josh Bialkowski 5dec329069 Merge branch 'master' into cmake_build 2015-11-20 08:09:12 -08:00
Josh Bialkowski 308730bbad fix MINGW test in cmake 2015-11-19 09:29:27 -08:00
texane 58985cb40f Merge pull request #349 from ibobalo/master
mingw compilation error (sleep) fixed
2015-11-19 11:00:20 +01:00
bob deb2089e24 mingw compilation error (sleep) fixed 2015-11-19 10:53:21 +02:00
texane 593fa0c117 Merge pull request #348 from cheshirekow/cmake_build
first stab at a cmake build
2015-11-17 17:32:39 +01:00
Josh Bialkowski d4d28e401f first stab at a cmake build 2015-11-16 16:50:08 -08:00
texane 276ce60b09 Merge pull request #347 from jauler/master
Implement simple non-blocking ring buffer for communication over stlink
2015-11-09 19:15:13 +01:00
Rytis Karpuska 323920a41e Implement simple non-blocking ring buffer for communication over stlink 2015-11-09 20:07:40 +02:00
texane 466e1e494e Merge pull request #345 from mcoquelin-stm32/stm32f469
Add support to STM32F469/STM32F479
2015-10-24 07:04:21 +02:00
Maxime Coquelin 92bbca73b0 Add support to STM32F469/STM32F479
STM32F469 is a STM32F429 MCU with Dual-QSPI NOR support and DSI screen
support.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2015-10-23 23:14:59 +02:00
lementec e37b65762d README, add working target 2015-10-12 08:07:59 +02:00
texane 148997c878 Merge pull request #341 from mlu/master
Breakpoint handling for Cortex M7
2015-10-03 17:20:35 +02:00
mlundinse 768fe88e6c Breakpoint handling for Cortex M7 2015-10-03 16:36:37 +02:00
texane aba9591b9a Merge pull request #339 from b1y1k/master
correct error message is given upon missing pkg-config package.
2015-09-03 10:45:36 +02:00
Efe Can İçöz a13aeeeff7 correct error message is given upon missing pkg-config package. fixes texane/stlink#338 2015-09-03 11:32:12 +03:00
texane 9dac6ce11a Merge pull request #336 from mlu/revert-328-master
Revert "Make _stlink_usb_reset use hardreset"
2015-08-21 15:46:05 +02:00
mlu 69feeaa600 Revert "Make _stlink_usb_reset use hardreset" 2015-08-21 15:44:34 +02:00
texane 2da33f84cd Merge pull request #330 from brunowonka/length_fix
segmentation fault length fix
2015-08-17 22:08:05 +02:00
texane 1a1f950027 Merge pull request #329 from dj3vande/gdbserver-segfault-fix
Fix segfault in gdb-server
2015-08-17 22:06:57 +02:00