-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[STM32L4]: Can't write flash to L451 or L496 #1115
Comments
@lmpynix In some Lx issues, they wrote that erasing memory does not work correctly. Can you do a full erase in Windows by stlink utility and flash by ps The app says the NRST is not connected if a reset not occurs on a reset command. |
@lmpynix I debugged the L4 flash loader on G4 target. I fixed some problems. Can you try https://github.com/Ant-ON/stlink/tree/flash_loader_fix ? |
Ping @lmpynix |
Hi! I've hit the same issue on:
.. Ant-ON 's branch did fix the problem on this L433! |
@erikarn This is already a deprecated branch. I have modified the flash loading process and merged changes. Can you test develop branch (https://github.com/stlink-org/stlink/tree/develop)? |
hi! It didn't work! I already checked out and built develop.
So something else is missing!
…-adrian
On Tue, 13 Apr 2021 at 20:46, Anton ***@***.***> wrote:
@erikarn <https://github.com/erikarn> This is already a deprecated
branch. I have modified the flash loading process and merged changes. Can
you test develop branch (https://github.com/stlink-org/stlink/tree/develop
)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI2L3IGNRUN73LU37ZS2QTTIUFZNANCNFSM4Z3YHRIA>
.
|
@erikarn Does the flashing via |
i'll do it tomorrow; iirc it was stuck on the core constantly reporting
alive
… |
oh! you merged in changes last night! I just checked out cb551d5 and verified it works! thanks! |
Fixed by #1124. |
st-util
Commandline-Output:
(With GDB input of
load
when attached to the GDB server, with built ELF file selected)Output from
st-info --probe
:Expected/description:
Flash loads successfully.
I have been having trouble for a while trying to load flash on a custom L451-based board using an STLink v2 programmer detached from a Nucleo board. I saw today that come commits had been made to
develop
that could help, so I tried again with the latest commit, but it's still seemingly not able to write to flash. I happened to have a brand new, never been used NUCLEO-L496 board handy, and I was able to reproduce the issue on that board as well (command line output above is from the Nucleo, however it is pretty much identical to the custom L451 board's case). It is interesting that theNRST is not connected
warning occurs both on the custom board and on the Nucleo, when both have NRST connected and pulled up correctly.For reference, the custom board is able to be programmed and debugged perfectly fine using the same electrical interface with a Black Magic Probe, so it is unlikely that there's anything wrong with the chip or the application circuit. I have also heard from a co-worker that they see this same problem with an STM32L0 on a custom board, using a similar OS and programmer.
Reading the flash back using
stlink-gui
seems to indicate that the first few words of the flash are being written, but nothing else. After a full erase of the chip performed and verified by the official ST flash utility on Windows, then runningst-util
under Linux as above, the entire flash was blank except for the first two words.Interestingly, rolling back to v1.6.0 also has the same issues, when I distinctly remember being able to use
stlink
for this application before. If it helps, the packages my up-to-date Manjaro installation has forlibusb
arelibusb-1.0.24-2
andlibusb-compat 0.1.7-1
.Thank you for maintaining this awesome program!
The text was updated successfully, but these errors were encountered: