乐鑫 ESP8266 NONOS_SDK - Makefile [英] Espressif ESP8266 NONOS_SDK - Makefile
问题描述
我想为 ESP8266 编译我的源代码(Extensa NONOS_SDK 工具链已经安装并运行).
I would like to compile my source-code for the ESP8266 (Extensa NONOS_SDK Toolchain is already installed and working).
这是我的文件夹结构:
我使用 Espressif 示例中的 Makefile:https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/simple_pair/Makefile
I use this Makefile from an example from Espressif: 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
的方式:
I am running Ubuntu 18 as a Linux Subsystem for Windows 10. This is how I called gen_misc.sh
from cmd:
./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'.
非常感谢任何想法或帮助我做错的事情.
Any ideas or help what I am doing wrong are greatly appreciated.
请不要犹豫,问我是否没有提供您回答这个问题可能需要的任何信息.
Please don't hesitate do ask if I didn't include any information you might need to answer this question.
推荐答案
建议的解决方案 这里就是把你运行脚本的文件夹复制到sdk文件夹的根目录下运行脚本.
the solution as suggested here is to copy the folder where you are running the script to the root of the sdk folder and run the script.
这篇关于乐鑫 ESP8266 NONOS_SDK - Makefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!