Wykres commitów

12 Commity (fd8d8e6139ed778003952eb71c0916ec9069f91e)

Autor SHA1 Wiadomość Data
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
anton 41bbbc2e96 flash_loader: fix check BUSY flag, code simplified 2021-03-19 20:44:16 +05:00
Chen Guokai 06a5d716b8 Remove all 'my' in tag name 2020-04-29 22:40:06 +08:00
xp 43085438f2 update 2020-04-24 16:39:59 +08:00
xp 44e2a4fdbd rewrite as clean room doc 2020-04-24 13:45:00 +08: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 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
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