-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: st-flash terminates unexpectedly when trying to read the chip #1084
Comments
st-linkv2-clone firmware revision:
|
Upgraded the v2-clone firmware using ST's ST-Link utility to V2J37S7. Fault is still there. |
I couldn't reproduce the described issue in this environment:
Can somebody run the same procedure on a Windows system again? |
@Ant-ON As you were in touch with this scope: Is there any indication for a bug here? |
@Nightwalker-87 There may be some problems related with Windows. I work in Linux and have not noticed this behavior |
@slyshykO Can you try to reproduce it on Windows? |
Ok, will see
пт, 26 мар. 2021 г., 22:08 nightwalker-87 ***@***.***>:
… @slyshykO <https://github.com/slyshykO> Can you try to reproduce it on
Windows?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1084 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMAU4JBIR4JKOTHQJF5KOLTFTSS3ANCNFSM4VN77HQQ>
.
|
@Nightwalker-87 P.S. ST-LINK Firmware version: V2J30M19 |
Did you use the same command: |
>st-info --probe
Found 1 stlink programmers
version: V2J30S19
serial: 066AFF575152836687074835
flash: 65536 (pagesize: 1024)
sram: 20480
chipid: 0x0410
descr: F1xx Medium-density >st-flash --debug --reset --area=option read
st-flash 1.6.1-247-gcfff13c
2021-03-27T12:31:37 DEBUG common.c: *** looking up stlink version
2021-03-27T12:31:37 DEBUG common.c: st vid = 0x0483 (expect 0x0483)
2021-03-27T12:31:37 DEBUG common.c: stlink pid = 0x374b
2021-03-27T12:31:37 DEBUG common.c: stlink version = 0x2
2021-03-27T12:31:37 DEBUG common.c: jtag version = 0x1e
2021-03-27T12:31:37 DEBUG common.c: swim version = 0x13
2021-03-27T12:31:37 DEBUG common.c: stlink current mode: debug (jtag or swd)
2021-03-27T12:31:37 DEBUG usb.c: JTAG/SWD freq set to 0
2021-03-27T12:31:37 DEBUG common.c: *** set_swdclk ***
2021-03-27T12:31:37 DEBUG common.c: stlink current mode: debug (jtag or swd)
2021-03-27T12:31:37 DEBUG common.c: Loading device parameters....
2021-03-27T12:31:37 DEBUG common.c: *** stlink_core_id ***
2021-03-27T12:31:37 DEBUG common.c: core_id = 0x1ba01477
2021-03-27T12:31:37 DEBUG common.c: *** stlink_read_debug32 0x411fc231 at 0xe000ed00
2021-03-27T12:31:38 DEBUG common.c: *** stlink_read_debug32 0x20036410 at 0xe0042000
2021-03-27T12:31:38 DEBUG common.c: *** stlink_read_debug32 0xffff0040 at 0x1ffff7e0
2021-03-27T12:31:38 INFO common.c: F1xx Medium-density: 20 KiB SRAM, 64 KiB flash in at least 1 KiB pages.
2021-03-27T12:31:38 DEBUG common.c: stlink current mode: debug (jtag or swd)
2021-03-27T12:31:38 DEBUG common.c: stlink current mode: debug (jtag or swd)
2021-03-27T12:31:38 DEBUG common.c: *** stlink_jtag_reset ***
2021-03-27T12:31:38 DEBUG common.c: *** stlink_reset ***
2021-03-27T12:31:38 WARN usb.c: NRST is not connected
2021-03-27T12:31:38 DEBUG usb.c: Using reset through SYSRESETREQ
2021-03-27T12:31:38 DEBUG common.c: *** stlink_soft_reset ***
2021-03-27T12:31:38 DEBUG common.c: *** stlink_write_debug32 0xa05f0003 to 0xe000edf0
2021-03-27T12:31:38 DEBUG common.c: *** stlink_write_debug32 0x01000500 to 0xe000edfc
2021-03-27T12:31:38 DEBUG common.c: *** stlink_read_debug32 0x01030003 at 0xe000edf0
2021-03-27T12:31:38 DEBUG common.c: *** stlink_write_debug32 0x05fa0004 to 0xe000ed0c
2021-03-27T12:31:38 DEBUG common.c: *** stlink_read_debug32 0x03010001 at 0xe000edf0
2021-03-27T12:31:38 DEBUG common.c: *** stlink_read_debug32 0x01010001 at 0xe000edf0
2021-03-27T12:31:38 DEBUG common.c: *** stlink_write_debug32 0x0000001f to 0xe000ed30
2021-03-27T12:31:38 DEBUG common.c: *** stlink_force_debug_mode ***
2021-03-27T12:31:38 DEBUG common.c: *** stlink_status ***
2021-03-27T12:31:38 DEBUG usb.c: core status: 01030003
2021-03-27T12:31:38 DEBUG common.c: core status: halted
2021-03-27T12:31:38 DEBUG flash.c: @@@@ Read 0 (0) option bytes from 0
2021-03-27T12:31:38 ERROR common.c: Option bytes read is currently not supported for connected chip
could not read option bytes (-1)
2021-03-27T12:31:38 DEBUG common.c: *** stlink_exit_debug_mode ***
2021-03-27T12:31:38 DEBUG common.c: *** stlink_write_debug32 0xa05f0000 to 0xe000edf0
2021-03-27T12:31:38 DEBUG common.c: *** stlink_close *** |
Hi
The st-flash unexpectedly terminates when trying to read from the device in subject.
st-info runs without problem:
st-flash program returns with error:
ST-Link drivers were installed from latest stmcubprogrammer v2.5.0.
The cubeprogrammer doesn't recognize the st-link so it wasn't possible to establish connection.
To workaround the problem programmer was uninstalled and drivers were deleted, and ST's ST-Link utility was installed (and its drivers too) then.
Installed st-link utility v4.6.0.0, driver version - v5.1.2.0. Nothing changed on st-flash side.
Note that the st-link utility could read the chip without problem. Didn't test write yet.
Previous versions of st-link (older than 1.6.1) were not tried.
Regards
/A
The text was updated successfully, but these errors were encountered: