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

[reset] st-flash reset can be a hardware reset? #533

Closed
6 tasks done
feathertw opened this issue Dec 27, 2016 · 14 comments · Fixed by #1107
Closed
6 tasks done

[reset] st-flash reset can be a hardware reset? #533

feathertw opened this issue Dec 27, 2016 · 14 comments · Fixed by #1107

Comments

@feathertw
Copy link

feathertw commented Dec 27, 2016

NOTICE: The issue may be closed without notice when not enough information is provided!

Thank you for giving feedback to the stlink project. Take some time to fill out
check boxes with a X in the following items so developers and other people can try to
to find out what is going on. And add/remove what is appropriate to your problem.

When submitting a feature request, try to reuse the list and add/remove what is appropriate.
Place a X between the brackets [X] to mark the list item.

  • Programmer/board type: e.g Stlink/v1, Stlink/v2, Stlink/v2-onboard
  • Programmer firmware version: e.g STSW-LINK007 2.27.15
  • Operating system: e.g Linux, Mac OS X, Windows (with specific version)
  • Stlink tools version and/or git commit hash: e.g v1.1.0/git-c722056
  • Stlink commandline tool name: e.g st-info, st-flash, st-util
  • Target chip (and optional board): e.g STM32F402VG (STM32Fxxx Discovery)

A as-detailed description possible of the problem with debug output when available.


I found the command "st-flash reset" can send a reset info to a stm32 chip
but it's not whole system reset,
for example:
If one led is on, but after "st-flash reset", it will still on but I think it should off after boot whole system.

I think it's because "st-flash reset" is "core reset", not "system reset" in st windows stlink tool,
so it will operate arm cpu to reset, the peripheral will not reset,

hope it will be more option let user can do hardware reset =)


Output:

OUTPUT/ERROR of the commandline tool(s)

Expected/description:
short description of the expected value

Thank you,
The stlink project maintainers

@xor-gate xor-gate added this to the Unplanned (Contributions Welcome) milestone Dec 27, 2016
@xor-gate
Copy link
Member

Thats a good question, there indeed two different resets. There are some other issues related to this. I'm not sure how we can fix this.

@xor-gate
Copy link
Member

I have just merged a possible fix from PR #534. Could you test latest master?

@feathertw
Copy link
Author

feathertw commented Jan 1, 2017 via email

@xor-gate xor-gate modified the milestones: v1.3.0, Unplanned (Contributions Welcome) Jan 1, 2017
@xor-gate
Copy link
Member

xor-gate commented Jan 1, 2017

Thanks for reporting back!
Kind regards,

@xor-gate xor-gate closed this as completed Jan 1, 2017
@feathertw
Copy link
Author

feathertw commented Jan 9, 2017 via email

@xor-gate
Copy link
Member

xor-gate commented Jan 9, 2017

Hi @feathertw could you open a new issue and note the system reset register write instead of asserting the reset line? As system reset command is unrelated to hardware reset. You replied to this issue by email and the image is not visible because you need to edit the issue at github itself.

Thanks!

@rewolff
Copy link
Contributor

rewolff commented Mar 17, 2020

Hi Nightwalker,
I've run into this "semi-hardware reset" through SWD issue myself. Do you remember another issue related to this from me? I'm pretty sure I have reported it, but just like here it might be hidden as a comment to another issue.
Anyway. I'll try to test the ASAP, which worst case is 2 weeks from now (by which time I'll have forgotten).....

@Nightwalker-87
Copy link
Member

It reads, as if this has been fixed in PR #534 already.
@rewolff: You didn't use v1.3.0, did you?

@rewolff
Copy link
Contributor

rewolff commented Mar 22, 2020

No. On my current system with the "build system change" between 1.2.0 and 1.3.0 something was introduced that causes the build to fail on my system. This was only fixed between 1.5.0 and 1.6.0 .

So I can't test 1.3.0 to 1.5.0 for you. Sorry.

@Nightwalker-87
Copy link
Member

@rewolff: That's ok, don't bother about it too much. Your feedback is helpful as well.
I think we may have false friends here looking at the link to the PR. I'll dereference this.

@Nightwalker-87
Copy link
Member

Closed by #1107.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Mar 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants