ESP8266 Developer Zone The Official ESP8266 Forum 2015-11-26T23:09:21+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1406 2015-11-26T23:09:21+08:00 2015-11-26T23:09:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4787#p4787 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]>

Statistics: Posted by uglyfish — Thu Nov 26, 2015 11:09 pm


]]>
2015-11-24T22:34:22+08:00 2015-11-24T22:34:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4751#p4751 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]> Statistics: Posted by kolban — Tue Nov 24, 2015 10:34 pm


]]>
2015-11-24T21:13:11+08:00 2015-11-24T21:13:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4748#p4748 <![CDATA[非OS SDK 1.4.0 HSPI 外接SPI设备 没有任何波形输出]]>
我想使用HSPI接口外接一个SPI设备,OLED显示屏,但是在调试阶段,下面的代码没有输入任何波形:

Code:

#include "ets_sys.h"
#include "osapi.h"

#include "user_interface.h"
#include "driver/spi.h"
#include "driver/spi_overlap.h"

#define TASK0_PRIORITY  (1)
#define TASK0_QLEN      (64)

static os_event_t task0_q[TASK0_QLEN];

void user_rf_pre_init(void)
{
}

static void ICACHE_FLASH_ATTR task0(ETSEvent *event)
{
    os_printf("task0 begin\n");
   
    hspi_master_dev_init(HSPI_CS_DEV, 1, 1);
    hspi_dev_sel(HSPI_CS_DEV);
    spi_mast_byte_write(HSPI, 0x04);
    spi_mast_byte_write(HSPI, 0xAA);
   
    os_printf("task0 end\n");
}

void user_init(void)
{
    os_printf("SDK version:%s\n", system_get_sdk_version());
    gpio_init();
    system_os_task(task0, TASK0_PRIORITY, task0_q, TASK0_QLEN);
    system_os_post(TASK0_PRIORITY, 0, 0);
}


是参考 贵公司 SDK1.4.0中的driver_lib中的spi驱动,但是不能工作,请高手指点?

Statistics: Posted by shennongmin — Tue Nov 24, 2015 9:13 pm


]]>
2015-11-23T18:42:27+08:00 2015-11-23T18:42:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4724#p4724 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]>
您使用的并不是我司提供的编译器,可能是由于您的编译器问题。

建议使用我司提供的编译器 http://bbs.espressif.com/viewtopic.php?f=50&t=86,我试过可以正常编译。

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Mon Nov 23, 2015 6:42 pm


]]>
2015-11-23T14:35:33+08:00 2015-11-23T14:35:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4714#p4714 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]>

Code:

In file included from /home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/espressif/c_types.h:28:0,
                 from /home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/espressif/esp_common.h:93,
                 from user_main.c:25:
/home/wupf/bin/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
make[1]: *** [.output/eagle/debug/obj/user_main.o] Error 1


将 RTOS SDK 1.2.0 版本中extra_include目录拷贝到 RTOS SDK 1.4.0 的目录下,编译又出错:

Code:

ESP8266_RTOS_SDK/include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
 #if TENSILICA || 1
     ^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:123:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:220:6: error: "__int_fast64_t_defined" is not defined [-Werror=undef]
 #if !__int_fast64_t_defined
      ^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:308:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/include/stdint.h:320:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
cc1: all warnings being treated as errors
make[1]: *** [.output/eagle/debug/obj/user_main.o] Error 1
make[1]: Leaving directory `/home/wupf/work/nfsroot/ESP8266_RTOS_SDK/examples/smart_config/user'
make: *** [.subdirs] Error 2


是什么原因?

Statistics: Posted by shennongmin — Mon Nov 23, 2015 2:35 pm


]]>
2015-11-20T14:52:39+08:00 2015-11-20T14:52:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4685#p4685 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]>
请问您是什么时候下载的 ESP8266_RTOS_SDK ?

麻烦重新下载 https://github.com/espressif/ESP8266_RTOS_SDK 看能否正常编译?

我们后来有针对 websocket 的编译问题进行更新。
如果您的问题仍未解决,请再与我们联系。

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Fri Nov 20, 2015 2:52 pm


]]>
2015-11-20T10:10:05+08:00 2015-11-20T10:10:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4674#p4674 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]> make:***No rule to make targert 'clean'
make:Nothing to be done for 'FORCE'。

问题可能很简单,烦请指教,谢谢。

Statistics: Posted by uglyfish — Fri Nov 20, 2015 10:10 am


]]>
2015-11-20T09:55:59+08:00 2015-11-20T09:55:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4673#p4673 <![CDATA[Re: 新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]>
请问,编译报什么错呢?

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Fri Nov 20, 2015 9:55 am


]]>
2015-11-19T15:26:04+08:00 2015-11-19T15:26:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1406&p=4663#p4663 <![CDATA[新手提问:ESP8266_RTOS_SDK-master无法生成bin文件]]> Statistics: Posted by uglyfish — Thu Nov 19, 2015 3:26 pm


]]>