#ESPIDF

2025-11-17

Ищем ошибку в работе WiFi у платы ESP32-C3 SuperMini

Статья о небольшой эпопее с поиском ошибки в работе WiFi на плате ESP32-C3 SuperMini, с которой пришлось разбираться в процессе отладки кода прошивки для контроллера батареи АКБ ( О контроллере батареи ИБП (вопрос к читателям Хабра) и О контроллере батареи ИБП (часть 2) ). Симптоматика проблемы с WiFi следующая: после включения питания и начала авторизации по WiFi плата ESP32-C3 SuperMini через какое-то время зависает, вплоть до срабатывания сторожевого таймера. Поиск решения проблемы в интернете не помог, но было замечено, что в эти моменты на плате очень сильно нагревается стабилизатор напряжения 3.3V, да так, что даже рука не терпит, тогда как при работе тестовых примеров (где WiFi работает нормально) такого эффекта не наблюдается. Из-за этого решил копать именно в этом направлении.

habr.com/ru/companies/beget/ar

#ESP32C3 #ESP32C3_SuperMini #WiFi #отладка #ошибки #espidf

2025-10-11

With ESP-IDF, I created a custom flash partition table and stored the video streams in their own partitions. The app is under 300 KB, and it compiles, links, and flashes in 12 seconds.

Arduino can do custom partition tables. Maybe it can do custom workflow to build the filesystem images too. It would still take over a minute to compile, though.

🧵 12/N

#SoulCage #Arduino #ESP32 #ESPIDF

2025-10-11

I am moving the Soul Cage's firmware from Arduino to ESP-IDF. Arduino is completely unusable for developing this app.

I just measured a compile and upload time of 4:33. Four and a half minutes. That's 1:20 to compile and link, 0:49 of mysterious "indexing", and 2:24 to flash. Yeah, it's a huge image, about 15 MB.

What's it doing with 1:20 compile time? This is an 8 core CPU; that's about 2 trillion cycles.

🧵 11/N

#SoulCage #Arduino #ESP32 #ESPIDF

2025-09-23

My latest tutorial is out! How to use I2C on the #ESP32. I show how to talk to a real TMP102 sensor using #ESPIDF (and a virtual TMP105 sensor with #QEMU).
👇👇👇
shawnhymel.com/2954/esp32-how-

#IoT #microcontroller #embedded #programming #firmware

2025-08-31

**ESPHome update 2025.08.02: This little maneuvre will cost you … several days.**

(blog post)

TL;DR

Changing the ESPHome framework from Arduino to ESP-IDF is far from trivial. Don’t attempt it at home, if you’re a Home Assistant / ESPHome hobbyist with a poor C++ knowledge.

Read on…

After the last update of ESPHome, some of my compiled firmware images for my ESP32 boards suddenly became too big to fit in their memory. They said that Arduino libraries became too big and bloated. Yelp, I can’t update them anymore!

They (ESPHome developers) said we should switch from Arduion framework to ESP-IDF anyways, because it’s smaller, optimized and closer to the metal.

They said only a small change in esp configuration yaml is needed:

esp32:  board: esp32dev  framework:    type: arduino # <-- change to esp-idf

And that’s almost1 it!

You wish.

I changed the framework as described above (for one non-critical ESPCam).

I got compile errors (for my lambda functions). But wait, they said everything will work the same, no, even better!

But it looks like there are some differences between Arduino and ESP-IDF framework. For example, there is no String() in esp-idf! Isn’t that a … basic?

Ok, I surrendered and changed my lambda function that returned uptime in human readable format from:

- platform: uptime    name: ${devicename} Uptime in Days    id: uptime_sensor_days    update_interval: 60s    on_raw_value:      then:        - text_sensor.template.publish:            id: uptime_human            state: !lambda |-              int seconds = round(id(uptime_sensor_days).raw_state);              int days = seconds / (24 * 3600);              seconds = seconds % (24 * 3600);              int hours = seconds / 3600;              seconds = seconds % 3600;              int minutes = seconds /  60;              seconds = seconds % 60;              return (                (days ? String(days) + "d " : "") +                (hours ? String(hours) + "h " : "") +                (minutes ? String(minutes) + "m " : "") +                (String(seconds) + "s")              ).c_str();

Changed the last bold bit (return…) that caused compile errors to:

...std::string result;              if (days)    result += std::to_string(days) + "d ";              if (hours)   result += std::to_string(hours) + "h ";              if (minutes) result += std::to_string(minutes) + "m ";              result += std::to_string(seconds) + "s";              return result;

