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

Can't compile using PlatgormIO #63

Open
samarkh opened this issue Jan 8, 2024 · 3 comments
Open

Can't compile using PlatgormIO #63

samarkh opened this issue Jan 8, 2024 · 3 comments

Comments

@samarkh
Copy link

samarkh commented Jan 8, 2024

Hi
I get a whole load of "error: 'debuggingMode' was not declared in this scope" errors when I try to build this project using PlatformIO.
I have no problems using Arduino 2.x.
Has anyone got any suggestions?

Yours Simon M.

@klasrocket
Copy link

Hi.
I ran into the same problem. Found a workaround by adding
extern boolean debuggingMode;
next to:
extern QueueHandle_t callbackQueue;

in the end of file: esp32_can_builtin.h
I did not investigate much further since I'm only gonna use the built in can-controller.

@klasrocket
Copy link

Seemed to pass the build process but got stuck at linking..


Dependency Graph
|-- can_common @ 0.3.0
|-- ESP32_CAN @ 0.2.5
|-- SPI @ 2.0.0
Building in release mode
Linking .pio/build/esp32doit-devkit-v1/firmware.elf
/home/linus/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32doit-devkit-v1/lib252/libESP32_CAN.a(esp32_can_builtin.cpp.o):(.literal._ZN8ESP32CAN10_setFilterEjjb+0x0): undefined reference to `debuggingMode'
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32doit-devkit-v1/firmware.elf] Error 1

@klasrocket
Copy link

Finally got it uploaded using even uglier workaround by initiating the boolean in begining of each function were used :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants