Wykres commitów

51 Commity (develop)

Autor SHA1 Wiadomość Data
nightwalker-87 fd8d8e6139
Merge branch 'develop' into testing 2023-09-02 17:35:59 +02:00
nightwalker-87 7475ec7f30 General Project Update
- Updated CHANGELOG.md
- Updated README.md
- Minor fixes & updates in documentation.
2023-09-02 17:18:09 +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
nightwalker-87 823187216a st-flash: auto-reset after mass erase 2023-04-30 20:46:37 +02:00
anton 2b3a31609c Moved set the PG flag from loader to code 2021-04-25 12:25:15 +05:00
anton 817c8ad436 flash_loader: fixed setup PG flag in F0/VL flash loaders, code cleared 2021-04-04 13:34:36 +05:00
anton c0653f6595 flash_loader: improved handling errors 2021-04-04 13:28:51 +05:00
anton 7cfab876e7 flash_loader: fix typo in the stm32l4 loader 2021-04-04 13:28:02 +05:00
anton c677eb2f4d flash_loader: makefile simplification 2021-03-23 20:06:47 +05:00
anton 41bbbc2e96 flash_loader: fix check BUSY flag, code simplified 2021-03-19 20:44:16 +05: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 af765a2022 Minor fixes for flashloader files 2020-05-22 15:11:43 +02:00
Chen Guokai f8ef21cd13 Fix issue 958, move F0 flashloader nops to assembly 2020-05-18 11:59:02 +08:00
Chen Guokai 06a5d716b8 Remove all 'my' in tag name 2020-04-29 22:40:06 +08:00
Chen Guokai 6a768d36f5 Add a documentation about flashloaders and adjust clean room document version order 2020-04-27 14:41:01 +08:00
Chen Guokai 090c4d3e88 Fix size issues in stm32f4lv.s and stm32f7lv.s 2020-04-25 20:54:56 +08:00
xp a4fec73a27 update 2020-04-25 20:53:05 +08:00
xp 09b40ca7bc update 2020-04-25 20:39:22 +08:00
Chen Guokai c62a781480 Fix word count issues for stm32f4lv and stm32f7lv 2020-04-25 20:21:49 +08:00
xp 8b77d027d3 fix: stm32-lv r2(4) and copy(1) has different data unit size 2020-04-25 20:21:13 +08:00
Chen Guokai fd89381b06 Fix branch logic error in stm32f0.s 2020-04-25 19:53:46 +08:00
xp 9096984a83 fix stm32f0 loop condition 2020-04-25 19:52:51 +08:00
Chen Guokai 489a37e3c7 Document error fix 2020-04-25 18:13:08 +08:00
Chen Guokai 36bb77dd6f Cleanroom for flashloaders done 2020-04-25 15:25:27 +08:00
Chen Guokai 43ddace8f5 Merge branch 'develop' of https://github.com/hsupu/stlink into develop 2020-04-25 14:15:54 +08:00
xp 15e2e1d811 fix align 2020-04-25 14:08:58 +08:00
Chen Guokai e30dcb4aad Merge branch 'develop' of https://github.com/hsupu/stlink into develop 2020-04-24 17:22:52 +08:00
xp 8bbedab020 fix typo 2020-04-24 17:21:32 +08:00
Chen Guokai 11bb057da8 Fix merge conflicts for cleanroom 2020-04-24 17:06:42 +08:00
xp 8aaf95abf6 rewrite flashloaders as clean room doc 2020-04-24 16:59:47 +08:00
Chen Guokai dfac4481c4 Merge branch 'develop' of https://github.com/chenguokai/stlink into develop 2020-04-24 16:46:09 +08:00
xp 43085438f2 update 2020-04-24 16:39:59 +08:00
Chen Guokai f8a2927797 Merge branch 'develop' of https://github.com/hsupu/stlink into develop 2020-04-24 14:48:55 +08:00
xp 14518803dd bugfix 2020-04-24 14:31:52 +08:00
Chen Guokai eb93492a91 Merge branch 'develop' of https://github.com/hsupu/stlink into develop 2020-04-24 14:11:14 +08:00
xp 44e2a4fdbd rewrite as clean room doc 2020-04-24 13:45:00 +08:00
Chen Guokai abaa8f5782 Add cleanroom document --rebased 2020-04-21 09:50:50 +08:00
zulusw bc48e99b19 Fixing low-voltage flashing on STM32F7 parts. (#567)
* fixing low voltage flashing for STM32F7
* Refactoring duplicated code
2017-03-14 18:54:02 +01:00
Tom de Boer 75ed6cfb9f Formatted comments and stm32lx.s 2016-05-09 10:55:57 +02:00
Tom de Boer 26949364f7 Fixed the STM32L-problem according to @gluedig
See https://github.com/texane/stlink/issues/390#issuecomment-217382832
2016-05-08 21:35:08 +02:00
Tom de Boer f5d6cec4c7 Fix for broken STML0 and STML1
Commits 907383da8e and e43a737c3c were causing issues for people with STML0's and STML1's. This commit reverses the changes in these two commits.
2016-05-06 14:00:28 +02:00
Maxime Coquelin d0458ee756 stlink-common: Fix STM32L4 loader write count to reflect 64bits granularity
The stm32l4 loader expects a count of 32 bits words while its granularity is
really 64 bits.

This patch fixes this to simplify count calculation in run_flash_loader().

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:17:44 +01:00
Maxime Coquelin e43a737c3c stlink-common: Update STM32L0/1 loaders to return remaining count in r2
All the loaders returns remaining work count in r2, except stm32l0/1.
Make these loaders behaving as the others to simplify run_flash_loader() code.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:17:36 +01:00
Maxime Coquelin 907383da8e stlink-common: Update STM32L0 and STM32L1 loader ABI
This patch invert source and destination registers in the stm32l0 and stm32l1
loaders, so that it follows the same ABI as other stm32 loaders.

Doing that, the run_flash_loader() function can be simplified a little.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
2016-03-14 15:12:44 +01:00
Dave Vandervies 0419b8bec6 Flash loader for STM32L4 2015-08-01 10:01:42 -04:00
Andy Isaacson 71535104e4 STM32F4 8-bit support for 1.8v operation
Per ST doc DM00035129.pdf "DocID022063 Rev 5", the STM32F415xx data sheet,
table 40 on page 110 of the PDF, 32-bit program operation is only possible
above 2.7 Volts.

In order to support programming on devices running at lower voltages, this
commit adds an 8-bit programming mode and the necessary tests to enable it
when the reported voltage is below 2.7 Volts.
2015-06-09 17:53:55 -07:00
Jiří Netolický 44c645b7d7 Add support for STM32L0x.
First try to support new STM32L0x family. Tested
on NUCLEO-L053R8 development board
http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260001

Chid ID, read, erase and write flash works fine.
2014-08-01 21:28:22 +02:00
Michael Pratt 3b443dc1c8 Reindent all source files
The indentation of various st-link source files is highly inconsistent.
Reindent all source files to 4 space indentions for consistency.

I went with 4 space indentations, as it was the most common style.
2014-07-09 22:56:36 -07:00
Sean Simmons 94c7ac86dc * Improved support for STM32L152RE - flash/ram sizes, now correct, flash programming works.
* Cleaned up checking of FP_CTRL register in gdb-server.c
* Added source code for stm32lx.s flashloader - just for reference.
2014-03-08 11:21:16 -05:00
Pekka Nikander e8b15c0e78 Add support for STM32F0-Discovery 2012-10-05 15:34:36 +03:00