ESP32 Emulation with QEMU

Поділитися
Вставка
  • Опубліковано 8 тра 2022
  • We walk through getting an emulator up and running for the ESP32 with debugging using QEMU.
    ESP32 course learnesp32.com
    Patreon / mairswartz
  • Наука та технологія

КОМЕНТАРІ • 23

  • @Vadaliya
    @Vadaliya 2 роки тому +2

    Thank you for the amazing videos. your FreeRTOS video teaches me a lot. Thanks again. keep it up...🙏🏼

  • @Phoe
    @Phoe 2 роки тому +3

    Thank you for your videos. They are really helpful

  • @bobby9568
    @bobby9568 9 місяців тому +1

    Just came across your channel, amazing!

  • @sjurgrnnevikwroldsen4086
    @sjurgrnnevikwroldsen4086 Рік тому +1

    Been watching this video again as I've been working with QEMU. Still super awesome. You can actually quit the simulator by hitting "Ctrl-A X" in order :)

    • @vladt4010
      @vladt4010 6 місяців тому

      Thx for `Ctrl-A X` !

  • @tiagosilas92
    @tiagosilas92 Рік тому

    Thank you good job!!

  • @peterhayman
    @peterhayman Рік тому

    Thank you! 🙏🌻🙏

  • @MANTEKIT
    @MANTEKIT 11 місяців тому

    how to make qemu-system-xtensa command available in my system?

  • @electrotsmishar
    @electrotsmishar Рік тому

    super cool

  • @tomy983
    @tomy983 3 місяці тому

    Installed Docker desktop, docker vscode extension from microsoft, but cannot find "Remote-container: " in command palette. What am I missing?

  • @usmanmehmood55
    @usmanmehmood55 2 роки тому +2

    Can this be used for the RiscV version? Specifically for the ESP32-C3?

    • @kibels894
      @kibels894 2 роки тому +3

      RISC-V should have even better QEMU support but haven't tried it personally, looks like you'd be setting it up from scratch though

    • @JustAnotherAlchemist
      @JustAnotherAlchemist Рік тому

      Also looking for this exact information. +1.
      @Keegan L: Would be nice to know exactly what "setting it up from scratch" entails. Probably more work than getting the actual hardware and using OpenOCD... which I already have working but was a total PITA.

  • @steved1122
    @steved1122 2 роки тому

    Thank you for thé amazing vidéos !!!!! Continous freertos with esp-idf ;-)!

  • @ChipWeinberger
    @ChipWeinberger Рік тому

    great video!

  • @alessiozamboni4694
    @alessiozamboni4694 4 місяці тому

    The tutorial seems kind of trivial because it doesn't deal with any hardware port. How can I emulate esp32 BLE and/or GPIO without having to flash the code on the actual device? if so how can i do?

  • @EviL0R3nz
    @EviL0R3nz Рік тому

    Really great man

  • @estevaofonsecaveiga7409
    @estevaofonsecaveiga7409 8 місяців тому +1

    Awesome as always! Please create and video for debugging ESP32-s3 using Built-in JTAG Interface over USB, Thanks in advance!

  • @JustAnotherAlchemist
    @JustAnotherAlchemist Рік тому

    OK... cool! Now do this exact same video... only for the ESP32 *C3* variant. The chip with the RISC-V CPU, instead of the stupid Tensilica xtensa proprietary trash.

  • @PestisNonSapien_GMO_exHuman
    @PestisNonSapien_GMO_exHuman Рік тому +1

    Run a container inside a container... haha

  • @mousbleu
    @mousbleu Рік тому

    I struggled a bit to try to get it working, but it seems that it's not yet compatible with Apple M1/M2 ARM chips. I get :
    "qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory"

  • @mustin2450
    @mustin2450 Рік тому

    Thanks for the great worke! I am struggling a little with some details maybe it is something very stupid but I can't run the any command. trying to merge the bin files I always get following errors by entering the full instruction or a reduced instruction or even the suggestion of Sjur: root@677806f5c889:/# /./opt/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32c3 merge_bin --output result.bin --fill-flash-size 2MB 0x0 build/bootloader/bootlaoder.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/QEMUTest.bin --flash_mode dio --flash_freq 80m --flash_size 2MB
    bash: /./opt/esp-idf/components/esptool_py/esptool/esptool.py: No such file or directory
    root@677806f5c889:/# esptool.py --chip esp32c3 merge_bin --output result.bin --fill-flash-size 2MB 0x0 build/bootloader/bootlaoder.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/QEMUTest.bin --flash_mode dio --flash_freq 80m --flash_size 2MB
    usage: esptool merge_bin [-h] --output OUTPUT [--format {r,a,w}] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
    [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size {keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
    [--spi-connection SPI_CONNECTION] [--target-offset TARGET_OFFSET] [--fill-flash-size {256KB,512KB,1MB,2MB,4MB,8MB,16MB,32MB,64MB,128MB}]
    [ ...]
    esptool merge_bin: error: argument : [Errno 2] No such file or directory: 'build/bootloader/bootlaoder.bin'
    root@677806f5c889:/# esptool.py --chip esp32c3 merge_bin --fill-flash-size 2MB -o flash_image.bin @flash_args
    Traceback (most recent call last):
    File "/opt/esp/python_env/idf5.1_py3.8_env/bin/esptool.py", line 34, in
    esptool._main()
    File "/opt/esp/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/esptool/__init__.py", line 1022, in _main
    main()
    File "/opt/esp/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/esptool/__init__.py", line 620, in main
    argv = expand_file_arguments(argv or sys.argv[1:])
    File "/opt/esp/python_env/idf5.1_py3.8_env/lib/python3.8/site-packages/esptool/__init__.py", line 882, in expand_file_arguments
    with open(arg[1:], "r") as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'flash_args'