<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font face="Verdana, Arial, Helvetica, sans-serif">Hi:</font><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="white-space:pre">        </span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">I have a testcode, it will lead to uart print space forever.</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><br></span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">Demo code like this:</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">     </span>Init()</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">     </span>{</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">          </span>create a task;</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">             </span>start this task;</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">           </span><b>printf("%*\n");</b></span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">                while(1) { </span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">                  </span>sleep()</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">            </span>}</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">  </span>}</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><br></span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">This code lead to uart print space forever('SPACE' ascii is 0x20):</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><span style="white-space:pre">  </span>'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'</span><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;">'SPACE'......</span></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;"><span style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap;"><br></span></div><div style=""><font face="courier, courier new, monospace"><span style="font-size: 14px; white-space: pre-wrap;">zynq qemu backtrace:</span></font></div><div style=""><font face="courier, courier new, monospace"><span style="font-size: 14px; white-space: pre-wrap;"><div>(gdb) bt</div><div>#0  zynq_uart_write_polled (base=0x9000a8 <zynq_uart_instances+40>, c=32 ' ')</div><div>    at ../../../../../../../../kernel/c/src/lib/libbsp/arm/xilinx-zynq/../../../../../../bsps/arm/shared/serial/zynq-uart-polled.c:197</div><div>#1  0x008438b8 in zynq_debug_console_out (c=32 ' ')</div><div>    at ../../../../../../../../kernel/c/src/lib/libbsp/arm/xilinx-zynq/../../../../../../bsps/arm/xilinx-zynq/console/debug-console.c:41</div><div>#2  0x0080af54 in rtems_putc (c=32 ' ')</div><div>    at ../../../../../kernel/c/src/../../cpukit/libcsupport/src/rtems_putc.c:34</div><div>#3  0x00808a08 in _Console_simple_Write (iop=0x903dc0 <rtems_libio_iops+48>, buffer=0x90ea30,</div><div>    count=1024) at ../../../../../kernel/c/src/../../cpukit/libcsupport/src/consolesimple.c:52</div><div>#4  0x00845190 in write (fd=1, buffer=0x90ea30, count=1024)</div><div>    at ../../../../../kernel/c/src/../../cpukit/libcsupport/src/write.c:47</div><div>#5  0x00844b00 in _write_r (ptr=0x902790 <_RTEMS_tasks_Objects+704>, fd=1, buf=0x90ea30, nbytes=1024)</div><div>    at ../../../../../kernel/c/src/../../cpukit/libcsupport/src/write_r.c:42</div><div>#6  0x0083c2bc in __swrite (ptr=ptr@entry=0x902790 <_RTEMS_tasks_Objects+704>,</div><div>    cookie=0x904608 <__sf+128>, buf=buf@entry=0x90ea30 ' ' <repeats 200 times>..., n=n@entry=1024)</div><div>    at ../../../../../gcc-7.5.0/newlib/libc/stdio/stdio.c:94</div><div>#7  0x00840da4 in __sflush_r (ptr=ptr@entry=0x902790 <_RTEMS_tasks_Objects+704>,</div><div>    fp=fp@entry=0x904608 <__sf+128>) at ../../../../../gcc-7.5.0/newlib/libc/stdio/fflush.c:224</div><div>#8  0x00840eb8 in _fflush_r (ptr=ptr@entry=0x902790 <_RTEMS_tasks_Objects+704>,</div><div>    fp=fp@entry=0x904608 <__sf+128>) at ../../../../../gcc-7.5.0/newlib/libc/stdio/fflush.c:278</div><div>#9  0x00842490 in __sfvwrite_r (ptr=0x902790 <_RTEMS_tasks_Objects+704>, fp=0x904608 <__sf+128>,</div><div>    uio=0x907610) at ../../../../../gcc-7.5.0/newlib/libc/stdio/fvwrite.c:232</div><div>#10 0x00841e78 in __sprint_r (ptr=ptr@entry=0x902790 <_RTEMS_tasks_Objects+704>,</div><div>    fp=fp@entry=0x904608 <__sf+128>, uio=0x907610, uio@entry=0x907608)</div><div>    at ../../../../../gcc-7.5.0/newlib/libc/stdio/vfprintf.c:429</div><div>--Type <RET> for more, q to quit, c to continue without paging--</div><div>#11 0x00841e88 in __sprint_r (ptr=ptr@entry=0x902790 <_RTEMS_tasks_Objects+704>,</div><div>    fp=fp@entry=0x904608 <__sf+128>, uio=uio@entry=0x907608)</div><div>    at ../../../../../gcc-7.5.0/newlib/libc/stdio/vfprintf.c:405</div><div>#12 0x0083cce4 in _vfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=fmt0@entry=0x0, ap=...,</div><div>    ap@entry=...) at ../../../../../gcc-7.5.0/newlib/libc/stdio/vfprintf.c:1681</div><div>#13 0x0083c110 in printf (fmt=0x8459e8 "k<b><font color="#ff0000">%*\n</font></b>")</div><div>    at ../../../../../gcc-7.5.0/newlib/libc/stdio/printf.c:56</div><div>#14 0x00805834 in Init (argument=<optimized out>) at ../../testsuites/memoryareatest/init.c:66</div><div>#15 0x00822bdc in _Thread_Entry_adaptor_numeric (executing=0x9024d0 <_RTEMS_tasks_Objects>)</div><div>    at ../../../../../kernel/c/src/../../cpukit/score/src/threadentryadaptornumeric.c:25</div><div>#16 0x0081eec0 in _Thread_Handler ()</div><div>    at ../../../../../kernel/c/src/../../cpukit/score/src/threadhandler.c:139</div><div>#17 0x00838368 in _Thread_Start_multitasking ()</div><div>    at ../../../../../kernel/c/src/../../cpukit/score/src/threadstartmultitasking.c:64</div></span></font></div><div></div></font>