And then it compiled ok.

It also linked ok and uploaded firmware to my ESPCam.

Ping to my ESPCam worked, but sensors (camera web server, uptime, led switch,…) were unavailable.

ESPHome log returned only the following info:

changed lambda. log returns: Uploading: [============================================================] 100% Done... INFO Upload took 6.12 seconds, waiting for result... INFO OTA successful INFO Successfully uploaded program. INFO Starting log output from 192.168.0.15 using esphome API INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.000s INFO Trying to connect to esp32-cam01 @ 192.168.0.15 in the background INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.000s INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.001s INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.000s INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.000s INFO Successfully resolved esp32-cam01 @ 192.168.0.15 in 0.000s

The connection to ESPCam looks ok.

But it wouldn’t connect to ESPHome API:

WARNING Can't connect to ESPHome API for esp32-cam01 @ 192.168.0.15: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.0.15', port=6053))]: [Errno 111] Connect call failed ('192.168.0.15', 6053) (SocketAPIError)

I really wasn’t in the mood to research what went wrong and which part of my ESPCam configuration code is not compatible with ESP-IDF.

So I ditched esp-idf framework, reverted it back to arduino, recompiled, uploaded and my espcam works again.

Yes, I’ve searched for possible solutions2, but couldn’t find any that I could use.

My other ESP32 board (the one that has suddenly too big firmware after ESPHome update) will obviously stay in un-updated state for the rest of it’s life. I don’t wan’t to deal with breaking changes, modifying the code, re-learning C++ just to make it work again.

And this little maneuver caused me few days. Don’t go the same path.

Or, if the framework change works for you, please let me know.

Or, maybe I’ll try again when the issues3 are resolved.

  1. Official guide says: … Component Compatibility: Some components may need to be replaced with ESP-IDF compatible alternatives (<— WHICH ONES???)
    Library Differences: Arduino-specific libraries won’t be available (<— WHICH ONES???) ↩︎
  2. Of course I checked the official guide: https://esphome.io/guides/esp32_arduino_to_idf/. When I read I should go to their Discord for help, I just gave up. ↩︎
  3. https://github.com/esphome/esphome/issues ↩︎

https://blog.rozman.info/esphome-update-2025-08-02-this-little-maneuvre-will-cost-you-several-days/

#arduino #espIdf #espcam #ESPHome #homeassistant #lambda

screenshot from home assistant showing espcam sensors like web stream, uptime, ledscreenshot from home assistant showing espcam basic datascreenshot from home assistant showing espcam basic data like ip, uptime, version
Patrick Van Oosterwijckxorbit@noc.social
2025-08-27

Of course, you are free to use any #dev environment you want, but you will likely have to roll the networked access yourself. 😅
I'm looking into #arduino, #espidf and #esphome support at the minimum. Any other #software #support you would like to see?

2025-08-26

In #ESPIDF, `idf.py build` calls CMake under the hood. Ignoring Kconfig parameters, you can manually build #ESP32 projects with:

cmake -DIDF_TARGET=esp32s3 -G "Ninja" -S . -B build/
cmake --build build/

Check out my full post: shawnhymel.com/2920/esp32-how- #IoT #embedded

Turns out that a short sidequest into #embedded dev is a good way of getting more hands on understanding of pointers.

At least as long as you avoid #arduino's software ecosystem. I worked with Arduino for years and I don't think I had to ever use a pointer, meanwhile #espidf basically forces you to understand them if you want to get anything done.

#programming #coding #esp32

2025-08-12

Want to move beyond #Arduino on the ESP32? My latest tutorial shows how to set up ESP-IDF with Docker, build a blinky app, and flash it to hardware. Also: emulate it in #QEMU!
👇👇👇
shawnhymel.com/2872/esp32-gett

shawnhymel.com/2872/esp32-gett

#esp32 #espidf #IoT #microcontroller #embedded

RevK :verified_r:revk@toot.me.uk
2025-08-11

Arg, tinyusb_msc_sdmmc #ESPIDF

So has callbacks for mount/unmount, and naturally I assumed this was when host computer mounts/unmounts the SD.

No, it is not, it is that when not mounted by USB host, tinyusb mounts locally for you, and unmounts when USB mounts the SD card, to avoid clash.

Except it does not start mounted. It mounts when USB disconnects. This is bad if USB charger not host, as starts unmounted. It can't be mounted before starting tinyusb either as it then tries to mount...

2025-07-28

