ESP8266 Developer Zone The Official ESP8266 Forum 2015-03-01T16:05:20+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=218 2015-03-01T16:05:20+08:00 2015-03-01T16:05:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=218&p=845#p845 <![CDATA[Re: FreeRTOS SDK - changing the uart]]> I've disabled debug messages from the SDK using:

Code:

void dummy_write_char(char c)
{
}


// now you can execute
os_install_putc1(dummy_write_char);


Above code hides all stdout outputs (like printf).
You can send messages to UART using your own routine:

Code:

   void writebyte(uint8_t b)
   {
      while (true)
      {
         uint32_t fifo_cnt = READ_PERI_REG(UART_STATUS(0)) & (UART_TXFIFO_CNT << UART_TXFIFO_CNT_S);
         if ((fifo_cnt >> UART_TXFIFO_CNT_S & UART_TXFIFO_CNT) < 126)
            break;
      }
      WRITE_PERI_REG(UART_FIFO(0) , b);
   }


...or the functions provided by the SDK like "user_uart_tx_one_char" or "user_uart_write_char" located in libmain.a (I haven't tested it!).

Statistics: Posted by fdivitto — Sun Mar 01, 2015 4:05 pm


]]>
2015-02-22T13:49:23+08:00 2015-02-22T13:49:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=218&p=789#p789 <![CDATA[FreeRTOS SDK - changing the uart]]>

Code:

Fatal exception (20):
epc1=0x00000000
epc2=0x00000000
epc3=0x40242f90
epcvaddr=0x00000000
depc=0x00000000
"@▒rjrA(!▒S▒u▒К▒X%(▒▒y▒eh)"8▒t▒ͪN

but then the next thing happens on uart0:

Code:

 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset


I am using

Code:

os_install_putc1(uart1_write_char);
but it doesn't seem to affect everything?

Statistics: Posted by tve — Sun Feb 22, 2015 1:49 pm


]]>