Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors after upgrade from 2.3.4 to 2.3.5 #2685

Closed
3 tasks done
KenkiCK opened this issue Apr 4, 2025 · 3 comments
Closed
3 tasks done

Compilation errors after upgrade from 2.3.4 to 2.3.5 #2685

KenkiCK opened this issue Apr 4, 2025 · 3 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project

Comments

@KenkiCK
Copy link

KenkiCK commented Apr 4, 2025

Describe the problem

After Upgrade the Arduino IDE I get compilation errors for the Heltec_ESP32_Dev-Boards library. Before the upgrade it works without problems.

To reproduce

Compile a heltec lora 32 (V3) board code.

#include <WiFi.h>
#include <PubSubClient.h>
#include <HT_SSD1306Wire.h>
void setup() {}
void loop() {}

Compilation fails:

d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c: In function 'sx126xSleep':
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c:247:5: error: implicit declaration of function 'delay'; did you mean 'Delay'? [-Wimplicit-function-declaration]
  247 |     delay( 2 );
      |     ^~~~~
      |     Delay
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c: In function 'SX126xGetPacketStatus':
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c:731:13: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  731 |             memset( pktStatus, 0, sizeof( PacketStatus_t ) );
      |             ^~~~~~
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx126x.c:9:1: note: 'memset' is defined in header '<string.h>'; this is probably fixable by adding '#include <string.h>'
    8 | #include "esp_sleep.h"
  +++ |+#include <string.h>
    9 | /*!
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx1262-board.c: In function 'SX126xWaitOnBusy':
d:\Chris\Dokumente\Arduino\libraries\Heltec_ESP32_Dev-Boards\src\driver\sx1262-board.c:82:17: error: implicit declaration of function 'lora_printf'; did you mean 'log_printf'? [-Wimplicit-function-declaration]
   82 |                 lora_printf("spi timeout\r\n");
      |                 ^~~~~~~~~~~
      |                 log_printf
exit status 1

Compilation error: exit status 1

Expected behavior

Sketch compiles without error.

Arduino IDE version

2.3.5

Operating system

Windows

Operating system version

11

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@KenkiCK KenkiCK added the type: imperfection Perceived defect in any part of project label Apr 4, 2025
@ClaudeBoemare
Copy link

I had a similar problem, I solved by downgrade the expressif board file from 3.2.0 to 3.1.3

@KenkiCK
Copy link
Author

KenkiCK commented Apr 5, 2025

Many thanks, I tried and it works for me too. Great and again, many thanks for you help.
Chris

@KenkiCK KenkiCK closed this as completed Apr 5, 2025
@jgrowdon
Copy link

jgrowdon commented Apr 5, 2025

Hey KenkiCK - I had the same problem. I decoded the error messages and fixed the problem by editing two of the include files:

  1. sx1262-boards.c - at the top of this file, change the statement "lora_printf" to "log_printf"
  2. radio.c - you have to add the standard Arduino include file: #include "Arduino.h"

When I made those two changes in the src/driver files, it fixed the compile problems.

John G.

@per1234 per1234 self-assigned this Apr 7, 2025
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants