ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-20T05:26:30+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=447 2015-05-20T05:26:30+08:00 2015-05-20T05:26:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=447&p=1788#p1788 <![CDATA[Re: Weird (debug) ouptut on UART1?]]> Rgds,
Frenk

Statistics: Posted by FrenkR — Wed May 20, 2015 5:26 am


]]>
2015-05-18T10:53:31+08:00 2015-05-18T10:53:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=447&p=1717#p1717 <![CDATA[Re: Weird (debug) ouptut on UART1?]]>
FrenkR wrote:
Hi,
with latest SDK(1.0.1), after reboot I get following chars from debug output(UART1).
uart settings are:

Code:

PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_U1TXD_BK);
uart_init(BIT_RATE_115200, BIT_RATE_115200);

Output is

Code:

.rl.l|.
l`|.....ll.b|.l.rbl.brnnlnnbl.b.pllrlr
lprn`.....l......b.nb|.
l|.brnnn.l
l`...nn.l`...nrn..
.lprn`....r
b`....b.nb|.
l.b
rnnn...l`...nn..l..nrn...l.lprn`....r
b`l...b.nb|.l|

I believe that this is sort of debug info from core libs. Even if

Code:

system_set_os_print(1)
is called, this remains. Is there any doc that would help describe meaning of this data?

Rgds,
Frenk


1. I suggest try baud 74880 to see the output data. Because the default function of GPIO2 is uart1 tx , so it would output some boot info after reboot , like these:

Code:


 ets Jan  8 2013,rst cause:1, boot mode:(3,2)

load 0x40100000, len 1320, room 16
tail 8
chksum 0xb8
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0xd9
load 0x3ffe8308, len 412, room 0
tail 12
chksum 0xb9
csum 0xb9

2nd boot version : 1.3(b3)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size : 8Mbit
jump to run user1


2. The default uart output port after user init is uart0.If you want to output debug info ,
Find these comments in uart.c -> uart_init()

Code:


    /*option 1: use default print, output from uart0 , will wait some time if fifo is full */
    //do nothing...

    /*option 2: output from uart1,uart1 output will not wait , just for output debug info */
    /*os_printf output uart data via uart1(GPIO2)*/
    //os_install_putc1((void *)uart1_write_char);    //use this one to output debug information via uart1 //

    /*option 3: output from uart0 will skip current byte if fifo is full now... */
    /*see uart0_write_char_no_wait:you can output via a buffer or output directly */
    /*os_printf output uart data via uart0 or uart buffer*/
    //os_install_putc1((void *)uart0_write_char_no_wait);  //use this to print via uart0


3. system_set_os_print(1) enables uart output from os_printf.
system_set_os_print(0) disables it.

Statistics: Posted by costaud — Mon May 18, 2015 10:53 am


]]>
2015-05-16T20:16:27+08:00 2015-05-16T20:16:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=447&p=1704#p1704 <![CDATA[Weird (debug) ouptut on UART1?]]> with latest SDK(1.0.1), after reboot I get following chars from debug output(UART1).
uart settings are:

Code:

PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_U1TXD_BK);
uart_init(BIT_RATE_115200, BIT_RATE_115200);

Output is

Code:

.rl.l|.
l`|.....ll.b|.l.rbl.brnnlnnbl.b.pllrlr
lprn`.....l......b.nb|.
l|.brnnn.l
l`...nn.l`...nrn..
.lprn`....r
b`....b.nb|.
l.b
rnnn...l`...nn..l..nrn...l.lprn`....r
b`l...b.nb|.l|

I believe that this is sort of debug info from core libs. Even if

Code:

system_set_os_print(1)
is called, this remains. Is there any doc that would help describe meaning of this data?

Rgds,
Frenk

Statistics: Posted by FrenkR — Sat May 16, 2015 8:16 pm


]]>