OLIMEX / ESP32-EVB

ESP32 WiFi / BLE Development board with Ethernet interface, Relays, microSD card
Apache License 2.0
250 stars 108 forks source link

CAN example #38

Closed GreenEllipsis closed 10 months ago

GreenEllipsis commented 2 years ago

Created a CAN bus example based on https://docs.espressif.com/projects/esp-idf/en/release-v3.3/api-reference/peripherals/can.html, but tailored to the ESP32-EVB.

Stanimir-Petev commented 2 years ago

Hello @GreenEllipsis and thanks for the PR. I am experiencing some issues building the project. I downloaded it from your fork of the repository with ESP-IDF 3.3.0 and 3.3.5 but in both cases I get the same error:


Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-97-gc752ad5d
Compiler version: 5.2.0
Python requirements from C:/Espressif/esp-idf_3.3.0/requirements.txt are satisfied.

Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "can_basic" version: 1
LD build/can_basic.elf
C:/Espressif/msys32/home/ESP32-EVB_CAN/build/esp32\libesp32.a(cpu_start.o):(.literal.main_task+0x18): undefined reference to `app_main'
C:/Espressif/msys32/home/ESP32-EVB_CAN/build/esp32\libesp32.a(cpu_start.o): In function `main_task':
C:/Espressif/esp-idf_3.3.0/components/esp32/cpu_start.c:552: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
make: *** [C:/Espressif/esp-idf_3.3.0/make/project.mk:483: /home/ESP32-EVB_CAN/build/can_basic.elf] Error 1

Is there anything I am missing in order to build it?

PS: Ignore the close/reopen of the pull request. I misclicked the button.

GreenEllipsis commented 2 years ago

Thanks for trying. I hope I find time to check it out.

On Fri, Apr 1, 2022 at 2:15 AM Stanimir-Petev @.***> wrote:

Hello @GreenEllipsis https://github.com/GreenEllipsis and thanks for the PR. I am experiencing some issues building the project. I downloaded it from your fork of the repository with ESP-IDF 3.3.0 and 3.3.5 but in both cases I get the same error:

— Reply to this email directly, view it on GitHub https://github.com/OLIMEX/ESP32-EVB/pull/38#issuecomment-1085467891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJO5WEBHXJTHJTYJRKZSRUDVC2H6NANCNFSM5R66LVCA . You are receiving this because you were mentioned.Message ID: @.***>