question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

esp32-hal-spi.c doesn't compile with 3.2.0

See original GitHub issue

Hi!

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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Blend3rmancommented, Jan 3, 2022

@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?

0reactions
FPMilancommented, Nov 6, 2022

thanks @Jason2866 just rerunning it solved it at some point

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found