Wykres commitów

1002 Commity (develop)

Autor SHA1 Wiadomość Data
nightwalker-87 0145baeb2e Fixed memory alignment for STM32L5/U5/H5 chips
(Closes #1362)
2024-01-20 13:00:52 +01:00
nightwalker-87 8c581c3eec Updated CHANGELOG.md 2023-12-25 14:40:10 +01:00
nightwalker-87 816730f4f7 [refactoring] Clean-up & bugfix for st-trace 2023-12-24 19:15:03 +01:00
nightwalker-87 45c31e9169 Added interface for spdlog (optional) 2023-12-24 12:26:01 +01:00
nightwalker-87 e7f41b2965 Support for STLINK/v2 & /v3 max trace buffers 2023-12-24 12:08:08 +01:00
nightwalker-87 5613f281c5 Fixed compilation error. 2023-12-24 00:46:56 +01:00
nightwalker-87 a60c24cbc0 General Project Update
- [doc] Updated system requirements
- Updated CHANGELOG.md
- Updated list of contributors
2023-12-24 00:34:29 +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 8f2b289f20 Info on HW breakpoints for external bus
- [doc] Updated tutorial.md (Closes #1219)
- Moved memory maps into separate file.
2023-11-27 23:41:27 +01:00
nightwalker-87 ba335a47ab STM32F76xxx: Added flashing in dual bank mode
(Closes #1174)
2023-11-27 22:00:27 +01:00
nightwalker-87 3efa7932fb Fixed memory allocation for stlink-gui
(Closes #1356)
2023-11-24 20:22:50 +01:00
nightwalker-87 7dcb1302d8 Fixes for STM32H7 & STM32G0B1 devices
- Fixed flash lock for STM32H7 dual bank devices
- Fixed flash erase issue on STM32G0B1 (Closes #1321)
2023-11-24 18:21:31 +01:00
nightwalker-87 ed558c9ac7
Merge branch 'develop' into develop 2023-11-23 20:12:57 +01:00
nightwalker-87 e212349460
Merge pull request #1354 from rcubee/c0
Added support for STM32C0x1.
2023-11-23 20:10:31 +01:00
Mirko Matonti 033007fd27 pr adjustment 2023-11-23 17:46:09 +00:00
Marcelo Barros de Almeida e286f243ef Fixing support for U5 chips (original U5x5.chip was not handling all U5 chips ) 2023-11-14 00:27:19 -03:00
rcubee eb083ae753 removed redundant lines 2023-11-11 17:40:28 +01:00
rcubee 99a2be4d28 initial commit 2023-11-11 17:27:05 +01:00
Mirko 3cb15d7da2 final 2023-11-08 15:14:19 +00:00
Mirko b1d99a2fc2 cleaning ident 2023-11-08 15:04:10 +00:00
Mirko 2d21188cdc first commit 2023-11-08 14:51:19 +00: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 40fbdb4112
Merge pull request #1333 from fliiiix/bugfix/printf-format
Fix printf format to print 0 correctly
2023-09-16 12:35:24 +02:00
nightwalker-87 a0c0216108 Updated behaviour on Reset
Fixes an issue where early breakpoints did not trigger.
(Closes #1198) (Closes #1246) (Closes #1319)
2023-09-14 11:35:35 +02:00
fliiiix 23d52b92ae Prefix all CDB bytes with 0x, including zeros 2023-09-04 18:48:41 +02:00
nightwalker-87 fd8d8e6139
Merge branch 'develop' into testing 2023-09-02 17:35:59 +02:00
nightwalker-87 f3fcaf2553
Merge pull request #1330 from andars/fix-some-stm32l0-flashing-issues
Fixed some flashing issues on STM32L0.
2023-09-01 22:50:35 +02:00
nightwalker-87 99925c687b
Merge pull request #1327 from ArmoredPony/develop
Fixed unknown option -u in st-util.
2023-09-01 22:47:58 +02:00
andrew 1861b8dc9f Fix stm32lx flash loader on STM32L0
STM32L0 chips use loader_code_stm32lx, but this flash loader is built
for armv7-m and uses instructions that are unsupported on STM32L0 (which
have Cortex M0+ cores implementing armv6-m).

In particular, loader_code_stm32lx uses variants of add-immediate that
do not update the condition flags ( `add r0, r0, #4` ). These are 32bit
instructions in armv7-m and are not available in armv6-m.

Enable loader_code_stm32lx to run on both armv6-m and armv7-m by
building for armv6-m, which requires changing the `add` instructions to
`adds` instructions that do update condition flags (which is ok because
the subs updates the condition flags again before the branch).
2023-08-27 13:34:00 -07:00
andrew 2e6cf7d806 Fix use of uninitialized flash_loader_t in stm32l1_write_half_pages
stm32l1_write_half_pages uses a local flash_loader_t that is never
initialized.

This results in stlink_flash_loader_run using uninitialized values for
fl->buf_addr and fl->loader_addr when copying the buffer
and initializing the source register and PC before running the core to
execute the flashloader.

Pass the flash_loader_t from stlink_flashloader_write through to
stm32l1_write_half_pages and use that one instead of an uninitialized
local structure.
2023-08-27 13:33:57 -07:00
ArmoredPony 270efb3535 fixed unknown option -u 2023-08-16 18:05:37 +04:00
Martin Mares 4b69bdd3e9 CMake: Avoid hard-wired /usr/local/share
Instead of defining own CMAKE_INSTALL_SHAREDIR, use existing
CMAKE_INSTALL_FULL_DATADIR.

This way, CMAKE_INSTALL_PREFIX is respected.
2023-08-15 12:45:30 +02:00
nightwalker-87 2f27e8ec98 Fixed chip recovery after reset
(Closes #1260)
2023-06-27 08:24:09 +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 041517bd4a Fixed flashing on STM32G0/G4 dual bank devices
(Closes #1310)
2023-06-25 15:31:13 +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 5d3f3ec7f4 Set flash_type for STM32H5 devices 2023-06-10 21:37:01 +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 efc5c3713d Fixed flash-write/verify error
(Closes #1303)
2023-06-09 14:51:57 +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 92ad99fe35 Minor fixes & additions
- G49x_G4Ax & WLEx: Added dualbank support
- G49x_G4Ax: Added option byte support
- Minor formatting improvements
- Replaced leftovers for non-fixed length types
2023-06-07 22:01:56 +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 5621d541d9 Resorted #defines in stm32flash.h 2023-05-03 13:55:19 +02:00
nightwalker-87 800c8616fb Unified #define names for STM32 devices 2023-04-30 22:32:59 +02:00
nightwalker-87 823187216a st-flash: auto-reset after mass erase 2023-04-30 20:46:37 +02:00