Building Firmware Error

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
mauricio
Posts: 2
Joined: Wed May 13, 2020 7:56 am

Building Firmware Error

Post by mauricio » Wed May 13, 2020 8:02 am

Hello guys, I am new to this exciting journey using micropython.

I am following the steps of this link:
https://github.com/micropython/micropyt ... orts/esp32

but when after I run the command $ make, I am getting this error bellow:
~/micropython/ports/esp32$ make
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Building with ESP IDF v4
LINK build-GENERIC/bootloader.elf
/home/mauricio/.espressif/tools/xtensa-esp32-elf/esp-2020r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lrtc
collect2: error: ld returned 1 exit status
make: *** [Makefile:968: build-GENERIC/bootloader.elf] Error 1

Does anyone have a hint about how to solve this problem?

Many thanks,
Mauricio

mauricio
Posts: 2
Joined: Wed May 13, 2020 7:56 am

Re: Building Firmware Error

Post by mauricio » Thu May 21, 2020 9:14 pm

Hello Guys, I could solve my issue.

1) We have to checkout a micropython supported version of esp32 on ESP32 IDF folder
Supported git hash (v4.0) (experimental): 463a9d8b7f9af8205222b80707f9bdbba7c530e1
git checkout 463a9d8b7f9af8205222b80707f9bdbba7c530e1

2) Update all submodules
git submodule update --init --recursive

3) Make
make

:D

Post Reply