stlink-org / stlink

Open source STM32 MCU programming toolset
BSD 3-Clause "New" or "Revised" License
4.43k stars 1.24k forks source link

Semihosting STM32F407 under Win8, gnu... #227

Closed mik00 closed 4 years ago

mik00 commented 10 years ago

Have YOU made semihosting work on the STM32F407? Please send me a: "Yes!", or a "No, I failed too"

I'm using a [b]PC (Win8) and the gnu toolchain[/b], [b]cross tools[/b], and the [b]STMF4xx example program[/b] that blinks an LED. I'm not sure I have everything set up correctly, but I can't find a definitive document describing the current configuration process.

I can compile, and even debug the semihosted example program, but it simply halts at the first trace statement. Other people have given up, so I don't want to dig into this unless there is evidence that it works.

[list][]Can you point me at the definitive configuration document? []What are the correct configuration settings? [*]What is the right ST-LINK firmware? I upgraded to V2.J19.S0 and it chokes somewhere during the flashing process. Downgrading to V2.[b]J15[/b].S0 worked OK. Any confirms on that? Has the protocol changed in J19?[/list]

If it can be made to work I'll write a guide document.

xor-gate commented 8 years ago

Semihosting is not supported by stlink project tools (currently). You have to use OpenOCD for this.

Nightwalker-87 commented 4 years ago

Support for ARM semihosting was added to st-util in Release v1.3.0.

mik00 commented 4 years ago

Not an issue for me any more thanks.

On Thu, Mar 19, 2020, 06:41 Nightwalker-87 notifications@github.com wrote:

@mik00 https://github.com/mik00: I am currently reviewing old leftovers. Is this resolved with Release v1.3.0? Please verify.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/texane/stlink/issues/227#issuecomment-601184558, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY4GZ3K6IBZVI6256HS6MDRIIOIHANCNFSM4AO4ZSVQ .

mik00 commented 4 years ago

Yes. Sorry, this was six years ago. I'm working on different hardware in a different IDE now.

On Thu, Mar 19, 2020 at 9:17 AM Nightwalker-87 notifications@github.com wrote:

So we need somebody else to test...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/texane/stlink/issues/227#issuecomment-601272200, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY4GZ4SSSDZYKUBARLYP7DRIJATFANCNFSM4AO4ZSVQ .