-
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
Segmentation fault on STM32F103C8T6 #1163
Comments
@machadothi Can you try run the |
Sure! Here it is: $ /usr/local/bin/st-flash --debug write main.bin 0x8000000 |
Let me join the party with #1165 |
@machadothi This problem occurred after @rewolff move chip information to files. The problem may be solved by using stlink_chipid_get_params_old instead of stlink_chipid_get_params. |
@rewolff @machadothi "segmentation fault" is probably not the best way to handle an error condition? |
Of course! Segmentation fault is the system's way of saying "You screwed up badly and I can't proceed from this situation". So instead of just terminating the program, it at least tells you SOMETHING. Consider a big hall with (open) PO boxes. So you're doing a quest of some sorts. So your first assignment is go to box 123 and read the instructions. So box 123 has a note that says put this note in box 124 and proceed to box 12345. But when you walk to the end... you find that the boxes only go up to 9999. So that's what happened: the computer got told to put (or get) something in a box that doesn't exist, or to continue getting instructions from a box that doesn't exist. |
Please test again with the proposed fix in the linked PR. |
Hello everyone!
I'm getting a Segmentation Fault when I perform a st-flash command, running on Fedora 34.
I already tryed to install it by downloading the repository:
And also using 'dnf' command:
Error output:
$ /usr/local/bin/st-flash write main.bin 0x8000000
st-flash 1.7.0-77-ga52e1bc
make: *** [../../Makefile.incl:134: flash] Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: