Weird (debug) ouptut on UART1?

FrenkR
Posts: 44
Joined: Thu Dec 04, 2014 9:25 am

Weird (debug) ouptut on UART1?

Postby FrenkR » Sat May 16, 2015 8:16 pm

Hi,
with latest SDK(1.0.1), after reboot I get following chars from debug output(UART1).
uart settings are:

Code: Select all

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

Output is

Code: Select all

.rl.l|.
l`|.... .ll.b|.l.rbl.b rnnlnnbl.b.pllrlr
lprn`.....l......b.nb|.
l| .b rnnn.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: Select all

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

Rgds,
Frenk

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: Weird (debug) ouptut on UART1?

Postby costaud » Mon May 18, 2015 10:53 am

FrenkR wrote:Hi,
with latest SDK(1.0.1), after reboot I get following chars from debug output(UART1).
uart settings are:

Code: Select all

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

Output is

Code: Select all

.rl.l|.
l`|.... .ll.b|.l.rbl.b rnnlnnbl.b.pllrlr
lprn`.....l......b.nb|.
l| .b rnnn.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: Select all

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: Select all


 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: Select all


    /*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.

FrenkR
Posts: 44
Joined: Thu Dec 04, 2014 9:25 am

Re: Weird (debug) ouptut on UART1?

Postby FrenkR » Wed May 20, 2015 5:26 am

Thank you for your answer. Is it possible to switch this debug info on UART1 completely(no output from UART1 even during system "initialization" phase, to have no debug to UART at all)?
Rgds,
Frenk

Who is online

Users browsing this forum: No registered users and 140 guests