Skip to content

Increased ESP Size, Fix ESP32C2 and STM103TB build - #2056

Merged
zackees merged 4 commits into
FastLED:masterfrom
bmorcelli:CI-CD_fixes
Aug 15, 2025
Merged

zackees merged 4 commits into
FastLED:masterfrom
bmorcelli:CI-CD_fixes

Conversation

@bmorcelli

Copy link
Copy Markdown
Contributor

Fixed ESP32C2 CI/CD build, due to pio cache configurations

Fixed STM103TB build, wasn't set in boards.py and it must use the legacy fastpin structure

Due to Arduino-ESP32 framework updates, the binary size has increased a little bit, not a FastLED problem, so I increased the size a little bit in the workflow.

Fixed ESP32C2 CI/CD build, due to pio cache configurations

Fixed STM103TB build, wasn't set in boards.py and it must use the legacy fastpin structure

Due to Arduino-ESP32 framework updates, the binary size has increased a little bit, not a FastLED problem, so I increased the size a little bit in the workflow.
@zackees

zackees commented Aug 14, 2025

Copy link
Copy Markdown
Member

Nice CL. I'm assuming you figured this out with AI?

@zackees

zackees commented Aug 14, 2025

Copy link
Copy Markdown
Member
image

Are you sure this can just be swapped out? This was a strictly typed field, now you're putting a loosegoosy dict in it's place.

The rest of the CL is great, except this part. I love type strictness - the lack of it means the AI goes rogue and starts doing god knows what.

@bmorcelli

bmorcelli commented Aug 14, 2025 •

Copy link
Copy Markdown
Contributor Author

Nice CL. I'm assuming you figured this out with AI?

Yes, I got this suggestion there, but this cache part is not the solution for ESP32-C2 yet

I was able to build the examples locally, but not in the Arduino Workflow.. pioarduino states it must use the "Hybrid compile" which leads to use

[env:esp32-c2-devkitm-1]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino, espidf
board = esp32-c2-devkitm-1
monitor_speed = 115200

but their example in the REadme is wrong (ir says framework = arduino only)

@zackees

zackees commented Aug 14, 2025

Copy link
Copy Markdown
Member

What's going on with cache_config?

@FastLED FastLED deleted a comment from claude Bot Aug 14, 2025
@FastLED FastLED deleted a comment from claude Bot Aug 14, 2025
Exclude cache for espidf frameworks that can´t compile with this solution
@bmorcelli

Copy link
Copy Markdown
Contributor Author

Hey man, finaly found the issue with esp32c2

this board is not fully supported by Arduino IDE (Arduino-Esp32 ans pioarduino) so it needs to be built with an "Arduino as component" configuration, in the "Hybrid compile" as stated in pioarduino readme, but the instructions are wrong there, because it must use framework = arduino, espidf

in the official Arduino-ESP32 readme, it gives only this info

Note

ESP32-C2 is also supported by Arduino-ESP32 but requires using Arduino as an ESP-IDF component or rebuilding the static libraries.
For more information, see the Arduino as an ESP-IDF component documentation or the
Lib Builder documentation, respectively.

To build in this hybrid mode, you need to specify 2 compile flags specific to CMake, which can't be dome by the usual build_flags from platformio, so you need to add a sdkconfig.defaults file with these flags, that are:

[sdkconfig.defaults]
CONFIG_FREERTOS_HZ=1000
CONFIG_AUTOSTART_ARDUINO=y

it makes possible to build the project with pio run, but when running from ./compile --no-interactive --log-failures failures esp32c2 | tee build.log the cache used in this environment doesn't have access to the espidf support files that are necessary to build for esp32c2 board, so that is the reason I changed the ci/compiler/cache_setup.scons file

and I rolledback the changes I´ve made in the pio.py cache instructions, as they were irrelevant here.

@bmorcelli

Copy link
Copy Markdown
Contributor Author

Now it is failing in the CPP Check.. I will keep looking..

Cache now reads the necessary folders to build esp-idf with Arduino as component.

build takes longer in this env due to the usage of 2 frameworks (more stuff to compile)
@bmorcelli

Copy link
Copy Markdown
Contributor Author

All checks are passing, it's working now!

@zackees
zackees merged commit 8ed2ea8 into FastLED:master Aug 15, 2025
@zackees

zackees commented Aug 15, 2025

Copy link
Copy Markdown
Member

REALLY appreciate the help!

@bmorcelli

Copy link
Copy Markdown
Contributor Author

You're welcome! I really appreciated the challenge! Learned a couple of things today dealing with it today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants