查看: 3550|回复: 10

[FireBeetle] 【原创】如何在树莓派上给firebeetle esp32编程

[复制链接]
回帖奖励 10 创造力 回复本帖可获得 10 创造力奖励! 每人限 1 次(中奖概率 70%)
本帖最后由 dbc0301 于 2019-5-9 19:00 编辑

       DFRobot几个月前曾推出了一款FireBeetle ESP32的控制器,Tensilica LX6双核处理器使得该控制器运算速度很快。由于FireBeetle对于Arduino IDE做了引脚映射,你可以用Arduino IDE给它编程,而省去了不少的麻烦。不过由于网上大多数资料都是针对于Windows下的环境配置,于是我也尝试着在树莓派上用Arduino IDE来给FireBeetle ESP32编程。
       我首先尝试了一下DFRobot的资料库里的教程,结果会出现“你的操作系统里没有xtensa-esp32-elf-gcc”之类的报错。
IMG_20171226_233414.jpg

       于是我另辟蹊径,终于找到了如何在树莓派上给FireBeetle编程的方法。(P.S.本教程同样适用于其它Linux电脑)

你需要:
1.一台正常工作的树莓派(已联网)
2.显示器和键鼠(用于连接树莓派),若没有,也可以使用计算机或手机连接(确保与树莓派在同一局域网内)

以下操作均可在手机上进行(反正我就是这么做的):
一、安装Arduino IDE(安装过的同学可以跳到下一步了)

       打开Arduino IDE的下载页面(点击进入下载页面),点击Linux ARM位下载(其它Linux电脑请选择对应的版本)。下载后解压,并运行子目录下的install.sh进行安装。

二、安装开发板

      我在GitHub上找到了合适的工具,并使用了他们推荐的安装方式。
       打开终端,复制下面的指令并粘贴执行。如果出现了[Y/N]之类的标识,请输入Y并回车。
