And I always have the following error when compiling:
[Error] main.cpp@11,1: ‘CAN’ does not name a type; did you mean ‘CAN1’?
[ERROR] .\main.cpp:11:1: error: ‘CAN’ does not name a type; did you mean ‘CAN1’?
The LED and SPI ones works fine.
I am using the latest version of the Mbed studio.
Mbed Studio: 1.4.4
the error does not point to these macros, but to object CAN and that is because the CAN API is not enabled on this target - targets.json. Maybe is also the CAN driver not implemented and that is reason why it is not enabled, but I am not familiar with NXP targets.
Thanks for the reply, I can see the CAN.cpp file is there, and also, I can see the CAN driver .c files are there in the target driver folders. I can take a try to enable the CAN and see if that works or not.
May I suggest that you move your post to the “Mbed OS” category please? The problem you encountered does not seem to be directly linked to Mbed Studio.
Thank you.