Skip to content
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

hid-flash segmentation fault #36

Closed
pabolojo opened this issue Jul 4, 2020 · 2 comments
Closed

hid-flash segmentation fault #36

pabolojo opened this issue Jul 4, 2020 · 2 comments

Comments

@pabolojo
Copy link

pabolojo commented Jul 4, 2020

I am trying to flash my STM32F103C8, I have already compiled my blink test sketch but when I try to flash the .bin I get a segmentation fault.

I execute it with this command:

./hid-flash ~/Desktop/test.bin ttyACM0

The output that I get is:

+-----------------------------------------------------------------------+
|         HID-Flash v2.2.1 - STM32 HID Bootloader Flash Tool            |
|     (c)      2018 - Bruno Freitas       http://www.brunofreitas.com   |
|     (c) 2018-2019 - Vassilis Serasidis  https://www.serasidis.gr      |
|   Customized for STM32duino ecosystem   https://www.stm32duino.com    |
+-----------------------------------------------------------------------+

> Trying to open the [ttyACM0]...
error, counldn't open [/dev/ttyACM0]
> Unable to open the [ttyACM0]
> Searching for [1209:BEBA] device...
#
> [1209:BEBA] device is found !
> Sending <reset pages> command...
Segmentation fault

After that the STM32's led starts to blink quickly, and I have to restart the STM32 to keep executing the sketch that is flashed in it.

I am using a Raspberry Pi 4 as host system.

@pabolojo
Copy link
Author

pabolojo commented Jul 4, 2020

After installing the udev rule it seems to work well!

@pabolojo pabolojo closed this as completed Jul 4, 2020
@jerkey
Copy link

jerkey commented Jul 21, 2023

this isssue is affected by this PR which hasn't been merged yet for some reason
#30

basically the segmentation fault gives no info, but with this fix, hid-flash will correctly inform you "Unable to open the [0x1209:0xBEBA] device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants