You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked in other issues and could not find anything equal to this:
Compiled from source-code and I can upload the code through stlink-gui. When uploading with stlink-gui the code appears to work perfectly fine on the hardware.
However, when using st-flash I get the following error:
$st-flash --opt --freq=4m write file.hex 0x8000000
st-flash 1.6.1-86-gf162a5d
2020-07-31T15:23:16 INFO common.c: L0x3: 8 KiB SRAM, 64 KiB flash in at least 128 byte pages.
file file.hex md5 checksum: 5adcb1cef8433736cf5a8cd8acbfd82, stlink checksum: 0x0061899c
2020-07-31T15:23:16 INFO common.c: Attempting to write 123012 (0x1e084) bytes to stm32 address: 134217728 (0x8000000)
2020-07-31T15:23:16 ERROR common.c: addr too high
stlink_fwrite_flash() == -1
The file I am using is the same on the UI and on command-line. Yes the file is larger than 64kB, however, how can I upload it through the UI and not through the command-line? Am I doing something wrong on the command-line? I have already tried some combinations on the command-line parameters (the one I posted is just the last one I ran).
On Fri, Jul 31, 2020 at 07:27:46AM -0700, p-rodrigues wrote:
When uploading with stlink-gui the code appears to work perfectly fine on the hardware.
However, when using st-flash I get an error.
Here someone who is new to st-link, I'm with st-link since #1007 `;-)`
I do read the issue as
How to translate a succesfull stlink-gui action
into stlink command line action?
I don't know, but I want to say
Thank you for sharing that stlink-gui has something, maybe "knowledge",
that makes succesfull flashing possible.
On Fri, Jul 31, 2020 at 07:27:46AM -0700, p-rodrigues wrote: When uploading with stlink-gui the code appears to work perfectly fine on the hardware. However, when using st-flash I get an error.
Here someone who is new to st-link, I'm with st-link since #1007;-) I do read the issue as How to translate a succesfull stlink-gui action into stlink command line action? I don't know, but I want to say
Thank you for sharing that stlink-gui has something, maybe "knowledge", that makes succesfull flashing possible.
Cheers Stappers
I cannot say you are wrong :). It's just that I do not know what else to do.
Nightwalker-87
changed the title
[STM32L051C8]: Can flash on command-line, can flash using GUI
STM32L051C8: Can flash on command-line, can flash using GUI
Aug 1, 2020
p-rodrigues
changed the title
STM32L051C8: Can flash on command-line, can flash using GUI
STM32L051C8: Can't flash on command-line, can flash using GUI
Aug 3, 2020
Hi,
I've looked in other issues and could not find anything equal to this:
Compiled from source-code and I can upload the code through stlink-gui. When uploading with stlink-gui the code appears to work perfectly fine on the hardware.
However, when using st-flash I get the following error:
$st-flash --opt --freq=4m write file.hex 0x8000000
st-flash 1.6.1-86-gf162a5d
2020-07-31T15:23:16 INFO common.c: L0x3: 8 KiB SRAM, 64 KiB flash in at least 128 byte pages.
file file.hex md5 checksum: 5adcb1cef8433736cf5a8cd8acbfd82, stlink checksum: 0x0061899c
2020-07-31T15:23:16 INFO common.c: Attempting to write 123012 (0x1e084) bytes to stm32 address: 134217728 (0x8000000)
2020-07-31T15:23:16 ERROR common.c: addr too high
stlink_fwrite_flash() == -1
The file I am using is the same on the UI and on command-line. Yes the file is larger than 64kB, however, how can I upload it through the UI and not through the command-line? Am I doing something wrong on the command-line? I have already tried some combinations on the command-line parameters (the one I posted is just the last one I ran).
Info:
The text was updated successfully, but these errors were encountered: