hydroconstructor
e5ff479d48
#1216 refactoring of common.c
...
File divided to some parts. Functions with "flash" in names extracted to common_flash.c, with "option" extracted to option.c etc.
Removed unnecessary headers.
Removed one single function which was used nowhere.
And so on.
Project built under Windows and seems to be working.
2022-01-20 12:54:14 +04:00
hydroconstructor
6b229537f6
Merge branch 'stlink-org:develop' into develop
2022-01-20 11:02:12 +04:00
nightwalker-87
80b05c547e
Updated MCU core-ids
2022-01-17 00:39:57 +01:00
nightwalker-87
a5d644160b
Fixed define names and removed old include.
2022-01-16 20:28:53 +01:00
nightwalker-87
e90ad8c26b
Merge branch 'develop' into chipid_cleanup
2022-01-16 19:57:36 +01:00
nightwalker-87
7509295222
[refactoring] Clean-up for headers & defines
...
- Removed additional extern "C" linkage specs
- Removed commented sections
- Moved out further device specific defines
- Renamed defines STM32_CHIP_ID_*
2022-01-16 19:31:22 +01:00
nightwalker-87
3be2c70a67
General Project Update
...
- [doc] Updated system requirements
-> cmake >= 3.10.2
-> libusb >= 1.0.21 (except for FreeBSD)
-> gtk >= 3.22.30
- Updated CHANGELOG.md
- Updated list of contributors
2022-01-16 18:10:01 +01:00
nightwalker-87
c854df5edd
Updated MCU core-ids
2022-01-15 01:58:42 +01:00
nightwalker-87
541ab17476
Merge pull request #1213 from antoinefaure/erase
...
Erase addr size / section of the flash memory with st-flash
2022-01-15 01:49:13 +01:00
Antoine Faure
74957efc9d
Factorize address checks
2022-01-14 16:14:17 +13:00
nightwalker-87
2c62079ed1
Removed stlink/v1 support for macOS 10.14
2022-01-14 00:17:44 +01:00
Antoine Faure
8667990506
Allow to completely erase a page when size is not aligned
2022-01-13 11:41:14 +13:00
Antoine Faure
a2a04dd1b7
Update log
2022-01-13 09:22:14 +13:00
Antoine Faure
77b3319fc9
Use stlink_erase_flash_section in stlink_write_flash
2022-01-13 09:12:39 +13:00
hydroconstructor
1e7d89fc13
Removing env. var. STLINK_DEVICE from docs
...
In #1210 from codebase was removed functionality to specify ST-LINK by environment variable. This still mentioned in documentation, so I updated it.
2022-01-10 20:24:29 +04:00
Antoine Faure
f277fdb677
Make sure address and size are each aligned with a page
2022-01-10 12:53:44 +13:00
Antoine Faure
8a1535e2d2
Check parameters validity
2022-01-10 12:53:44 +13:00
Antoine Faure
d3bf1453fd
Get each page size before erasing
2022-01-10 12:53:44 +13:00
nightwalker-87
115f7c846a
Transition to new enum stm32_chipids
2022-01-09 23:53:30 +01:00
nightwalker-87
9b07c1dc19
Transition to new enum stm32_flash_type
2022-01-09 22:55:56 +01:00
nightwalker-87
5cde863c03
Switch-over to new chip-files
2022-01-09 21:52:55 +01:00
nightwalker-87
14498bb3c0
Restructuring of STM32 definitions
...
- Moved enum stlink_stm32_chipids to stm32.h
- Moved additional MCU defines to stlink.h
- Minor formatting improvements
- Commented comparison for old/new chipid db
2022-01-09 16:39:54 +01:00
hydroconstructor
b519c63e50
#1214 issue fix
...
Error in file size comparizon.
Due to type casting, instead of compare file size with max. singed int value, it compares with -1. Then function returns with error message.
2022-01-09 19:02:22 +04:00
Antoine Faure
42790f3f16
st-flash erase addr size
2022-01-07 10:44:31 +13:00
hydroconstructor
4132973ddf
usb.c refactoring request: remove getenv("STLINK_DEVICE")
...
There is no enironment variable "STLINK_DEVICE" in user system, and program do not set it. So I removed all code which works with it.
2022-01-07 00:45:25 +04:00
nightwalker-87
f55dd8d08f
[refactoring] Clean-up for chipid files (L1, L4)
2022-01-06 21:24:29 +01:00
nightwalker-87
e62b9e1f2a
[refactoring] Clean-up & update for chipid files
...
- F0, F1, F2, F3, F4, F7
- G0, G4
- H7
- L0, L5, U5
- WB, WL
2022-01-06 19:30:49 +01:00
hydroconstructor
ab5c47b6ce
Update usb.c (correct typo)
...
There are 2 calls _stlink_usb_exit_dfu_mode In usb.c (at lines 1284 and 1293) and no single call _stlink_usb_exit_debug_mode. Apparently typo on line 1293
2022-01-06 20:19:01 +04:00
hydroconstructor
89f54e0884
Update usb.c
2022-01-05 13:51:47 +04:00
nightwalker-87
5c303b3165
Merge branch 'develop' into 'chipid_cleanup'
2022-01-02 22:54:07 +01:00
nightwalker-87
0d02a46a8f
[refactoring] Clean-up for chipid files
...
- Spelling fix in tutorial.md
- REN param description --> dev_type
- ADD param ref_manual_id
- CHNG stlink_chipid_params
- MV old chipids to chipid_db_old.h
- Updated chipid files (F1, F2, WB, WLE)
2022-01-02 22:51:30 +01:00
nightwalker-87
7cc1fdae6b
Merge pull request #1207 from Crest/freebsd
...
Included SSIZE_MAX from limits.h in src/common.c
2022-01-01 20:26:18 +01:00
nightwalker-87
2b106912c9
Added user review to README.md
2022-01-01 20:24:59 +01:00
Crest da Zoltral
60edcf811b
Include SSIZE_MAX from limits.h
...
The existing includes don't pull in limits.h on FreeBSD breaking
the build on FreeBSD.
2021-12-23 20:27:38 +01:00
nightwalker-87
cb0f91a4f9
Merge pull request #1202 from Crest/openbsd
...
Fixed compliation for OpenBSD 7.0
2021-12-01 12:17:53 +01:00
Jan Bramkamp
8dfebbe589
Define the MINIMUM_API_LEVEL for OpenBSD
...
Every platform has to declare the minimum libusb API level
required by libstlink on it.
2021-11-24 01:48:12 +01:00
Jan Bramkamp
f95aec7994
Teach cmake to find libusb-1.0 port/pkg on OpenBSD
...
On OpenBSD libusb is provided by the libusb1 port/package.
2021-11-24 01:45:24 +01:00
nightwalker-87
e97f438075
Merge pull request #1197 from c-grant/develop
...
Updated gdb-server.c to allow external memory access on STM32H73xx
2021-11-06 22:23:15 +01:00
c-grant
e94b5db1b4
Update gdb-server.c
2021-11-05 23:45:52 -04:00
c-grant
ce8e1c4942
Update gdb-server.c
2021-11-04 21:50:12 -04:00
nightwalker-87
beffed4879
Merge pull request #1188 from andysan/chipid_checks
...
Improved chipid checks and printouts
2021-09-16 22:34:52 +02:00
nightwalker-87
4d556ce150
Update src/stlink-lib/chipid.c
...
Co-authored-by: Grzegorz Szymaszek <gszymaszek@short.pl>
2021-09-16 00:57:54 +02:00
Andreas Sandberg
b29a740b15
Silence warning chipid files with STLINK_FLASH_TYPE_UNKNOWN
...
The chipid configuration parser currently emits a warning when it
encounters a file with the flash type set to
STLINK_FLASH_TYPE_UNKNOWN. In practice, this means that the warning
will always be printed since 'unknown_device.chip' uses this
value. Make STLINK_FLASH_TYPE_UNKNOWN a permitted value in the config
file parser.
2021-09-08 22:11:59 +01:00
Andreas Sandberg
c676779988
Fix incorrect chipid params comparison
...
The current chipid params comparison code is based on a simple
memcmp. This doesn't work since the structure contains a string
pointer. Replace it with a simple field-by-field comparison.
2021-09-08 22:10:25 +01:00
Andreas Sandberg
478cf82aed
Include flash_size_reg in chipid params dumps
2021-09-08 22:09:24 +01:00
nightwalker-87
deae7975e6
Merge pull request #1186 from pcnorden/patch-1
...
[doc] Corrected file path in tutorial
2021-09-08 19:50:04 +02:00
nightwalker-87
1c5446a91e
Merge pull request #1185 from andysan/stlink3_nomsd
...
Added support for STLINK-V3 devices with no MSD
2021-09-08 19:44:08 +02:00
nightwalker-87
32a80be93e
Merge pull request #1183 from slyshykO/msvc-ssize_max
...
Define 'SSIZE_MAX' if not defined
2021-09-08 19:41:53 +02:00
pcnorden
6471a60460
Changed broken link to new address of udev rules
...
Changed and checked that it should work with the new link.
Also changed the number of files to 4 since there are 4 udev rule files in the directory.
2021-09-08 17:20:58 +02:00
Andreas Sandberg
95ccd02207
Add support for V3 devices with no MSD
...
Add support for ST-Link V3 devices without MSD that identify using
USB PID 0x3754. This PID has been observed on a Nucleo board where MSD
was disabled.
2021-09-07 23:15:26 +01:00