乐鑫技术交流
直播中

北上北京

8年用户 810经验值
擅长:嵌入式技术
私信 关注
[问答]

ESP8266 ESP-AT环境搭好之后,打不开menuconfig怎么解决?

环境搭好之后,打不开menuconfig,但是./build.py all 可以正常编译通过。
这个情况怎么办?下面是错误信息

:/home/esp/esp-at# ./build.py menuconfig
module_name ESP8266_1MB
platform_name=ESP8266,module_name=ESP8266_1MB
Checking Python dependencies...
Python requirements from /home/esp/esp-at/esp-idf/requirements.txt are satisfied.
Executing action: menuconfig
Running make in directory /home/esp/esp-at/build
Executing "make -j 4 menuconfig"...
[100%] Built target mconf-idf
Loading defaults file /home/esp/esp-at/module_config/module_esp8266_1mb/sdkconfig.defaults...
/home/esp/esp-at/main/interface/hspi/Kconfig:10: syntax error
/home/esp/esp-at/main/Kconfig:6: missing end statement for this entry
/home/esp/esp-at/main/Kconfig:1: missing end statement for this entry
/home/esp/esp-at/esp-idf/Kconfig:198: missing end statement for this entry
/home/esp/esp-at/main/interface/hspi/Kconfig:9: invalid statement
/home/esp/esp-at/main/interface/hspi/Kconfig:10: unexpected option "prompt"
/home/esp/esp-at/main/interface/hspi/Kconfig:11: unexpected option "depends"
/home/esp/esp-at/main/interface/hspi/Kconfig:12: unexpected option "default"
/home/esp/esp-at/main/interface/hspi/Kconfig:28: unexpected end statement
/home/esp/esp-at/main/Kconfig:16: unexpected end statement
/home/esp/esp-at/main/Kconfig:343: unexpected end statement
/home/esp/esp-at/esp-idf/Kconfig:200: unexpected end statement
CMakeFiles/menuconfig.dir/build.make:57: recipe for target 'CMakeFiles/menuconfig' failed
make[3]: *** [CMakeFiles/menuconfig] Error 1
CMakeFiles/Makefile2:337: recipe for target 'CMakeFiles/menuconfig.dir/all' failed
make[2]: *** [CMakeFiles/menuconfig.dir/all] Error 2
CMakeFiles/Makefile2:344: recipe for target 'CMakeFiles/menuconfig.dir/rule' failed
make[1]: *** [CMakeFiles/menuconfig.dir/rule] Error 2
Makefile:253: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
make failed with exit code 2
idf.py build ret: 2
idf.py build failed
                    

回帖(1)

孙成红

2024-6-27 16:50:49
从您提供的错误信息来看,问题可能出现在以下几个方面:

1. **环境变量**:确保您的环境变量设置正确。特别是`PATH`变量,它应该包含Python和make的路径。您可以在终端中运行`echo $PATH`来检查。

2. **Python依赖**:错误信息显示Python依赖已经满足,但仍然建议您检查是否有遗漏或需要更新的依赖。

3. **Make工具**:确保您的系统中安装了make工具。在Linux系统中,您可以使用`sudo apt-get install make`(对于Debian/Ubuntu系统)或相应的命令在其他系统上安装。

4. **权限问题**:检查您的用户是否有权限执行`./build.py`脚本。如果没有,您可以尝试使用`chmod +x ./build.py`来给予执行权限。

5. **脚本错误**:可能是`./build.py`脚本本身存在问题。您可以尝试查看脚本内容,检查是否有错误或不符合您系统环境的地方。

6. **IDE或编辑器问题**:如果您是通过IDE或编辑器运行`./build.py`,请确保它们配置正确,并且支持Python脚本的执行。

7. **ESP-AT和ESP-IDF版本兼容性**:确保您使用的ESP-AT和ESP-IDF版本兼容。如果不兼容,您可能需要更新其中一个或两者。

8. **重新安装或更新**:如果以上方法都无法解决问题,您可以尝试重新安装ESP-AT和ESP-IDF,或者更新到最新版本。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分