maxis-code-logo

Maxis Code

ESP32 ESP-IDF M1 Mac


ESP32 ESP-IDF M1 Mac-cover-image
Photo by: Diane Picchiottino - https://unsplash.com/@diane_soko

Installing ESP-IDF on M1 has some quirks.

Here are some tips.

  • make sure to use at least version 4.3.1
    • If you are on an M1, the one that was installed from the main docs did not work and ./install.sh will say unsupported architecture

Troubleshooting

SSL:CERTIFICATE_VERIFY_FAILED

You might see this error when running the tools setup step.

1cd ~/esp/esp-idf 2./install.sh
1WARNING: Download failure <urlopen error [SSL:CERTIFICATE_VERIFY_FAILED] 2certificate verify failed: unable to get local issuer certificate

Solution:

You need to run the Python: Install Certificates.command like this.

gen_crt_bundle.py: Invalid certificate in cacrt_all.pem

You might see this error when trying to build the hello world example.

1idf.py build
1gen_crt_bundle.py: Invalid certificate in cacrt_all.pem Invalid certificate

Solution:

Remove the EC-ACC certificate from the cacrt_all.pem file, like this person, mentions on github.

Things to remember

  • to start using IDF, after creating an alias
1get_idf
  • you can combine commands
1idf.py -p /dev/cu.usbserial-0001 flash monitor

Comments


Please sign in to view and leave comments...