ESP8266 Developer Zone The Official ESP8266 Forum 2015-10-27T15:11:50+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1282 2015-10-27T15:11:50+08:00 2015-10-27T15:11:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1282&p=4302#p4302 <![CDATA[Re: how could using UART0 in RTOS SDK???]]>
be aware of no only printf for debug!!!

Statistics: Posted by marhc_seven — Tue Oct 27, 2015 3:11 pm


]]>
2015-10-27T11:50:10+08:00 2015-10-27T11:50:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1282&p=4296#p4296 <![CDATA[Re: how could using UART0 in RTOS SDK???]]>
Please try to use "printf" to print logs.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Tue Oct 27, 2015 11:50 am


]]>
2015-10-26T19:07:02+08:00 2015-10-26T19:07:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1282&p=4281#p4281 <![CDATA[Re: how could using UART0 in RTOS SDK???]]>
and i have always add the uart0 sending function in it, but it doesn't work

Code:

static void RAMFUNC LEDBlinkTask(void *pvParameters)
{
   PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_GPIO2);
   for (int tick = 0;; tick++)
   {
      vTaskDelay(s_LEDPeriod / portTICK_RATE_MS);
      gpio_output_conf(0, BIT2, BIT2, 0);
      vTaskDelay(s_LEDPeriod / portTICK_RATE_MS);
      gpio_output_conf(BIT2, 0, BIT2, 0);
   }
   os_putc(0x09);                            //no work !!!
   //uart_tx_one_char(UART0, 'a');  // no work  !!!
   //os_printf("aaaaaa\n");              // No work   !!!
}

Statistics: Posted by marhc_seven — Mon Oct 26, 2015 7:07 pm


]]>
2015-10-26T17:03:12+08:00 2015-10-26T17:03:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1282&p=4275#p4275 <![CDATA[Re: how could using UART0 in RTOS SDK???]]>

Code:

static void RAMFUNC LEDBlinkTask(void *pvParameters)
{
   PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U, FUNC_GPIO1);
   for (int tick = 0;; tick++)
   {
      vTaskDelay(s_LEDPeriod / portTICK_RATE_MS);
      gpio_output_conf(0, BIT1, BIT1, 0);
      vTaskDelay(s_LEDPeriod / portTICK_RATE_MS);
      gpio_output_conf(BIT1, 0, BIT1, 0);
   }
   os_printf("aaaaaa\n");
}







/* NOTE: don't use printf_opt in irq handler, for test */
#define os_printf(fmt, ...) do {\
static const char flash_str[] ICACHE_RODATA_ATTR STORE_ATTR = fmt;\
printf(flash_str, ##__VA_ARGS__);\
} while(0)

#endif /* __LIBC_H__ */


the uart0 always put 0x00 ~~~~~

Statistics: Posted by marhc_seven — Mon Oct 26, 2015 5:03 pm


]]>
2015-10-26T16:23:07+08:00 2015-10-26T16:23:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1282&p=4274#p4274 <![CDATA[how could using UART0 in RTOS SDK???]]>
how could i send string output from the UART0 ????


BR

Statistics: Posted by marhc_seven — Mon Oct 26, 2015 4:23 pm


]]>