nightwalker-87
816730f4f7
[refactoring] Clean-up & bugfix for st-trace
2023-12-24 19:15:03 +01:00
nightwalker-87
e7f41b2965
Support for STLINK/v2 & /v3 max trace buffers
2023-12-24 12:08:08 +01:00
nightwalker-87
135a5472d9
Reverted commit ba335a47
...
"STM32F76xxx: Added flashing in dual bank mode"
2023-12-24 00:01:35 +01:00
nightwalker-87
ba335a47ab
STM32F76xxx: Added flashing in dual bank mode
...
(Closes #1174 )
2023-11-27 22:00:27 +01:00
Mirko
e122764f21
forgot to include this
2023-11-08 22:58:05 +00:00
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
755c20c08e
Replace data types with fixed width typedefs (C99)
...
- Unified variable type: size_t --> uint32_t
- Removed unnecessary explicit casts
- Minor formatting fixes
2023-06-10 20:07:19 +02:00
nightwalker-87
be2e7e3883
[refactoring] Clean-up for stlink-lib
...
- Ensure proper function declaration
- Moved some functions to related modules
- Checked & revised header includes
- Renamed "md5" to "lib_md5"
- New source file "md5"
2023-06-09 01:28:22 +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
nightwalker-87
b1c4de647c
Naming convention for header includes
2023-05-03 14:02:26 +02:00
nightwalker-87
ab286988b4
Corrected preprocessor header includes
2023-04-30 18:52:14 +02: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
nightwalker-87
d9e79fe295
Merge branch 'develop' into common-c-refactor
2022-01-28 22:07:34 +01: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
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
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
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
Antoine Faure
42790f3f16
st-flash erase addr size
2022-01-07 10:44:31 +13:00
Grzegorz Szymaszek
929af2b047
Add a constant for the valid flash types range
...
Add a STLINK_FLASH_TYPE_MAX constant that can be used to check if a
flash type (an integer) is in the range of valid enum stlink_flash_type
values.
2021-07-30 10:14:17 +02:00
anton
cab9fc4210
Improved command error messages
2021-05-22 23:40:36 +05:00
anton
03ad4a434d
Added checking the command execution status
2021-05-17 00:20:54 +05:00
anton
22fba0249f
Cleaned up code, made minor fixes
2021-05-15 22:32:57 +05: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
anton
4334ce48b2
flash_loader: added reset of IWDG
...
If IWDG is enabled by hardware, then IWDG cannot be disabled by software
2021-04-04 13:35:22 +05:00
anton
b0192478c8
Added disabling the DMA channels
2021-04-04 13:35:00 +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
John Hall
cbd2633e64
Fixing binary compatibility with the stlink structure.
2020-12-07 11:10:19 -08:00
John Hall
d5c63c3b11
Moving has_dual_bank into the flags field.
2020-12-07 11:06:59 -08:00
John Hall
d1a9fd85e0
Moved register definitions to common reg.h file.
2020-12-07 10:12:23 -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
nightwalker-87
2b54a11265
Merge branch 'develop' into st-trace
2020-12-05 13:13:45 +01: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
793088f438
Updating to use chip flags instead of multiple boolean values.
2020-12-01 10:25:55 -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
568b0d130a
Adding backend code to start/stop tracing and to read the incoming data.
2020-11-27 09:37:50 -08:00
Ant-ON
43019fcde9
Fix change SWD frequency of stlink v3
2020-11-05 19:34:22 +05:00
Ant-ON
ddd39354b5
Trying to use a soft reset before starting debugging
2020-11-03 14:49:19 +05:00
Ant-ON
a7ea06d7d9
Remove duplicate register definitions
2020-11-03 10:23:07 +05:00
Ant-ON
4d07eb363d
Split flash write function to optimize gdb flash loading
2020-11-02 21:52:13 +05:00
Timothy Lee
e8254501a1
Add ability to identify STM32H742/743/753
2020-10-18 22:33:57 +11:00