Приложение Zephyr hello world не удалось для ESP32 - PullRequest
0 голосов
/ 05 апреля 2020

ОС: Ubuntu 18.04,64bit (новая установлена) Зефир Версия: 2.2.99 Zephyr SDK Версия: 0.11.2 xtensa-esp32-elf-g cc Версия: 5.2.0 --build = x86_64-build_p c - linux -gnu

Согласно руководству по началу работы с Zephyr и esp, мы установили переменную окружения.

export ZEPHYR_TOOLCHAIN_VARIANT = "espressif" export ESPRESSIF_TOOLCHAIN_PATH = "/ home / swapna / Documents / Workspace / esp / xtensa-esp32-elf" export ZEPHYR_SDK_INSTALL_DIR = "/ home / swapna / Documents / Workspace / Zephyr_ESP / zephyr-sdk"

Мы создаем приложение hello_world:

west build -b esp32 samples / hello_world

[84/122] Сборка объектных модулей ASM / Xtensa / CMakeFiles / modules_xtensa_hal.dir / SRC / гал / cache_asm.S.obj СБОЙ: modules / xtensa / CMakeFiles / modules_xtensa_hal.dir / src / hal / cache_asm.S.obj ccache / home / swapna / Документы / Рабочая область / esp / xtensa-esp32-elf / bin / xtensa-esp32-elf-g cc -DBUILD_VERSION = zephyr-v2.2.0-844-g6c2451c5c0a6 -DKERNEL -D_FORTIFYRS_D_ZZ_HE_UR_ = 1 -I / home / swapna / Документы / Рабочая область / Zephyr_ESP / zp / zephyr / include -Izephyr / include / made -I / home / swapna / Документы / Рабочая область / Zephyr_ESP / zp / zephyr / soc / xtensa / esp32 -I / home / swapna / документы / рабочая область / Zephyr_ESP / zp / zephyr / soc / xtensa / esp32 / include -I / home / swapna / документы / рабочая область / Zephyr_ESP / zp / modules / hal / esp-idf / zephyr /../ Компоненты / esp32 / include -I / home / swapna / Документы / Рабочая область / Zephyr_ESP / zp / modules / hal / esp-idf / zephyr /../ компоненты / soc / esp32 / include -I / home / swapna / Documents / Workspace / Zephyr_ESP / zp / modules / hal / xtensa / include -I / home / swapna / Документы / Рабочая область / Zephyr_ESP / zp / modules / hal / xtensa / zephyr / soc / esp32 -isystem / home / swapna / Документы / Рабочая область / Zephyr_ESP / zp / zephyr / lib / libc / minimal / include -isystem /home/swapna/Documents/Workspace/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/ включить -is ystem /home/swapna/Documents/Workspace/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/include-fixed -Os -imacros / home / swapna / Documents /Workspace/Zephyr_ESP/zp/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -xassembler-with- cpp -imacros / home / swapna / Documents / Workspace / Zephyr_ESP / zp /zephyr/include/toolchain/zephyr_stdint.h -D_ASMLANGUAGE -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wointer-arith -Wno-unused-but-set -variable -Werror = неявный-int -fno-асинхронный-раскручивать-таблицы -fno-p ie -fno-pi c -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -функция -sections -fdata-section -mlongcalls -nostdin c -MD -MT modules / xtensa / CMakeFiles / modules_xtensa_hal.dir / src / hal / cache_asm.S.obj -MF modules / xtensa / CMakeFiles / modules_xtensa_hal.dir / src / hal / cache_asm.S.obj.d -o modules / xtensa / CMakeFiles / modules_xtensa_hal.dir / src / hal / cache_asm.S.obj - c / home / swapna / Documents / Workspace / Zephyr _ESP / ЗП / модули / гал / Xtensa / SRC / гал / cache_asm.S /home/swapna/Documents/Workspace/Zephyr_ESP/zp/modules/hal/xtensa/src/hal/cache_asm.S: Сообщения ассемблера: /home/swapna/Documents/Workspace/Zephyr_ESP/zp/modules/hal/xtensa/src/hal/cache_asm.S:186: Ошибка: неизвестный код операции или имя формата 'declfun c'

1 Ответ

0 голосов
/ 12 апреля 2020

Ошибка в пути к среде. 1. ESPRESSIF_TOOLCHAIN_PATH

Создайте приложение hello world на esp32, используя esp_guide . В соответствии с документацией о том, как построить путь набора инструментов, установлен в

$ HOME / .espressif / tools / xtensa-esp32-elf / esp-2020r1-8.2.0 / xtensa-esp32-elf /

Изменил этот параметр и попытался построить снова. Снова сборка не удалась ошибка

Сборка все еще не удалась. Я проверил вопросы, связанные с esp32 на GitHub. Наткнулся с на этот . Итак, я изменил код в соответствии с изменениями, упомянутыми в коммите. И вуаля !! Это сработало. Успешно собрал и прошил на esp32.
...