esp32-hal-spi.c doesn't compile with 3.2.0
See original GitHub issueHi!
I’ve recently updated the platform to release 3.2.0 and my code doesnt’ compile:
C:\Users\luca\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c: In function 'spiTransferBytesNL':
C:\Users\luca\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:922:39: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
C:\Users\luca\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:923:40: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
Compiling .pio\build\lolin32\FrameworkArduino\main.cpp.o
uint8_t * last_data8 = &last_data;
If I revert to 3.1.1, everything works fine. Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
esp32-hal-spi.c doesn't compile with 3.2.0 - Bountysource
I've recently updated the platform to release 3.2.0 and my code doesnt' compile: C:\Users\luca\.platformio\packages\framework-arduinoespressif32 ...
Read more >Compiling error - ESPHome - Home Assistant Community
esp32 -hal-spi.c doesn't compile with 3.2.0 It seems like the fix is simple and already in place in arduino-esp32 version 2.0+. Not sure...
Read more >Cannot compile with 2.0.0RC1 in PlatformIO #5436 - GitHub
It seems to pickup a newer version of toolchain-xtensa32 but not toolchain-xtensa-esp32. Nonetheless it still fails the same way. Linking .pio\ ...
Read more >Updating ESP32 Platform / Arduino Framework
I am trying to resolve a BLE problem and wanted to update to the latest stable ESP32 Arduino Framework : ESP32 Arduino Release...
Read more >espressif/arduino-esp32 - Gitter
The compile issue is an annoyance with IDF V4, but it is not his problem. Enabling the Debug buffer would show the exactly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@valeros It seems like arduino-esp32 has fixed this bug in April 2021? Can this simple change to
esp-hal-spi.c
be applied to the platformio codebase as well?thanks @Jason2866 just rerunning it solved it at some point