Skip to content

Fixed "unkown chip id", piped output and st-util -v - #763

Merged
xor-gate merged 3 commits into
stlink-org:masterfrom
jicksaw:master
Jan 24, 2019
Merged

xor-gate merged 3 commits into
stlink-org:masterfrom
jicksaw:master

Conversation

@jicksaw

@jicksaw jicksaw commented Jan 21, 2019

Copy link
Copy Markdown
Contributor

A few small tweaks.

  • I had the problem described in STM32F4 Discovery - unknown chip id! 0xe0042000 #107, and noticed the official ST-Link Utility's "Hot Plug" mode would work when the SWD freq. was lowered from 4.0 MHz to 1.8 MHz. The utility changes frequency before resetting when using "Connect Under Reset", so I moved it before the reset here as well.
  • On Win32 redirecting streams makes them buffered, so without
    flushing there would be no output before exit, resulting in [st-util] Can not get piped output on Windows #665. BTW using setvbuf to force the streams into line buffered mode doesn't work on Win32.
  • Currently st-util's --verbose does nothing, which is quite counterintuitive. The output isn't pretty, but at least it's something.

On Win32 redirecting streams makes them buffered, therefore without
flushing there would be no output before exit. Stdout and stderr are
also often buffered differently, making them disordered.
@xor-gate xor-gate added this to the Next milestone Jan 24, 2019
@xor-gate

Copy link
Copy Markdown
Contributor

Thanks!

@xor-gate
xor-gate merged commit 30de1b3 into stlink-org:master Jan 24, 2019
@Nightwalker-87 Nightwalker-87 removed this from the General milestone Feb 21, 2020
@Nightwalker-87 Nightwalker-87 self-assigned this Feb 21, 2020
@Nightwalker-87 Nightwalker-87 added this to the v1.6.0 milestone Feb 21, 2020
@Nightwalker-87 Nightwalker-87 removed a link to an issue Mar 20, 2020
6 tasks done
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 23, 2020
@Nightwalker-87 Nightwalker-87 changed the title Fix "unkown chip id", piped output and st-util -v Fixed "unkown chip id", piped output and st-util -v Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[st-util] Can not get piped output on Windows

3 participants