ESP32 CAN demo on Olimex ESP32 REVB compile issue
Posted: Wed Jun 14, 2017 1:11 pm
Hey Guys,
I am gonna be honest, i am a major beginner when it comes to this stuff, I can bumble my way through on most things though.
SO i purchased one of Olimex fantastic ESP32 Dev boards Rev B because i had see a article on Hackaday about CAN support on the ESP32 and i wanted to try it out, i have a project in mind that sends CAN data over bluetooth but thats a liittle ahead of myself.
I have managed to, through following some fantastic tutorials provided by this community get my Windows PC working with the ESP-IDF. I have flashed my ESP a few times, including a websockets example i found on github. However when i have tried to flash the CAN demo that Rudi and Thomas Barth had created i am having a few compiling issues, I read through the forun post about the CAN controller and from my understanding after i downloaded the Demo file, i shouldn't need to ad the DRV folder containing CAN into the include files within ESP-IDF however when i try to compile i am met with this error
$ make
CC //main.o
AR libmain.a
LD CAN_demo.elf
C:/msys32/home/rossf/esp/esp-idf/examples/ESP32_CAN_demo/build/main\libmain.a(main.o):(.literal.task_CAN+0x0): undefined reference to `CAN_cfg'
collect2.exe: error: ld returned 1 exit status
make: *** [C:/msys32/home/rossf/esp/esp-idf/make/project.mk:323: /home/rossf/esp/esp-idf/examples/ESP32_CAN_demo/build/CAN_demo.elf] Error 1
Undefined reference to me seems to suggest that the CAN.cfg file is being pointed to but the file isn't there, Acting on that hunch, i tried moving the files inside the DRV file into the make directory with no luck.
If anybody has some information on where i am going wrong that would be great.
Thanks
Ross
I am gonna be honest, i am a major beginner when it comes to this stuff, I can bumble my way through on most things though.
SO i purchased one of Olimex fantastic ESP32 Dev boards Rev B because i had see a article on Hackaday about CAN support on the ESP32 and i wanted to try it out, i have a project in mind that sends CAN data over bluetooth but thats a liittle ahead of myself.
I have managed to, through following some fantastic tutorials provided by this community get my Windows PC working with the ESP-IDF. I have flashed my ESP a few times, including a websockets example i found on github. However when i have tried to flash the CAN demo that Rudi and Thomas Barth had created i am having a few compiling issues, I read through the forun post about the CAN controller and from my understanding after i downloaded the Demo file, i shouldn't need to ad the DRV folder containing CAN into the include files within ESP-IDF however when i try to compile i am met with this error
$ make
CC //main.o
AR libmain.a
LD CAN_demo.elf
C:/msys32/home/rossf/esp/esp-idf/examples/ESP32_CAN_demo/build/main\libmain.a(main.o):(.literal.task_CAN+0x0): undefined reference to `CAN_cfg'
collect2.exe: error: ld returned 1 exit status
make: *** [C:/msys32/home/rossf/esp/esp-idf/make/project.mk:323: /home/rossf/esp/esp-idf/examples/ESP32_CAN_demo/build/CAN_demo.elf] Error 1
Undefined reference to me seems to suggest that the CAN.cfg file is being pointed to but the file isn't there, Acting on that hunch, i tried moving the files inside the DRV file into the make directory with no luck.
If anybody has some information on where i am going wrong that would be great.
Thanks
Ross