I started to see this warning, is there something I have to do to fix it? or is something in the ESPHome queue that will be addressed with the next release?
Compiling /data/esp32-01/.pioenvs/esp32-01/FrameworkArduino/esp32-hal-spi.c.o
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function 'spiTransferBytesNL':
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
I have this message also, and the ESP32 complied code does not boot correctly after flashing the binary via USB serial.
Here is a snippet from the compiler log including a couple of lines before and after the error, plus some of the ESP32 serial log.
Source code verifies fine in ESPhome. Is this likely to be a coding problem in my ESPhome code, or the compiler ?
Compiling /data/irrigation-controller/.pioenvs/irrigation-controller/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling /data/irrigation-controller/.pioenvs/irrigation-controller/FrameworkArduino/esp32-hal-spi.c.o
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c: In function 'spiTransferBytesNL':
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
/data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
^
Compiling /data/irrigation-controller/.pioenvs/irrigation-controller/FrameworkArduino/esp32-hal-time.c.o
Compiling /data/irrigation-controller/.pioenvs/irrigation-controller/FrameworkArduino/esp32-hal-timer.c.o
Compiling does complete, but I get this from serial terminal after the ESP32 reboots.
Hey can anyone recommend where I should repost this sort of low level issue ?
I’ve checked over my ESPhome code as best as I can, and it Validates fine, but as above, it hits a compiler error AND the binary does not run on the ESP32. I need to find some help to progress to a solution, just not sure where to ask as it seems here might not be the best place in hindsight…