But I just write getchar() in the demo's main_blinky() function without any 
other order, I just keep the original UART address configuration in demo and 
annotation other codes, however, the error still occurred. The program can 
enter the main_blinky() successfully but can't excute getchar().
 


??????
1353455...@qq.com



 




------------------ ???????? ------------------
??????: "Peter Maydell"<peter.mayd...@linaro.org&gt;; 
????????: 2025??4??28??(??????) ????8:40
??????: "??????"<1353455...@qq.com&gt;; 
????: "qemu-devel"<qemu-devel@nongnu.org&gt;; 
????: Re: Whether the qemu mps2-an385 model support getchar?












1353455...@qq.com&gt; wrote:
&gt;
&gt; When I use mps2-an385 model on qemu, I found that it seems not support 
getchar. I used the FreeRTOS official demo(mps2-an385-GCC-QEMU), then I tried 
to use UART&nbsp; to receive input strings from QEMU terminal, so I tried to 
use getchar() function. However, some errors occurred in QEMU as shown below:
&gt; qemu: fatal: Lockup: can't escalate 3 to HardFault (current priority -1)
&gt; Is it means there are something wrong in the emulated board? And how to 
solve the problem?

The UARTs on that board work fine. The error message means your
guest code took a fatal exception (i.e. it crashed). You should
start by debugging to find out why the crash happened, which
might or might not be related to the UARTs specifically.

thanks
-- PMM

Reply via email to