nightwalker-87
82543df141
Merge pull request #921 from chenguokai/develop
...
Enhanced error log with file path for map_file()
2020-04-12 15:24:13 +02:00
Chen Guokai
067639ff8c
Enhance error log with file path for map_file()
2020-04-12 21:02:42 +08:00
nightwalker-87
f7565d0bb4
Merge pull request #920 from chenguokai/develop
...
Fixed broken build on 32-bit systems
2020-04-12 11:37:52 +02:00
Chen Guokai
2979df4048
Fix 32 bit build on develop branch
2020-04-12 11:01:57 +08:00
nightwalker-87
ecbbd6db7a
Merge pull request #917 from chenguokai/develop
...
Fixed st-flash write 0xff ignored issue
2020-04-11 14:29:18 +02:00
Chen Guokai
734bfdaa47
Remove .travis-lin-mingw.sh in travis.yml
2020-04-11 20:24:08 +08:00
Chen Guokai
11156bc66b
Add TODO tag in source code
2020-04-11 20:02:03 +08:00
Chen Guokai
12637a47f5
Indent with four spaces
2020-04-11 16:46:42 +08:00
Chen Guokai
e97eaa329a
Add man documentation about --opt
2020-04-11 14:06:38 +08:00
Chen Guokai
cc27e61e9d
Fix 0xFF optimization bug
2020-04-11 13:46:59 +08:00
Chen Guokai
7e4540aa7d
Fix code style alignment
2020-04-11 12:11:08 +08:00
nightwalker-87
99a8aaab25
General Project Update
...
- Updated CHANGELOG.md
- README.md: Edited note on licensing.
- Formatting in tutorial.md
Temporarily removed travis-lin-mingw script for clean travis builds.
2020-04-10 23:38:17 +02:00
nightwalker-87
bf39a19d39
Merge pull request #918 from grevaillot/to_merge/fixed_probe
...
Fixed st-info --probe mechanism
2020-04-10 18:46:46 +02:00
Guillaume Revaillot
cec61aaea3
stlink_open_usb: remove wrong comment, we do handle protocoll (?) v1 for stlinkv1
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
395eee53df
stlink_open_usb: fix serial lookup mecanism when a v1 device is connected.
...
serial match was not done for v1 device, resulting in attempting to open it systematically,
leading to some libusb device claim call failure.
Lookup device serial for all chips, compare it if needed, and continue.
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
512999da56
stlink_open_usb: use macros for stlink pid filtering
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
aff1df29ad
stlink_probe_usb_devs: return number of successfully opened devices, not number of probed devices.
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
6b03c7f9ed
usb.c: rework probe loop to _not_ free all stuff without closing if _one_ probe failed.
...
we return count and list of successfully probed devices, no need to free
everything if some libusb call of the last probe attempt failed.
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
8fba7ab9fe
usb.c: align probe code.
...
actually open all counted devices - the two vid check need to be aligned.
also now display if some st device has been skipped.
2020-04-10 17:33:57 +02:00
Guillaume Revaillot
90081dd1f3
usb.h: define some stlink usb pid macros, stop copypasting.
...
ease v1/v2/v2.1/v3 identification and supported devices filtering
2020-04-10 17:33:57 +02:00
Chen Guokai
12faa5332c
Fix memory overlap
2020-04-10 22:07:52 +08:00
nightwalker-87
38c8b8b499
Cleanup
...
- Whitespace fixes
- Removed old appveyor-mingw script
- travis-lin-mingw.sh -> .gitignore
2020-04-08 23:44:51 +02:00
nightwalker-87
abebc9a166
Merge pull request #913 from chenguokai/develop
...
Fix dead loop after an unexpected unplug
2020-04-08 16:56:23 +02:00
nightwalker-87
946b7f3b04
Merge pull request #912 from texane/ext_pkg_versions
...
ext_pkg_versions
2020-04-08 15:37:22 +02:00
nightwalker-87
6f941b22eb
Fixed compilation errors (Regression)
...
-> error: ‘O_BINARY’ undeclared
-> tabspaces in Makefile
2020-04-08 15:34:10 +02:00
nightwalker-87
c6753e3bdb
Fixed compilation errors (Regression)
...
-> error: ‘O_BINARY’ undeclared
-> tabspaces in Makefile
2020-04-08 15:29:01 +02:00
Chen Guokai
34c0a31204
Fix dead loop after an unexpected unplug
...
* Fix by adding error handler in gdb-server
* Enhance logs for functions with return values
2020-04-08 20:33:23 +08:00
nightwalker-87
d4977e2ee5
Merge pull request #911 from texane/legacy_issues
...
Legacy issues
2020-04-08 14:21:55 +02:00
nightwalker-87
ad06dace83
Removed old tested-boards list.
2020-04-08 14:10:01 +02:00
nightwalker-87
9f2cad2c97
Avoid re-define of O_BINARY on Windows
...
(Fixes #788 )
2020-04-08 12:45:10 +02:00
nightwalker-87
17511a6fed
Update for CHANGELOG.md
2020-04-08 01:58:59 +02:00
nightwalker-87
9748442200
Deprecated old appveyor-mingw script
2020-04-08 00:12:36 +02:00
nightwalker-87
59c5cfd7ec
[doc] macOS ST-Link-v1 detection
...
Added documentation on how to solve a failed detection of the ST-Link-v1
programmer in macOS v10.11 and later.
(Closes #574 , #587 )
2020-04-07 18:30:26 +02:00
nightwalker-87
af1570ffe9
Minor formatting fixes
2020-04-07 17:11:45 +02:00
nightwalker-87
23c071edea
Updated documentation
...
- Compiling manual
- Updated version support for macOS
2020-04-07 17:01:26 +02:00
nightwalker-87
a8c1f41f1b
Refactoring for libusb detection
2020-04-07 16:10:55 +02:00
nightwalker-87
be6aafddd1
Minor fixes
...
- Updated CentOS repo in README.md
- Whitespace fixes
2020-04-07 12:12:34 +02:00
nightwalker-87
5e3abc37cb
Merge pull request #910 from grevaillot/to_merge/stm32gx_work
...
STM32G0/G4 improvements
- Enable mass erase with a flash programming check
- Handle G4 Cat3 devices with configurable dual bank flash by using a helper
2020-04-06 23:57:36 +02:00
Guillaume Revaillot
4437314d33
enable mass erase for g0, worksforme
2020-04-06 18:42:46 +02:00
Guillaume Revaillot
98cd484854
common: add flash error check. use it for mass erase.
...
only implement it for g0/g4 for now, but this is most probably a must for
all chips.
2020-04-06 18:42:46 +02:00
Guillaume Revaillot
6a2bf1cbe2
stm32g4: allow mass erase.
2020-04-06 18:42:46 +02:00
Guillaume Revaillot
55ca316cd6
stm32g4: handle mass erase.
...
toggle proper MER bits, taking in account dual bank mode enabled or not.
2020-04-06 18:42:46 +02:00
Guillaume Revaillot
804c38ead8
stm32g4: read flash optr to get flash bank mode on cat3 devices.
...
g4 cat3 devices can be configured in two mode via option bytes:
- dual bank, 2x256kib, 2KiB pages.
- single bank, 1x512KiB, 4KiB pages.
in anycase, these have two banks, and need to be handled with more care.
-> read optr after loading flash params to patch page size.
-> in single bank mode, mass erase _must_ be triggered by applying
MER1 and MER2 bits. erasing half of the flash will lead to a pgserr.
2020-04-06 18:42:46 +02:00
Guillaume Revaillot
46bf0abf77
add dual bank flash configuration info to chipid database.
...
add a 'has_dual_bank' info to flash param, helping handling a couple of cases
- selecting over dual bank specific code path without handling multiple chip id all over the code.
- handling dual bank mode dynamic configuration
2020-04-06 18:42:46 +02:00
nightwalker-87
89fa73499b
Merge pull request #901 from grevaillot/to_merge/stm32g4_update
...
Update for STM32G471/473/474/483/484 devices
2020-04-06 15:45:10 +02:00
nightwalker-87
ed6fd3ad7a
Merge pull request #908 from chenguokai/master
...
Fixed int length issues on 32-bit platforms.
2020-04-06 13:40:52 +02:00
Chen Guokai
e9c8135675
Fix int length issues
2020-04-06 19:20:04 +08:00
nightwalker-87
7158df1de4
Update for CHANGELOG.md & minor fixes
2020-04-05 22:02:47 +02:00
nightwalker-87
41f8417eaa
Integrated module GNUInstallDirs.cmake
...
(Fixes #557 )
2020-04-05 18:12:39 +02:00
nightwalker-87
e7ed76bd12
Added cmake uninstall target
...
(Fixes #619 )
2020-04-05 18:01:49 +02:00