-
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
STM32F103C8T6: ERROR src/common.c: map_file()==-1 #650
Comments
I'm not sure why the mapping of the binary file to memory fails at your system. The line is located here: https://github.com/texane/stlink/blob/a2a707e4f75fd8aafce3fa6095dc34206c5bb801/src/common.c#L1164 |
not sure if your case same with mine. here is mine
|
@Nightwalker-87 I am not quite sure about what I need to do. Edit: the error raised by an empty/non-existing filename is expected, the only possible improvement would be printing out the file name at the error point and maybe presenting a hint like |
Can you look if there are any issues with filenames that can occur here due to a bug? As suggested in #879 one could also improve some error messages to be more human-readable. In the first place we should make sure that there is no bug present. The error should only be thrown if there really is an invalid filename e.g. as in the second case, which I would not consider a bug at all. Apart from that I feel there is nothing more we can do here currently... |
I checked the functions about filenames, no bugs found. The PR provides a more unified way of displaying errors for map_file. |
Error message has been improved for better understanding. Should there be a reproducible problem related to the used device, please feel free to submit a new ticket. |
I got an error during flash operation. I don't know what it is/means.
The compilation has no problem. Flashing another binary (a simple thing toggling a LED) is not problem either.
st-flash write STM32USASRT_IR_StdPeriph.bin 0x8000000
A as-detailed description possible of the problem with debug output when available.
Output:
Expected/description:
I expected to work as usual
The text was updated successfully, but these errors were encountered: