nightwalker-87
8fad9be9d0
[refactoring] Clean-up for stlink-lib
...
- Moved declarations for read/write functions to read_write.h .
- Checked & revised header includes
- Changed some datatypes for write_buffer_to_sram() to avoid explicit
casting.
2023-06-25 15:45:33 +02:00
nightwalker-87
2c337615c9
[refactoring] Clean-up for stlink-flash & -info
...
- Ensure proper function declaration
- Checked & revised header includes
2023-06-11 14:29:23 +02:00
nightwalker-87
c8eaebc58e
Improvents for library documentation
...
- Renamed header file reg.h to register.h
- Added unified header comments for files
- [doc] flash_loader.h: // Static functions
2023-06-07 22:44:59 +02:00
nightwalker-87
5e85fd0639
Replace data types with fixed width typedefs (C99)
...
- Unified variable types (Closes #909 )
short --> int16_t
unsigned short --> uint16_t
int --> int32_t
unsigned int --> uint32_t
long --> int32_t
unsigned long --> uint32_t
long long --> int64_t
unsigned long long --> uint64_t
- Added missing header includes
2023-05-08 02:05:55 +02: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
nightwalker-87
b15f0d4d89
Merge branch 'develop' into doc
2023-01-15 01:11:43 +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
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
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
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
nightwalker-87
115f7c846a
Transition to new enum stm32_chipids
2022-01-09 23:53:30 +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
R.E. Wolff
7ee9fbcbd3
Added init to other programs
2021-04-28 18:52:43 +02:00
nightwalker-87
9c1315a732
Fixed GitHub Actions code scanning alerts
2021-04-16 00:10:20 +02:00
anton
6bd99d4b55
flash_loader: fixed interrupt masking
2021-04-06 22:03:52 +05:00
anton
ee43e3b357
Unification of the reset function
2021-04-06 21:13:54 +05:00
Tarek BOCHKATI
9ed3d46c24
fix for stlink old DFU serial number
...
omit the hla serial aka 'openocd serial'
Only one valid serial is used which matches the serial as displayed
in STM32CubeProgrammer and official ST tools.
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
2021-03-18 19:17:48 +01:00
nightwalker-87
ddac731929
Minor formatting fixes
2020-12-25 23:36:18 +01:00
Oleksiy Slyshyk
ffbecc4800
use memset for init struct
2020-12-19 15:33:03 +02:00
Oleksiy Slyshyk
0b7b1f3b03
fix msvc build
2020-12-19 14:41:26 +02:00
John Hall
4cf8b79099
Fixing build on clang.
2020-12-11 20:23:47 -08:00
John Hall
08a8474e3d
Removing unused variable warning.
2020-12-07 10:52:23 -08:00
John Hall
d1a9fd85e0
Moved register definitions to common reg.h file.
2020-12-07 10:12:23 -08:00
John Hall
dc9726cd06
Set abort routine wrong in windows. Found in code review.
2020-12-07 09:02:00 -08:00
John Hall
7db0477d8f
Adding windows signal handler type behavior.
2020-12-06 16:01:41 -08:00
John Hall
67bf3906ef
Fixing funcation naming convention.
2020-12-06 15:56:40 -08:00
John Hall
3e9e2bb38a
Adding back flag.
2020-12-06 11:01:02 -08:00
John Hall
373eee2cfe
Adding back has_dual_bank.
...
Replacing flags field with has_swo_tracing.
2020-12-05 10:25:14 -08:00
John Hall
305b7a4f2b
Inproving huristic to handle cases where there is lots of valid data coming in that is starving out the time trace ops.
2020-12-01 16:35:40 -08:00
John Hall
57f1bc7911
Making sure TPI async prescalar is within the available range.
...
Trying to recover from buffer overruns where we may land in the middle of trace output.
2020-12-01 16:28:10 -08:00
John Hall
a331da4df3
Improving diagnostics, especially for sw buffer overruns.
2020-12-01 15:54:40 -08:00
John Hall
ac104ebabe
Allowed configuring trace frequency.
2020-12-01 13:47:04 -08:00
John Hall
4f762501c2
Using debug instead of write.
...
Fixing buffer semantics.
2020-12-01 12:08:29 -08:00
John Hall
ce7f0a157c
One last cleanup before I feel this code is ready to submit for CR.
2020-12-01 10:56:40 -08:00
John Hall
660dee303c
Moved chip trace support into chipid where it belongs.
2020-12-01 10:41:40 -08:00
John Hall
c2356fabac
Cleaning up code before code review.
2020-12-01 09:22:07 -08:00
John Hall
b88b19287b
Flushing stdout after every newline. This is needed for things to run correctly in some scripts.
2020-11-30 22:41:47 -08:00
John Hall
2e4c81e2a3
Was using continouous triggering wrong.
2020-11-30 22:30:54 -08:00
John Hall
7ceb09dc65
Avoiding reading register from check method as this seems to halt the process.
2020-11-30 21:44:26 -08:00
John Hall
b8c459fd4b
Avoiding duplicating logs for unknown sources.
2020-11-30 21:27:29 -08:00
John Hall
f51f06535e
Added a check that looks at connection results after 10 seconds and displays a diagnositic message if it looks like we are not configured correctly.
2020-11-30 21:00:29 -08:00
John Hall
074f061b66
Verified sleep timer is about right.
2020-11-30 19:43:36 -08:00
John Hall
3188fb48d1
Updating to use register names to make code more readable.
2020-11-30 19:39:43 -08:00
John Hall
722224e5f2
Adding a force flag to ignore errors.
2020-11-30 11:10:59 -08:00
John Hall
acbb78d1f4
Checking that stlink supports tracing.
2020-11-30 10:51:28 -08:00
John Hall
0b3f39fb13
Checked that the trace port is configured. Added log messages to share the configuration and to tell the user what to do if it is not configured.
2020-11-30 10:21:19 -08:00
John Hall
3531e34636
Code cleanup.
2020-11-30 09:08:59 -08:00
John Hall
8793f3ceef
Tabs to spaces
2020-11-29 00:25:00 -08:00
John Hall
9c86d53341
Added a state machine to parse trace output.
...
Improved comments.
2020-11-28 23:47:29 -08:00
John Hall
737894cbe0
Got basic trace data transfer working. Still needs to decode the data stream.
2020-11-28 20:58:54 -08:00