Kennt sich jemand mit C++ im Bereich Lowlevel im Zusammenhang mit esp-idf insbesondere rmt für #esphome aus?
Ich würde gerne ein Projekt auf den aktuellen Esphome Stand bringen, damit es auch wieder kompillierbar ist. Ich verzweifel an RMT und könnte da Hilfe brauchen.

Gerne teilen und sich bei mir melden.

#programmieren #cpp #esp #esp32 #espidf #diy #elektronik

2025-07-20

Программирование ESP32 с ESP-IDF в среде platformio #3

Привет, Хабр! Это четвертая статья из цикла по ESP-IDF. Как и обещал, сегодня мы рассмотрим мьютексы и семафоры на простых (и не очень) примерах.

habr.com/ru/articles/923128/

#esp #espidf

2025-06-30

oh cool. just learned #espidf build system now has facilities to override the bootloader from within a project. Many of my projects only use BLE so I find building/shipping the WiFi blob annoying bloat. I've long wanted to build OTA into the bootloader and use boot partition selection and `esp_reboot()` for handling OTA. I have several projects that would benefit from this right away.

2025-06-25

Unit testing in ESP-IDF is probably the least developer-friendly thing in the world. Frustrating evening!

#Coding #Programming #Espressif #esp #esp32 #espidf

2025-06-23

Программирование ESP32 с ESP-IDF в среде platformio #2

Привет, Хабр! Это третья статья из цикла по ESP-IDF. Ранее мы разобрали стек задач, работу с GPIO и прерывания. Теперь перейдём к очередям FreeRTOS — мощному инструменту для безопасного обмена данными между ISR и задачами. Поехали!

habr.com/ru/articles/920636/

#esp32 #espidf

2025-06-18

Программирование ESP32 с ESP-IDF в среде platformio #1

Привет, Хабр! Это уже вторая статья из цикла по программированию ESP32 с использованием фреймворка ESP-IDF. В #0 статье мы познакомились с общей терминологией RTOS и написали парочку задач (Task). В этой статье, как я и обещал, мы поработаем с с GPIO, ISR и поговорим немного о стеке (спасибо за совет @0x6b73ca )

habr.com/ru/articles/919362/

#esp32 #espidf

2025-06-15

Программирование ESP32 с ESP-IDF в среде platformio #0

Привет хабр! Совсем недавно мне в руки попала плата ESP32 (NodeMCU‑32S). Ранее я уже работал с ESP8266 и даже создавал на ней простейшее веб‑приложение в режиме Station. Делал я все это в ArduinoIDE и был рад обнаружить расширение, которое позволяло организовать мой проект (да и просто в VSCode удобнее работать) - PlatformIO . Именно в PlatformIO я в первый раз увидел фреймворк ESP-IDF и начал потихоньку углубляться в эту тему.

habr.com/ru/articles/918434/

#esp32 #espidf

2025-05-27

Week 1025 - scanning and planning

@amcewen tidies up the move to a newer version of #ESPIDF; @defnetmedia looks at a website refresh; @huffeec does some #3Dscanning and some rather sweet #3Dprinting and #LED work as we look towards this week's #OHS2025

mcqn.com/posts/week-1025-scann

#weeknotes

2025-05-23

E-paper Arduino термометр на ESP-IDF

Наверное каждый любитель электроники имеет в запасе модули приобретенные на всякий случай. Так несколько лет назад я не смог пройти мимо 1.5 дюймового E-Ink дисплея, лежащего на витрине радиомагазина. Через некоторое время нашлось для него применение. В статье ESP32 E-Paper Thermometer описывается, как отображать окружающую температуру, измеренную с помощью датчика DS18B20. Проект выполнен в Arduino IDE. Но я решил пройти "Путь самурая" и портировать код на ESP-IDF. Пришлось немного повозится с библиотеками для работы с дисплеем. На этом мой путь не окончился, как говорят: "У самурая нет цели, есть только путь". И я решил, что было бы неплохо добавить еще несколько сенсоров, измеряющих влажность, давление, CO2, а потом отправлять эти данные по MQTT. В том же радиомагазине был приобретен фанерный домик-конструктор со светодиодным ночником. А в другом магазине - модуль с датчиками. Таким образом родилась идея сконструировать Micro-smart-home. На передней части домика расположен дисплей на пластиковых стойках. А с другой стороны расположен модуль с сенсорами.

habr.com/ru/articles/912324/

#esp32 #espidf #Arduino #adafruit #ds18b20 #CCS811 #BMP280 #Si7021 #eink

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst