Wykres commitów

52 Commity (816730f4f7517611e5ff3a03067ae0a673fb72bd)

Autor SHA1 Wiadomość Data
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
Daniele Cattaneo 3387ca5b42 Do not crash when the STLink chip returns a voltage factor of zero. 2023-10-14 17:57:32 +02: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 101d77bf7e Formatting & style fixes. 2023-06-24 23:55:12 +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 fc990648c4 [refactoring] Clean-up for stlink-lib
- Ensure proper function declaration
- Checked & revised header includes
2023-06-09 12:55:25 +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 dbe13dedae [doc] Added header comments for lib modules
- common.c/.h
 - sg.c/.h
 - usb.c/.h
2023-06-07 23:12:00 +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
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
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
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
nightwalker-87 dc5388d94c Merge branch 'testing' into develop
- Moved chip-specific parameters into separate files (#1129)
- Aligned chip names & references
- General spelling & formatting fixes
- Set of fixes and improvements (#1154)

(Closes #237)
2021-07-16 15:01:13 +02:00
anton aa70b89b6e WRITEMEM_32BIT: removed checks limit 2021-06-23 22:06:16 +05:00
Gustavo ca896108ee fix for when the device list was not initialized 2021-06-15 20:45:19 +02:00
Gustavo 93db93a0ad fix for 'libusb_devices were leaked' when no stlink was found 2021-06-06 13:03:59 +02:00
anton 9acf539c70 Optimizing the half page write fallback 2021-05-26 23:04:39 +05:00
anton b93f8b2204 Added half page write fallback for stm32L0/L1 2021-05-24 23:10:26 +05: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 aa5dd2ccd2 Reworked connection under reset 2021-05-13 23:06:02 +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 b387c93ee0 Extended set of command line arguments
st-info: added --freq, --hot-plug and --connect-under-reset to probe
st-util: added --freq
2021-03-25 19:25:33 +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
anton dd877b1883 Fixing support of stlink v1 2021-03-14 21:09:40 +05:00
Oleksiy Slyshyk 1b29c6529d check format string for log messages 2021-02-20 20:26:39 +02:00
John Hall 4cf8b79099 Fixing build on clang. 2020-12-11 20:23:47 -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 aaaae8a61c Minor change didn't compile. 2020-12-01 13:05:19 -08:00
John Hall 4f762501c2 Using debug instead of write.
Fixing buffer semantics.
2020-12-01 12:08:29 -08:00
John Hall 3531e34636 Code cleanup. 2020-11-30 09:08:59 -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
John Hall 2900571f95 In progress. 2020-11-28 17:02:49 +00: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 0135a0ea16 Expand and simplify stlink V2 + support 2020-11-05 18:50:10 +05:00
Ant-ON b401eaff9a Improve soft reset with core halt 2020-11-05 16:57:30 +05:00
Ant-ON 922eba585b Optimized timeout of the chip reset function 2020-11-03 12:19:47 +05:00
Ant-ON a7ea06d7d9 Remove duplicate register definitions 2020-11-03 10:23:07 +05:00
anton 504858566b Improv MCU reseting 2020-11-01 20:42:21 +05:00
Alex Suykov 203d68544b Fix reg_offset handling in stlink_usb_read_all_regs 2020-09-09 23:49:15 +03:00
nightwalker-87 c1918c0ff6 Aligned coding style
- Added config for uncrustify style settings
- Applied changes to source files
- Moved some header files
2020-06-12 22:28:16 +02:00
nightwalker-87 97974649c3 Whitespace & code style cleanup 2020-06-06 00:13:15 +02:00