ESP8266入门问题,我在入门ESP8266。买了一块小黄板,焊了一个2303的USB转TTL,已下载AT固件测试过了,没什么问题,AT指令收发,连接路由器什么的。
现在准备学习自己写代码了,在安信可网站和乐鑫上都下载了RTOS 1.5的SDK。
在eclipse下面加载安信可修改好的基本案例,编译都通过了。有一个提示下面代码前有一个小甲壳虫。
uart_task(void *pvParameters)
{
os_event_t e;
for (;;) {
if (xQueueReceive(xQueueUart, (void *)&e, (port
tickType)portMAX_DELAY)) {
switch (e.event) {
case UART_EVENT_RX_CHAR:
printf("%c", e.param);
break;
default:
break;
}
}
}
然后按照步骤flash_download_tools_v3.4.4_0下载到小黄板里,重启后就是没有版本信息什么的打印出来。也不知道错哪了?
13:58:07 **** Incremental Build of configuration Default for project ESP8266_RTOS_SDK_V1.5 ****
make all
make[1]: Entering directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app'
make[2]: Entering directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app/user'
make[2]: Leaving directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app/user'
make[2]: Entering directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app/driver'
make[2]: Leaving directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app/driver'
!!!
SDK_PATH: /cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5
BIN_PATH: /cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/bin
No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in BIN_PATH
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x20000
!!!
make[1]: Leaving directory '/cygdrive/d/AITHINKER-ESP8266-SDK/ESP8266_RTOS_SDK_V1.5/app'
13:58:22 Build Finished (took 14s.834ms)