Zephyr not working on MacOs
Nitin Ajay <nitin@...>
Hi I installed zephyr on Mac with M1 silicon. I am trying to run zephyr with the ESP32 development kit. When I try running the command west build It gives the following error: [1/159] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h zephyr/include/generated/otype-to-size.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h cd /Users/nitinkajay/zephyrproject/zephyr/build/zephyr && /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py --kobj-types-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h --kobj-size-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h --include /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json Traceback (most recent call last): File "/Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py", line 62, in <module> import elftools ModuleNotFoundError: No module named 'elftools' [2/159] Generating include/generated/driver-validation.h FAILED: zephyr/include/generated/driver-validation.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h cd /Users/nitinkajay/zephyrproject/zephyr/build/zephyr && /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py --validation-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h --include /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json Traceback (most recent call last): File "/Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py", line 62, in <module> import elftools ModuleNotFoundError: No module named 'elftools' Please let me know how to mitigate this. Regards, Nitin |
|
Kumar Gala <galak.kernel@...>
Did you install the python packages?
toggle quoted message
Show quoted text
pip3 install -r ~/zephyrproject/zephyr/scripts/requirements.txt (Step 4 here) https://docs.zephyrproject.org/latest/develop/getting_started/index.html#get-zephyr-and-install-python-dependencies - k On Jun 13, 2022, at 1:23 AM, Nitin Ajay <nitin@...> wrote: |
|
Nitin Ajay <nitin@...>
Hi Kumar, Yes I installed all the packages that were mentioned in the site. I was able to get rid of the error also. But then when I try to run the west flash after running west build command, I get the following error: -- west flash: rebuilding ninja: no work to do. -- west flash: using runner esp32 -- runners.esp32: Flashing esp32 chip on None (921600bps) esptool.py v3.3 Found 3 serial ports Serial port /dev/cu.wlan-debug /dev/cu.wlan-debug failed to connect: [Errno 16] could not open port /dev/cu.wlan-debug: [Errno 16] Resource busy: '/dev/cu.wlan-debug' Serial port /dev/cu.usbserial-0001 Connecting...................................... /dev/cu.usbserial-0001 failed to connect: Failed to connect to Espressif device: Wrong boot mode detected (0x13)! The chip needs to be in download mode. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html Serial port /dev/cu.Bluetooth-Incoming-Port Connecting...................................... /dev/cu.Bluetooth-Incoming-Port failed to connect: Failed to connect to Espressif device: No serial data received. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html A fatal error occurred: Could not connect to an Espressif device on any of the 3 available serial ports. FATAL ERROR: command exited with status 2: /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/nitinkajay/zephyrproject/modules/hal/espressif/components/esptool_py/esptool/esptool.py --chip auto --baud 921600 --before default_reset --after hard_reset write_flash -u --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /Users/nitinkajay/zephyrproject/build/esp-idf/build/bootloader/bootloader.bin 0x8000 /Users/nitinkajay/zephyrproject/build/esp-idf/build/partitions_singleapp.bin 0x10000 /Users/nitinkajay/zephyrproject/build/zephyr/zephyr.bin Nitin On Mon, 13 Jun 2022 at 21:09, Kumar Gala <galak.kernel@...> wrote: Did you install the python packages? |
|