zig-esp-idf-sample icon indicating copy to clipboard operation
zig-esp-idf-sample copied to clipboard

Automate idf-sys.zig, Smaller libapp_zig.a builds.

Open joseph-montanez opened this issue 10 months ago • 5 comments

Depending on the version of Expressif's ESP-IDF struct fields can change, pins for certain series are more or less, easier ways to add in more built-in libs from IDF moving forward. Also allows using Zig as-is for RISCV (all except P4 work), so ZLS does not need a custom version either for RISCV.

Currently known issues.

  • [ ] macOS aarch64 - Unable to translate-c for Xtensa (ESP32, ESP32S2, ESP32S3), some assembly errors
  • [x] Xtensa wifi missing additional libs to be linked in cmake/zig-build.cmake
  • [x] If ESP32P4 fall back to kassane's custom Zig builds. It's currently the only RISCV not supported by Zig out of the box.
  • [x] Windows 10/11 testings
  • [x] Somethings like i2c still missing from idf-sys.zig (stubs.c just needs the headers included)

joseph-montanez avatar Feb 09 '25 10:02 joseph-montanez

Just a heads up some of these are failing due to "WOKWI_CLI_TOKEN" missing.

joseph-montanez avatar Feb 10 '25 01:02 joseph-montanez

Just a heads up some of these are failing due to "WOKWI_CLI_TOKEN" missing.

Yeah! your fork no has wokwi token access. Ignore wokwi error...

kassane avatar Feb 10 '25 12:02 kassane

Just a heads up some of these are failing due to "WOKWI_CLI_TOKEN" missing.

Yeah! your fork no has wokwi token access. Ignore wokwi error...

I meant your repo is producing those errors. I had setup one on my end, but it looks like Wokwi cli is broken on GitHub its not accepting the token.

joseph-montanez avatar Feb 10 '25 12:02 joseph-montanez

I meant your repo is producing those errors. I had setup one on my end, but it looks like Wokwi cli is broken on GitHub its not accepting the token.

That's strange! Because in the main branch it works normally.

kassane avatar Feb 13 '25 18:02 kassane

I'll be wrapping this up this week. I got really sick last week.

joseph-montanez avatar Feb 19 '25 14:02 joseph-montanez