【发布时间】:2019-01-26 15:46:29
【问题描述】:
我想为 ESP8266 编译我的源代码(Extensa NONOS_SDK 工具链已经安装并且可以工作)。
这是我的文件夹结构:
我使用来自 Espressif 的示例中的 Makefile:https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/simple_pair/Makefile
我也用这个gen_misc.sh:https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/simple_pair/gen_misc.sh
我将 Ubuntu 18 作为 Windows 10 的 Linux 子系统运行。这就是我从 cmd 调用 gen_misc.sh 的方式:
./gen_misc.sh
gen_misc.sh version 20150511
Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
0
boot mode: old
STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
ignore boot
generate bin: eagle.flash.bin+eagle.irom0text.bin
STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):
2
spi speed: 40 MHz
STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
2
spi mode: DIO
STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
7=4096KB(2048KB+2048KB) not support ,just for compatible with nodeMCU board
8=8192KB(1024KB+1024KB)
9=16384KB(1024KB+1024KB)
enter (0/2/3/4/5/6/7/8/9, default 0):
4
spi size: 4096KB
spi ota map: 512KB + 512KB
这是我得到的输出:
start...
make: Nothing to be done for 'FORCE'.
非常感谢任何想法或帮助我做错了什么。
如果我没有提供您可能需要回答这个问题的任何信息,请不要犹豫。
【问题讨论】:
-
查看 Makefile,我不知道这里应该发生什么。
gen_misc.sh调用的最后一行没有目标。因此,Makefile 使用默认目标,即 FORCE。 FORCE 目标为空。因此,它什么也不做。文档是否告诉您修改这些文件并放入您自己的目标?
标签: makefile arduino esp8266 arduino-esp8266