Location of CAN driver / example
Posted: Fri Feb 10, 2023 1:35 pm
Hello,
I am currently trying to include CAN functionality to my project.
I read about the CAN peripheral under the following link:
https://docs.espressif.com/projects/esp ... s/can.html
After reading through the documentation, I wanted to try out the examples, which according to the doc should be located under .../peripherals/can/...
But unfortunately I cannot find a 'can' folder under .../esp-idf/examples/peripherals inside my esp-idf installation.
I also cannot find the can.h header under ...esp-idf/components/driver/include/driver
My esp-idf version is I assume quite recent: 'idf.py --version' returns in terminal 'ESP-IDF v5.1-dev-1626-g4b6d9c8ad3'
I also checked the github repo for the esp-idf folder hierarchy under:
https://github.com/espressif/esp-idf/tr ... eripherals
but I still could not spot the 'can' folder.
I also tried to simply #include "driver/can.h" in my app, but I receive an error during the build process:
fatal error: driver/can.h: No such file or directory
23 | #include "driver/can.h"
I may have overlooked the CAN folders and files, but as I could not find them myself I wanted to ask where are the CAN folder and driver actually located and how can I test the CAN examples and include the CAN functionality in my app ?
Thanks in advance
I am currently trying to include CAN functionality to my project.
I read about the CAN peripheral under the following link:
https://docs.espressif.com/projects/esp ... s/can.html
After reading through the documentation, I wanted to try out the examples, which according to the doc should be located under .../peripherals/can/...
But unfortunately I cannot find a 'can' folder under .../esp-idf/examples/peripherals inside my esp-idf installation.
I also cannot find the can.h header under ...esp-idf/components/driver/include/driver
My esp-idf version is I assume quite recent: 'idf.py --version' returns in terminal 'ESP-IDF v5.1-dev-1626-g4b6d9c8ad3'
I also checked the github repo for the esp-idf folder hierarchy under:
https://github.com/espressif/esp-idf/tr ... eripherals
but I still could not spot the 'can' folder.
I also tried to simply #include "driver/can.h" in my app, but I receive an error during the build process:
fatal error: driver/can.h: No such file or directory
23 | #include "driver/can.h"
I may have overlooked the CAN folders and files, but as I could not find them myself I wanted to ask where are the CAN folder and driver actually located and how can I test the CAN examples and include the CAN functionality in my app ?
Thanks in advance