[C++] 纯文本查看 复制代码
sudo usermod -a -G dialout $USER && \ sudo apt-get install git && \
wget [url=https://bootstrap.pypa.io/get-pip.py]https://bootstrap.pypa.io/get-pip.py[/url] && \
sudo python get-pip.py && \
sudo pip install pyserial && \
mkdir -p ~/Arduino/hardware/espressif && \
cd ~/Arduino/hardware/espressif && \
git clone [url=https://github.com/espressif/arduino-esp32.git]https://github.com/espressif/arduino-esp32.git[/url] esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py

       完成后重启Arduino IDE后你就能够找到FireBeetle开发板了,但假如你此时给FireBeetle编程,依然会报错。
Screenshot_2017-12-26-22-40-31-554_com.realvnc.vi.png

三、下载ESP32的交叉编译器(gcc)

      你需要下载ESP32的交叉编译器,乐鑫提供了32位和64位两个版本的交叉编译器,这显然是无法在树莓派上运行的。
在终端运行下面这条命令
[C] 纯文本查看 复制代码
git clone [url=https://github.com/donny681/xtensa-esp32-elf-raspberry.git]https://github.com/donny681/xtensa-esp32-elf-raspberry.git[/url]
P.S.其它Linux电脑请下载对应的交叉编译器




Linux(x32): https://dl.espressif.com/dl/xten ... 32-1.22.0-59.tar.gz(链接已失效)
Linux(x64):[url=]https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-59.tar.gz[/url]

将xtensa-esp32-elf-raspberry目录下的xtensa-esp32-elf文件夹移动到/home/pi/Arduino/hardware/espressif/esp32/tools目录下(其他版本的Linux,目录会稍有不同)
IMG_20171226_233316.jpg

       运行下列命令来安装依赖的文件包。
[C] 纯文本查看 复制代码
sudo apt-get install git make gcc libncurses5-dev flex bison gperf python-serial

       现在将FireBeetle插在你的树莓派上,打开Arduino IDE,在菜单栏中选择【文件】→【示例】→【01.Basics】→【Blink】,选好端口(不能确认的话,可以将插头重新插入,看看那些端口是新出来的),点击“上传”按钮下载程序。
IMG_20171226_233153.jpg

用树莓派下载程序到FireBeetle
四、最后

      本教程使用了很多GitHub上的工具,感谢GitHub上的大佬。

参考资料:
安装开发板:https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/debian_ubuntu.md
交叉编译器:https://github.com/donny681/xtensa-esp32-elf-raspberry

dbc0301  初级技匠
 楼主|

发表于 2019-5-9 21:23:54

本帖最后由 dbc0301 于 2019-5-9 21:25 编辑
Shuuei 发表于 2019-5-6 21:54
额 楼主我是一个一个命令打的 应该没啥区别吧

关于这个问题,我昨天刚刚又试了一遍,重装了官网的系统,下载了最新的Arduino For Linux ARM 32 位版的,软件主体是放在/home/pi/Documents下的,第一次运行Arduino时好像就会就会新建/home/pi/Arduino文件夹,建议你还是运行一下Arduino文件夹下的install.sh。P.S.安装开发板的说明在下面的网址:
https://github.com/espressif/ard ... de/debian_ubuntu.md
可能要更改路径。
回复 支持 1 反对 0

使用道具 举报

Shuuei  中级技师

发表于 2019-5-5 19:04:40

回帖奖励 +10 创造力

本帖最后由 Shuuei 于 2019-5-5 19:18 编辑

Hi 楼主 我第二步结束重启Arduino没看到有Esp32的开发板啊感觉是不是目录建错地方导致arduino找不到hardware和tool?
我树莓派arduino的目录在/usr/share/arduino里面

还有 我的arduino ide 。。。 是1.0.5的 也不见源更新。。
回复 支持 反对

使用道具 举报

dbc0301  初级技匠
 楼主|

发表于 2019-5-5 23:49:03

Shuuei 发表于 2019-5-5 19:04
Hi 楼主 我第二步结束重启Arduino没看到有Esp32的开发板啊感觉是不是目录建错地方导致arduino找不到hardwar ...

首先Arduino必须安装在树莓派上(双击文件夹内的一个安装文件即可),不能只是解压,其次我这里看到文章中一些代码在网页上未正确显示,安装开发板应键入以下命令(整个复制就行,其中“&& \”是用来将两个命令连在一起,执行顺序是从前往后):
sudo usermod -a -G dialout $USER && \ sudo apt-get install git && \
wget https://bootstrap.pypa.io/get-pip.py && \
sudo python get-pip.py && \
sudo pip install pyserial && \
mkdir -p ~/Arduino/hardware/espressif && \
cd ~/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python get.py
回复 支持 反对

使用道具 举报

Shuuei  中级技师

发表于 2019-5-6 21:54:57

dbc0301 发表于 2019-5-5 23:49
首先Arduino必须安装在树莓派上(双击文件夹内的一个安装文件即可),不能只是解压,其次我这里看到文章 ...

额 楼主我是一个一个命令打的 应该没啥区别吧
回复 支持 反对

使用道具 举报

Shuuei  中级技师

发表于 2019-5-10 21:17:33

dbc0301 发表于 2019-5-9 21:23
关于这个问题,我昨天刚刚又试了一遍,重装了官网的系统,下载了最新的Arduino For Linux ARM 32 位版的, ...

楼主 都完成了! !感谢楼主
但是...
我编译的时候...
树莓派卡死了...
回复 支持 反对

使用道具 举报

dbc0301  初级技匠
 楼主|

发表于 2019-5-15 12:44:23

Shuuei 发表于 2019-5-10 21:17
楼主 都完成了! !感谢楼主
但是...
我编译的时候...

恭喜你成功完成了安装。至于卡死的问题,我是没遇到过,树莓派的性能很低,有时确实会出现假死的现象,编译的进度条半天不动,但实际上背后仍在执行编译的过程。如果是整个桌面包括鼠标都动不了,建议还是断电重启吧,同时还应检查电源的供电是否充足、稳定。
回复 支持 反对

使用道具 举报

Shuuei  中级技师

发表于 2019-5-15 16:42:47

dbc0301 发表于 2019-5-15 12:44
恭喜你成功完成了安装。至于卡死的问题,我是没遇到过,树莓派的性能很低,有时确实会出现假死的现象,编 ...

就一直停在100%,然后就卡死了 两次之后我就先放着转去鼓捣mircopython了
回复 支持 反对

使用道具 举报

leave  学徒

发表于 2019-6-14 22:58:42

回帖奖励 +10 创造力

[AppleScript] 纯文本查看 复制代码
Arduino:1.8.9 (Linux), 开发板:"ESP32 Dev Module, Enabled, Huge APP (3MB No OTA/1MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

xtensa-esp32-elf-g++: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
exit status 1
为开发板 ESP32 Dev Module 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
回复 支持 反对

使用道具 举报

leave  学徒

发表于 2019-6-14 23:01:02

leave 发表于 2019-6-14 22:58
[AppleScript] 纯文本查看 复制代码
Arduino:1.8.9 (Linux), 开发板:"ESP32 Dev Module, Enabled, Huge APP (3 ...[/quote]

[mw_shl_code=applescript,true]Arduino:1.8.9 (Linux), 开发板:"ESP32 Dev Module, Enabled, Huge APP (3MB No OTA/1MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

/home/pi/Program/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/Program/arduino-1.8.9/hardware -hardware /home/pi/.arduino15/packages -hardware /home/pi/Arduino/hardware -tools /home/pi/Program/arduino-1.8.9/tools-builder -tools /home/pi/Program/arduino-1.8.9/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/Program/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=1A86_7523 -ide-version=10809 -build-path /tmp/arduino_build_835325 -warnings=all -build-cache /tmp/arduino_cache_815443 -prefs=build.warn_data_percentage=75 -verbose /tmp/arduino_modified_sketch_492180/CameraWebServer.ino
/home/pi/Program/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /home/pi/Program/arduino-1.8.9/hardware -hardware /home/pi/.arduino15/packages -hardware /home/pi/Arduino/hardware -tools /home/pi/Program/arduino-1.8.9/tools-builder -tools /home/pi/Program/arduino-1.8.9/hardware/tools/avr -tools /home/pi/.arduino15/packages -built-in-libraries /home/pi/Program/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=1A86_7523 -ide-version=10809 -build-path /tmp/arduino_build_835325 -warnings=all -build-cache /tmp/arduino_cache_815443 -prefs=build.warn_data_percentage=75 -verbose /tmp/arduino_modified_sketch_492180/CameraWebServer.ino
Using board 'esp32' from platform in folder: /home/pi/Arduino/hardware/espressif/esp32
Using core 'esp32' from platform in folder: /home/pi/Arduino/hardware/espressif/esp32
Detecting libraries used...
/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/config -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_trace -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_update -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/asio -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bootloader_support -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/coap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/console -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/driver -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-tls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_adc_cal -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_event -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_client -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_server -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_https_ota -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_ringbuf -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ethernet -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/expat -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fatfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freemodbus -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/heap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/idf_test -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/jsmn -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/json -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/libsodium -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/log -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mdns -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/micro-ecc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mqtt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nvs_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/openssl -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protobuf-c -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protocomm -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/pthread -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/sdmmc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/smartconfig_ack -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/soc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spi_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spiffs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcp_transport -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcpip_adapter -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ulp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/vfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wear_levelling -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wifi_provisioning -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wpa_supplicant -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/xtensa-debug-module -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32-camera -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-face -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fb_gfx -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -I/home/pi/Arduino/hardware/espressif/esp32/cores/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/variants/esp32 /tmp/arduino_build_835325/sketch/CameraWebServer.ino.cpp -o /dev/null
Error while detecting libraries included by /tmp/arduino_build_835325/sketch/CameraWebServer.ino.cpp
/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/config -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_trace -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_update -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/asio -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bootloader_support -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/coap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/console -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/driver -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-tls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_adc_cal -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_event -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_client -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_server -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_https_ota -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_ringbuf -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ethernet -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/expat -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fatfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freemodbus -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/heap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/idf_test -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/jsmn -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/json -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/libsodium -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/log -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mdns -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/micro-ecc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mqtt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nvs_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/openssl -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protobuf-c -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protocomm -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/pthread -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/sdmmc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/smartconfig_ack -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/soc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spi_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spiffs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcp_transport -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcpip_adapter -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ulp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/vfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wear_levelling -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wifi_provisioning -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wpa_supplicant -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/xtensa-debug-module -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32-camera -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-face -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fb_gfx -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -I/home/pi/Arduino/hardware/espressif/esp32/cores/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/variants/esp32 /tmp/arduino_build_835325/sketch/app_httpd.cpp -o /dev/null
Error while detecting libraries included by /tmp/arduino_build_835325/sketch/app_httpd.cpp
Generating function prototypes...
/home/pi/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/config -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_trace -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/app_update -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/asio -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bootloader_support -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/bt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/coap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/console -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/driver -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-tls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_adc_cal -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_event -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_client -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_http_server -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_https_ota -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp_ringbuf -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ethernet -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/expat -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fatfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freemodbus -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/heap -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/idf_test -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/jsmn -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/json -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/libsodium -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/log -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/lwip -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mbedtls -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mdns -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/micro-ecc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/mqtt -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/newlib -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nghttp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/nvs_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/openssl -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protobuf-c -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/protocomm -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/pthread -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/sdmmc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/smartconfig_ack -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/soc -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spi_flash -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/spiffs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcp_transport -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/tcpip_adapter -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/ulp -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/vfs -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wear_levelling -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wifi_provisioning -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/wpa_supplicant -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/xtensa-debug-module -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32-camera -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/esp-face -I/home/pi/Arduino/hardware/espressif/esp32/tools/sdk/include/fb_gfx -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -I/home/pi/Arduino/hardware/espressif/esp32/cores/esp32 -I/home/pi/Arduino/hardware/espressif/esp32/variants/esp32 /tmp/arduino_build_835325/sketch/CameraWebServer.ino.cpp -o /tmp/arduino_build_835325/preproc/ctags_target_for_gcc_minus_e.cpp
xtensa-esp32-elf-g++: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
exit status 1
为开发板 ESP32 Dev Module 编译时出错。
回复 支持 反对

使用道具 举报

dbc0301  初级技匠
 楼主|

发表于 2019-6-16 21:40:28

leave 发表于 2019-6-14 23:01
[mw_shl_code=applescript,true]Arduino:1.8.9 (Linux), 开发板:"ESP32 Dev Module, Enabled, Huge APP  ...

看起来是检测libraries时出了错,你之前有编译成功过吗?试试重新安装一下交叉编译器。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
wifi气象站

硬件清单

btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2019 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail