kopia lustrzana https://github.com/stlink-org/stlink
General Project Update
- Corrected identation in reg.h - Updated README.md - Updated CHANGELOG.md - Updated list of contributorspull/1072/head
rodzic
b47f083736
commit
fc9e7915fc
16
CHANGELOG.md
16
CHANGELOG.md
|
@ -8,7 +8,16 @@ Release date: (TBD)
|
|||
|
||||
Features:
|
||||
|
||||
* Added support for STM32H742/743/753 ([#671](https://github.com/stlink-org/stlink/pull/671), [#793](https://github.com/stlink-org/stlink/pull/793), [#823](https://github.com/stlink-org/stlink/pull/823), [#998](https://github.com/stlink-org/stlink/pull/998), [#1052](https://github.com/stlink-org/stlink/pull/1052))
|
||||
* Added preliminary support for STM32L5x2 ([#904](https://github.com/stlink-org/stlink/pull/904), [#999](https://github.com/stlink-org/stlink/pull/999))
|
||||
* Option bytes on the STM32F767 ZIT6 Nucleo-144 ([#968](https://github.com/stlink-org/stlink/pull/968), [#997](https://github.com/stlink-org/stlink/pull/997))
|
||||
* Use SetConsoleCtrlHandler for Windows ([#1021](https://github.com/stlink-org/stlink/pull/1021))
|
||||
* Increase STM32L0 option_size to 20 ([#1046](https://github.com/stlink-org/stlink/pull/1046))
|
||||
* st-util: Add specialized memory map for STM32H7 devices ([#1060](https://github.com/stlink-org/stlink/pull/1060))
|
||||
* Support for STM32F4 option bytes ([#1062](https://github.com/stlink-org/stlink/pull/1062))
|
||||
* Link for WIN32 & APPLE with stlink-static ([#1069](https://github.com/stlink-org/stlink/pull/1069))
|
||||
* Extended support for STM32H7 ([#1059](https://github.com/stlink-org/stlink/pull/1059), [#1063](https://github.com/stlink-org/stlink/pull/1063), [#1071](https://github.com/stlink-org/stlink/pull/1071))
|
||||
* ITM functionality for ST-Link V2 and STM32Fxx chipsets ([#136](https://github.com/stlink-org/stlink/pull/136), [#179](https://github.com/stlink-org/stlink/pull/179), [#815](https://github.com/stlink-org/stlink/pull/815), [#1072](https://github.com/stlink-org/stlink/pull/1072))
|
||||
|
||||
Updates & changes:
|
||||
|
||||
|
@ -16,6 +25,7 @@ Updates & changes:
|
|||
* [refactoring] General maintenance ([#864](https://github.com/stlink-org/stlink/pull/864), [#976](https://github.com/stlink-org/stlink/pull/976), [#978](https://github.com/stlink-org/stlink/pull/978))
|
||||
* Imported debian pkg-settings ([#986](https://github.com/stlink-org/stlink/pull/986))
|
||||
* Add support for FreeBSD's libusb reimplementation ([#992](https://github.com/stlink-org/stlink/pull/992), [#993](https://github.com/stlink-org/stlink/pull/993))
|
||||
* [doc] Added example for output of 'st-info --probe' ([#1007](https://github.com/stlink-org/stlink/pull/1007), [#1049](https://github.com/stlink-org/stlink/pull/1049))
|
||||
|
||||
Fixes:
|
||||
|
||||
|
@ -26,8 +36,10 @@ Fixes:
|
|||
* Fix for static linking of libssp ([#973](https://github.com/stlink-org/stlink/pull/973), [#974](https://github.com/stlink-org/stlink/pull/974))
|
||||
* Fixed connect under reset for st-flash and st-util ([#983](https://github.com/stlink-org/stlink/pull/983))
|
||||
* Fix for mmap() size_t overflow in st-flash ([#988](https://github.com/stlink-org/stlink/pull/988), [#989](https://github.com/stlink-org/stlink/pull/989))
|
||||
* [regression] stlink-gui installation issue on Ubuntu-18.04 ([#1006](https://github.com/stlink-org/stlink/pull/1006))
|
||||
* st-util: wrong register values passed to gdb (st-link v2) ([#1026](https://github.com/stlink-org/stlink/pull/1026), [#1027](https://github.com/stlink-org/stlink/pull/1027))
|
||||
* [regression] stlink-gui installation issue on Ubuntu-18.04 ([#1001](https://github.com/stlink-org/stlink/pull/1001), [#1004](https://github.com/stlink-org/stlink/pull/1004), [#1006](https://github.com/stlink-org/stlink/pull/1006))
|
||||
* st-util: wrong register values passed to gdb (st-link v2) ([#1002](https://github.com/stlink-org/stlink/pull/1002), [#1011](https://github.com/stlink-org/stlink/pull/1011), [#1026](https://github.com/stlink-org/stlink/pull/1026), [#1027](https://github.com/stlink-org/stlink/pull/1027))
|
||||
* [doc] Fixed wrong path for rules.d folder ([#1020](https://github.com/stlink-org/stlink/pull/1020))
|
||||
* Use vl flashloader for all STM32F1 series ([#1041](https://github.com/stlink-org/stlink/pull/1041), [#1044](https://github.com/stlink-org/stlink/pull/1044))
|
||||
|
||||
|
||||
v1.6.1
|
||||
|
|
19
README.md
19
README.md
|
@ -23,7 +23,7 @@ The stlink library and tools are licensed under the **[BSD-3 License](LICENSE.md
|
|||
STLink is an open source toolset to program and debug STM32 devices and boards manufactured by STMicroelectronics.
|
||||
It supports several so called STLINK programmer boards (and clones thereof) which use a microcontroller chip to translate commands from USB to JTAG/SWD. There are four generations available on the market which are _all_ supported by this toolset:
|
||||
|
||||
* **STLINK/v1** _(obsolete as of 21-11-2019, continued support by this toolset)_
|
||||
* **STLINK/v1** _[obsolete as of 21-11-2019, continued support by this toolset] *)_
|
||||
- transport layer: SCSI passthru commands over USB
|
||||
- stand-alone programmer and present on STM32VL Discovery boards
|
||||
* **STLINK/v2**
|
||||
|
@ -36,6 +36,8 @@ It supports several so called STLINK programmer boards (and clones thereof) whic
|
|||
- transport layer: raw USB commands
|
||||
- stand-alone programmer
|
||||
|
||||
_*)_ **Note: Support on macOS is limited to 10.13 - 10.15. Any later versions are no longer compatible with the STLINK/v1 due to technical reasons.**
|
||||
|
||||
On the user level there is no difference in handling or operation between these different revisions.
|
||||
|
||||
The STlink toolset includes:
|
||||
|
@ -112,18 +114,3 @@ When there is no executable available for your platform or you need the latest (
|
|||
* Please start new forks from the develop branch, as pull requests will go into this branch as well.
|
||||
|
||||
Please also refer to our [Contribution Guidelines](CONTRIBUTING.md).
|
||||
|
||||
|
||||
# Current state of the project
|
||||
## Known missing features
|
||||
|
||||
Some features are currently missing from the `stlink-org/stlink` toolset.
|
||||
Here we would appreciate any help and would love to welcome new contributors who want to get involved:
|
||||
|
||||
* Instrumentation Trace Macro (ITM) Cell ([#136](https://github.com/stlink-org/stlink/issues/136))
|
||||
* OTP & EEPROM area programming ([#202](https://github.com/stlink-org/stlink/issues/202), [#333](https://github.com/stlink-org/stlink/issues/333), [#686](https://github.com/stlink-org/stlink/issues/686))
|
||||
* Protection bits area reading ([#346](https://github.com/stlink-org/stlink/issues/346))
|
||||
* Writing external memory connected to an STM32 controller (e.g Quad SPI NOR flash) ([#412](https://github.com/stlink-org/stlink/issues/412))
|
||||
* MCU hotplug ([#449](https://github.com/stlink-org/stlink/issues/449))
|
||||
* Writing options bytes (region) ([#458](https://github.com/stlink-org/stlink/issues/458))
|
||||
* Enhanced support for STLINKv3 programmer ([#820](https://github.com/stlink-org/stlink/issues/820))
|
||||
|
|
|
@ -7,6 +7,7 @@ Andrea Mucignat
|
|||
Andrew Andrianov [necromant]
|
||||
Andrey Yurovsky
|
||||
Andy Isaacson
|
||||
Anton [Ant-ON]
|
||||
Áron Radics
|
||||
A. Sheaff
|
||||
Björn Hauffe
|
||||
|
@ -35,7 +36,7 @@ Denis Osterland
|
|||
Dmitry Bravikov [bravikov]
|
||||
Efe Can İçöz
|
||||
Ethan Zonca
|
||||
Fabien Chouteau
|
||||
Fabien Chouteau [Fabien-Chouteau]
|
||||
Florian Hars
|
||||
Friedrich Beckmann
|
||||
Gabriel Górski [Glaeqen]
|
||||
|
@ -63,6 +64,7 @@ Jim Paris
|
|||
Jiří Netolický
|
||||
Jerry Nosky [jnosky]
|
||||
Jochen Wilhelmy [Jochen0x90h]
|
||||
Joel Bodenmann [Tectu]
|
||||
Johannes Taelman
|
||||
Jonas Danielsson
|
||||
Jonas Norling
|
||||
|
@ -71,7 +73,6 @@ Karl Palsson [karlp]
|
|||
Kevlar Harness
|
||||
Kyle Manna
|
||||
Lari Lehtomäki
|
||||
Lutz Freitag [nerdmaennchen]
|
||||
Martin Nowak
|
||||
Matteo Collina
|
||||
Max Chen
|
||||
|
@ -80,7 +81,6 @@ Maxime Vincent
|
|||
Michael Pratt [prattmic]
|
||||
Michael Sparmann
|
||||
Mike Szczys
|
||||
Miklós Márton [martonmiklos]
|
||||
Magnus Lundin [mlu]
|
||||
mux <freelancer.c@gmail.com>
|
||||
Ned Konz
|
||||
|
@ -111,7 +111,7 @@ Simon Wright
|
|||
Stany Marcel
|
||||
Stefan Misik
|
||||
Sven Wegener
|
||||
Joel Bodenmann [Tectu]
|
||||
Timothy Lee [timothytylee]
|
||||
Tuomo Kaikkonen
|
||||
Theodore A. Roth
|
||||
Thomas Gärtner
|
||||
|
|
|
@ -50,7 +50,7 @@ Tested boards [incl. STLink programmers]:
|
|||
| 0x418 | STM32F105xx/107xx | x8 xB xC | | | | | F105<br />F107 |
|
||||
| 0x420 | Medium density value | x8 xB | F100 | | | | |
|
||||
| 0x428 | High density Value | xC xD xE | F100 | | | | |
|
||||
| 0x430 | XL-Density | xF XG | | F101 | | F103 | |
|
||||
| 0x430 | XL-Density | xF xG | | F101 | | F103 | |
|
||||
|
||||
Tested boards [incl. STLink programmers]:
|
||||
* STM32VL-Discovery (STM32F100RBT6) with STLink-v1 [v1, v2]
|
||||
|
|
|
@ -1,61 +1,61 @@
|
|||
#ifndef STLINK_REG_H_
|
||||
#define STLINK_REG_H_
|
||||
|
||||
#define STLINK_REG_CM3_CPUID 0xE000ED00
|
||||
#define STLINK_REG_CM3_CPUID 0xE000ED00
|
||||
|
||||
#define STLINK_REG_CM3_FP_CTRL 0xE0002000
|
||||
#define STLINK_REG_CM3_FP_COMPn(n) (0xE0002008 + n*4)
|
||||
#define STLINK_REG_CM7_FP_LAR 0xE0000FB0
|
||||
#define STLINK_REG_CM3_FP_CTRL 0xE0002000
|
||||
#define STLINK_REG_CM3_FP_COMPn(n) (0xE0002008 + n*4)
|
||||
#define STLINK_REG_CM7_FP_LAR 0xE0000FB0
|
||||
#define STLINK_REG_CM7_FP_LAR_KEY 0xC5ACCE55
|
||||
|
||||
#define STLINK_REG_CM3_DEMCR 0xE000EDFC
|
||||
#define STLINK_REG_CM3_DEMCR_TRCENA (1 << 24)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_HARDERR (1 << 10)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_BUSERR (1 << 8)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_CORERESET (1 << 0)
|
||||
#define STLINK_REG_CM3_DWT_COMPn(n) (0xE0001020 + n*16)
|
||||
#define STLINK_REG_CM3_DWT_MASKn(n) (0xE0001024 + n*16)
|
||||
#define STLINK_REG_CM3_DWT_FUNn(n) (0xE0001028 + n*16)
|
||||
#define STLINK_REG_CM3_DEMCR 0xE000EDFC
|
||||
#define STLINK_REG_CM3_DEMCR_TRCENA (1 << 24)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_HARDERR (1 << 10)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_BUSERR (1 << 8)
|
||||
#define STLINK_REG_CM3_DEMCR_VC_CORERESET (1 << 0)
|
||||
#define STLINK_REG_CM3_DWT_COMPn(n) (0xE0001020 + n*16)
|
||||
#define STLINK_REG_CM3_DWT_MASKn(n) (0xE0001024 + n*16)
|
||||
#define STLINK_REG_CM3_DWT_FUNn(n) (0xE0001028 + n*16)
|
||||
|
||||
/* Cortex™-M3 Technical Reference Manual */
|
||||
/* Debug Halting Control and Status Register */
|
||||
#define STLINK_REG_DFSR 0xE000ED30
|
||||
#define STLINK_REG_DFSR_HALT (1 << 0)
|
||||
#define STLINK_REG_DFSR_BKPT (1 << 1)
|
||||
#define STLINK_REG_DFSR_VCATCH (1 << 3)
|
||||
#define STLINK_REG_DFSR_EXTERNAL (1 << 4)
|
||||
#define STLINK_REG_DFSR_CLEAR 0x0000001F
|
||||
#define STLINK_REG_DHCSR 0xe000edf0
|
||||
#define STLINK_REG_DHCSR_DBGKEY (0xA05F << 16)
|
||||
#define STLINK_REG_DHCSR_C_DEBUGEN (1 << 0)
|
||||
#define STLINK_REG_DHCSR_C_HALT (1 << 1)
|
||||
#define STLINK_REG_DHCSR_C_STEP (1 << 2)
|
||||
#define STLINK_REG_DHCSR_C_MASKINTS (1 << 3)
|
||||
#define STLINK_REG_DHCSR_S_REGRDY (1 << 16)
|
||||
#define STLINK_REG_DHCSR_S_HALT (1 << 17)
|
||||
#define STLINK_REG_DHCSR_S_SLEEP (1 << 18)
|
||||
#define STLINK_REG_DHCSR_S_LOCKUP (1 << 19)
|
||||
#define STLINK_REG_DHCSR_S_RETIRE_ST (1 << 24)
|
||||
#define STLINK_REG_DHCSR_S_RESET_ST (1 << 25)
|
||||
#define STLINK_REG_DCRSR 0xe000edf4
|
||||
#define STLINK_REG_DCRDR 0xe000edf8
|
||||
#define STLINK_REG_DFSR 0xE000ED30
|
||||
#define STLINK_REG_DFSR_HALT (1 << 0)
|
||||
#define STLINK_REG_DFSR_BKPT (1 << 1)
|
||||
#define STLINK_REG_DFSR_VCATCH (1 << 3)
|
||||
#define STLINK_REG_DFSR_EXTERNAL (1 << 4)
|
||||
#define STLINK_REG_DFSR_CLEAR 0x0000001F
|
||||
#define STLINK_REG_DHCSR 0xe000edf0
|
||||
#define STLINK_REG_DHCSR_DBGKEY (0xA05F << 16)
|
||||
#define STLINK_REG_DHCSR_C_DEBUGEN (1 << 0)
|
||||
#define STLINK_REG_DHCSR_C_HALT (1 << 1)
|
||||
#define STLINK_REG_DHCSR_C_STEP (1 << 2)
|
||||
#define STLINK_REG_DHCSR_C_MASKINTS (1 << 3)
|
||||
#define STLINK_REG_DHCSR_S_REGRDY (1 << 16)
|
||||
#define STLINK_REG_DHCSR_S_HALT (1 << 17)
|
||||
#define STLINK_REG_DHCSR_S_SLEEP (1 << 18)
|
||||
#define STLINK_REG_DHCSR_S_LOCKUP (1 << 19)
|
||||
#define STLINK_REG_DHCSR_S_RETIRE_ST (1 << 24)
|
||||
#define STLINK_REG_DHCSR_S_RESET_ST (1 << 25)
|
||||
#define STLINK_REG_DCRSR 0xe000edf4
|
||||
#define STLINK_REG_DCRDR 0xe000edf8
|
||||
|
||||
/* Application Interrupt and Reset Control Register */
|
||||
#define STLINK_REG_AIRCR 0xe000ed0c
|
||||
#define STLINK_REG_AIRCR_VECTKEY 0x05fa0000
|
||||
#define STLINK_REG_AIRCR_SYSRESETREQ 0x00000004
|
||||
#define STLINK_REG_AIRCR_VECTRESET 0x00000001
|
||||
#define STLINK_REG_AIRCR 0xe000ed0c
|
||||
#define STLINK_REG_AIRCR_VECTKEY 0x05fa0000
|
||||
#define STLINK_REG_AIRCR_SYSRESETREQ 0x00000004
|
||||
#define STLINK_REG_AIRCR_VECTRESET 0x00000001
|
||||
|
||||
/* ARM Cortex-M7 Processor Technical Reference Manual */
|
||||
/* Cache Control and Status Register */
|
||||
#define STLINK_REG_CM7_CTR 0xE000ED7C
|
||||
#define STLINK_REG_CM7_CLIDR 0xE000ED78
|
||||
#define STLINK_REG_CM7_CCR 0xE000ED14
|
||||
#define STLINK_REG_CM7_CCR_DC (1 << 16)
|
||||
#define STLINK_REG_CM7_CCR_IC (1 << 17)
|
||||
#define STLINK_REG_CM7_CSSELR 0xE000ED84
|
||||
#define STLINK_REG_CM7_DCCSW 0xE000EF6C
|
||||
#define STLINK_REG_CM7_ICIALLU 0xE000EF50
|
||||
#define STLINK_REG_CM7_CCSIDR 0xE000ED80
|
||||
#define STLINK_REG_CM7_CTR 0xE000ED7C
|
||||
#define STLINK_REG_CM7_CLIDR 0xE000ED78
|
||||
#define STLINK_REG_CM7_CCR 0xE000ED14
|
||||
#define STLINK_REG_CM7_CCR_DC (1 << 16)
|
||||
#define STLINK_REG_CM7_CCR_IC (1 << 17)
|
||||
#define STLINK_REG_CM7_CSSELR 0xE000ED84
|
||||
#define STLINK_REG_CM7_DCCSW 0xE000EF6C
|
||||
#define STLINK_REG_CM7_ICIALLU 0xE000EF50
|
||||
#define STLINK_REG_CM7_CCSIDR 0xE000ED80
|
||||
|
||||
#endif // STLINK_REG_H_
|
||||
|
|
Ładowanie…
Reference in New Issue