Wykres commitów

1002 Commity (develop)

Autor SHA1 Wiadomość Data
nightwalker-87 7c2c953ff6 Unified chipid enum naming for L0 series 2023-04-30 19:21:17 +02:00
nightwalker-87 ab286988b4 Corrected preprocessor header includes 2023-04-30 18:52:14 +02:00
nightwalker-87 1775184084 General Project Update
- Updated CHANGELOG.md
- Updated README.md
- Merged flash loader source files
2023-04-30 14:31:50 +02:00
nightwalker-87 78b2893e5d
Merge pull request #1307 from IVOES/fix-inconsistent-null-check
Added null check for return value of stlink_chipid_get_params().
2023-04-29 23:15:54 +02:00
Mingjie Shen 8f97e62708 Check return values of sscanf()
Failing to check that a call to 'scanf' actually writes to an output
variable can lead to unexpected behavior at reading time.
2023-04-22 18:12:36 -04:00
Mingjie Shen 98902c271e Add null check for return value of stlink_chipid_get_params()
Pass a null pointer to "%s" is undefined behaviour.
2023-04-22 00:53:29 -04:00
Mingjie Shen 0a5cad7ee8 Fix unbounded write of sscanf
Format string "%s" that does not control the length of data
written may overflow.
2023-04-22 00:03:54 -04:00
nightwalker-87 1745bf5193 [doc] Human-readable flash_type in chip-id files
(Closes #1155)
2023-04-08 02:16:48 +02:00
nightwalker-87 1d301a5498 Fix for option byte read (Closes #1156) 2023-04-07 23:33:28 +02:00
nightwalker-87 982408e6ee Fixes regarding version support
- Updated version_support.md
- Updated version requirements for libusb
2023-04-05 21:33:49 +02:00
nightwalker-87 8af1dcb71e Minor changes & fixes
- Simplified listing of supported devices
- Corrected #define STM32L5_PWR_CR1_VOS
- Check the return code of stlink_read_debug32
- Fix for flash register reading on L5x2 devices
2023-04-04 23:32:51 +02:00
nightwalker-87 e93fa5798b Updated CHANGELOG.md 2023-03-19 18:46:22 +01:00
nightwalker-87 21633df34a Minor compilation fixes
- Corrected install path for gui executable
- Changed directory for chip-id files
2023-03-19 15:43:37 +01:00
nightwalker-87 186e38a0fa Minor fixes & additions
- [doc] Update on OS version support
- Minor fixes for G0-series from #1293
- [doc] Added core-IDs for WB/WL-series
- [doc] Correction for G0/L0-series core-IDs
- Set option_size to 128 B for G0-series (#1194)
2023-03-18 21:53:27 +01:00
nightwalker-87 2ff79959f4 Minor fixes & additions
- Corrected flash_pagesize for STM32U5
- Updated STM32 core IDs
- Added chip-id file for STM32H5 devices
2023-03-18 21:19:15 +01:00
nightwalker-87 f875a7f0c9
Merge branch 'develop' into f2023_1 2023-02-14 21:16:21 +01:00
nightwalker-87 c18293a82e Minor fixes
- Updated Standards-Version for deb-package
- Fix for strcmp(value, "L4") in chipid.c
- Minor formatting fixes
2023-02-13 23:59:11 +01:00
nightwalker-87 b15f0d4d89
Merge branch 'develop' into doc 2023-01-15 01:11:43 +01:00
nightwalker-87 750a92cdc4 Log message improvements for st-flash 2023-01-02 11:59:26 +01:00
John Hall 54e4bc5251 Updating windows signal handling to not terminate the application before cleanup. 2023-01-01 16:01:58 -08:00
nightwalker-87 b60a035404 Initial support for STM32 L5 & U5 devices
(References: #1005 #1096 #1247)
2023-01-01 13:32:14 +01:00
nightwalker-87 f025d756b7 Minor corrections regarding os support 2023-01-01 13:20:02 +01:00
nightwalker-87 dfff59d39f Added support for STM32L4Q5 (Closes #1224) 2022-12-31 14:49:39 +01:00
nightwalker-87 aee9a47e35 General fixes and improvements
- Bugfix: "Failed to parse flash type or unrecognized flash type"
(Closes #1240) (Closes #1242) (Closes #1290) (Closes #1291)
- Updated README.md on OS-support
- Updated version_support.md
- Removed remnants of macOS support in CMakeLists.txt
- Minor code formatting fixes
- Updated CHANGELOG.md
2022-12-30 18:01:06 +01:00
nightwalker-87 194e6e9c6b General project clean-up
- Removed orphaned old dev-documentation
- Rearranged src files belonging to stlink-lib
- Revised & sorted option byte source code
- Updated devices_boards.md
2022-12-28 22:21:47 +01:00
Marcus Lindemann 32fc9f11ef Fix resulting compilation error on Ubuntu 2022-12-06 21:41:07 +01:00
Marcus Lindemann 53e9252cc0 Resolve merge conflict for diverging branch.
Explicitely convert from goffset to gsize with prior overflow
check. Implicit conversion is forbidden by compiler settings.
2022-12-06 21:38:55 +01:00
Marcus Lindemann 33430783b3 [#1] fFix GUI compilation fail on OpenBSD i386
Explicitely convert from goffset to gsize with prior overflow
check. Implicit conversion is forbidden by compiler settings.
2022-12-04 18:11:51 +01:00
nightwalker-87 f93adb92f2 Fixes for project compilation
- Cleanup for CMakeLists.txt
- [doc] Added list of cmake path variables
- Fixed stlink-gui install path (Closes #1270) (Closes #1271)
- Replaced path variable for chips directory
2022-10-24 01:49:03 +02:00
nightwalker-87 2087711c23 General Project Update
- Updated CHANGELOG.md
- Updated README.md
- Removed support for macOS (Closes #1269)
2022-10-23 20:22:16 +02:00
nightwalker-87 3c258a14d7
Merge pull request #1266 from trabucayre/fix_l1_regs
Fixed flash, dbgmcu and rcc registers for STM32L1.
2022-08-26 22:29:15 +02:00
Gwenhael Goavec-Merou c94b74e56a stm32l1: fix flash, dbgmcu and rcc registers 2022-08-25 19:18:57 +02:00
Gwenhael Goavec-Merou 0e734a541b src/common_flash: fix flash regs addr for STM32L152RET6 2022-08-22 10:47:05 +02:00
nightwalker-87 254a525a36
Merge pull request #1252 from simplerobot/john-trace-clock-issues
[st-trace] clock issues
2022-07-14 23:15:46 +02:00
simon-wh 54e82342f9 Fix writing to 'BANK_2' in flash type F1_XL 2022-06-30 17:55:27 +01:00
John Hall f8d1603be4 Updating to allow frequency units for clock and trace flags.
Making sure trace frequency is not less than 1/5 of the system frequency.
Showing minimum and maximum available trace speed when out of range.
Making sure MCU is stopped after reset to avoid missing data.
Making sure variables are intiallized.
2022-06-08 13:48:13 -07:00
Lucas Sinn 8dfb7973e7 made chipfile buffer size bigger 2022-03-28 09:18:30 +02:00
Lucas Sinn 3b328b26bd adding additional check if .chip files contain empty lines 2022-03-16 09:31:19 +01:00
Lucas Sinn a99a626e69 moved dump_a_chip to debug output, minor code style fix 2022-03-14 12:48:47 +01:00
Lucas Sinn 564434297c readded get chipid parameters on print info 2022-03-14 12:47:23 +01:00
Lucas Sinn cb03d5c21d optimized processing of chipidfile
'moved chip dump to stdout instead of stderr'
'closing open fd after file is fully read'
'reduced file read buffer size'
2022-03-08 13:22:46 +01:00
Lucas Sinn a6939cb9d4 init chipids only when actually interacting with device 2022-03-08 11:22:01 +01:00
Alex Klimaj 77fff346aa Add writing and reading STM32WL option bytes 2022-02-16 12:34:37 -07:00
nightwalker-87 978462d048 Updated libusb to v1.0.25 (macOS + Windows) 2022-02-04 21:53:00 +01:00
nightwalker-87 0011064797 Rolled-back deletion of recent changes 2022-01-30 15:47:55 +01:00
nightwalker-87 a41dd17852 Merge branch 'develop' into chipid_cleanup-common-c-refactor 2022-01-30 15:10:00 +01:00
nightwalker-87 e2dcf074d5 Fixed defines (CHIPID + COREID) & duplicates 2022-01-29 19:33:19 +01:00
nightwalker-87 d98d3a50ed Minor formatting fixes & clean-up 2022-01-29 18:13:12 +01:00
nightwalker-87 5b320357a6 Minor formatting fixes & clean-up 2022-01-29 17:56:26 +01:00
nightwalker-87 d9e79fe295
Merge branch 'develop' into common-c-refactor 2022-01-28 22:07:34 +01:00
nightwalker-87 e5cc884c7f
Merge pull request #1216 from stlink-org/chipid_cleanup
[refactoring] General maintenance for code structure
2022-01-28 21:39:00 +01:00
hydroconstructor 618a03a5df common c refactor
Try to resolve conflicts with chipid_cleanup branch
2022-01-29 00:36:16 +04:00
hydroconstructor f6cfd1bfe3 user gszy comment
Comment was:
removing the MAX_FILE_SIZE ifdef/define/endif,
replacing the st.st_size > (off_t)SSIZE_MAX test with st.st_size > (intmax_t) SIZE_MAX,
perhaps removing the sizeof(st.st_size) != sizeof(size_t) test as well.
done here
2022-01-23 23:22:05 +04:00
nightwalker-87 3f5d9bd0f6 Bugfixes and minor additions
- Fixed wrong chip id for F42x_F43x boards.
- Added support note for STM32 clones.
- Minor formatting improvements.
- Updated libusb API_VERSION list.
2022-01-23 13:13:57 +01:00
nightwalker-87 da3d9e3f1e Formatting and whitespace clean-up 2022-01-21 21:31:54 +01:00
nightwalker-87 8d96e769f3 Updated device parametres
- Human-readable  FLASH_TYPE in .chip files
- Added enum for STM32_CORE_IDs
2022-01-20 23:19:10 +01:00
hydroconstructor 4ce20d07e0 stlink-org#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 13:46:42 +04:00
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 c854df5edd Updated MCU core-ids 2022-01-15 01:58:42 +01:00
Antoine Faure 74957efc9d Factorize address checks 2022-01-14 16:14:17 +13: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
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
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
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
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 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 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
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
Oleksiy Slyshyk 7c582b7526 define SSIZE_MAX if not defined 2021-09-01 07:55:26 +03:00
nightwalker-87 c8fc6561fe Bugfixes
- Corrected paths for chip-id files (Closes #1180)
- Fixed 32-bit build (Closes #985) (Closes #1175)
- Patch for GitHub Actions Workflow (Ubuntu)
2021-08-29 15:08:54 +02:00
Oleksiy Slyshyk 698b97bbdd fixes printf format formating 2021-08-15 12:30:09 +03:00
Oleksiy Slyshyk bef3321ea4 Fixes few warnings for msvc about type conversion with possible lost data. 2021-08-15 12:18:46 +03:00
Oleksiy Slyshyk 03153d083c removed redundant array 2021-08-14 10:57:13 +03:00
Oleksiy Slyshyk e5152c45c3 chipid.c: drop empty lines at end 2021-08-13 23:22:50 +03:00