beckus / qemu_stm32

QEMU with an STM32 microcontroller implementation
http://beckus.github.io/qemu_stm32/
Other
524 stars 144 forks source link

semihosting & gdb #4

Open ilg-ul opened 9 years ago

ilg-ul commented 9 years ago

Hi Andre,

I did some tests with your STM32 version of QEMU and I'm impressed by the improvements, even SysTick seems functional :-)

However I have a problem, when GDB is connected to QEMU, the semihosting output is temporarily lost; after I disconnect GDB, the semihosting output resumes.

I know that this is not related to your added features, but in case you figure out how to fix it, I'd be happy to test it.

Regards,

Liviu

beckus commented 9 years ago

I am glad you like this project.  Yes, the SysTick works, although I cannot take credit for that part - it was already part of the core NVIC functionality in QEMU (although I did tweak it). Thanks for letting me know about this.  When I have a chance, I will try and take a look.  I have never used semihosting, so would be interested in trying it out.  Do you have a guide or tutorial that you could recommend?  Unfortunately I am not familiar with the GDB or semihosting code, but I imagine it is complex.