安信可 IDE 1.5 开发学习记录
1、按照https://blog.youkuaiyun.com/Boantong_/article/details/106229281 官方教程,总是提示 user_esp_platform_timer.c:77:19: error: implicit declaration of function 'in的报错。
后来按照https://blog.youkuaiyun.com/felix_tao/article/details/106698643 这个教程还是一样。 卸载重装了好几次,还是一样的情况。后来更换了example 底下另外一个项目去测试,
就可以正常编译。
3、更换电脑安装新环境,按照上述步骤一直提示:
20:18:50 **** Build of configuration Default for project smart_config ****
make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=DIO SPI_SIZE_MAP=6 all
make[1]: Entering directory '/e/Ai-Thinker V1.1/workspace/ESP8266_NONOS_SDK-3.0/smart_config/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DSPI_FLASH_SIZE_MAP=6 -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include user_main.c
/bin/sh: line 1: xtensa-lx106-elf-gcc: command not found
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DSPI_FLASH_SIZE_MAP=6 -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include -o .output/eagle/debug/obj/user_main.o -c user_main.c
make[1]: xtensa-lx106-elf-gcc: Command not found
make[1]: *** [../../Makefile:346: .output/eagle/debug/obj/user_main.o] Error 127
make[1]: Leaving directory '/e/Ai-Thinker V1.1/workspace/ESP8266_NONOS_SDK-3.0/smart_config/user'
make: *** [../Makefile:331: .subdirs] Error 2
20:18:53 Build Finished (took 3s.512ms)
像是环境变量配置类似的问题,目前没找到问题所在
2、在上一步的基础上输出hello word 。直接用example里面一个示例去改就可以,我这边用的是smartconfig,和上面的步骤一样。这里比较坑的是,在IDE里面编辑的代码一定要去保存一下
我没有保存,每次下载到开发板都得不到自己想要的结果,纳闷了好多次,再静下心来发现这个没保存。保存下,再clean 编译之后就得到自己想要的hello word了
3、下载程序的截图: