Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
CAN library didn't work.
Now, I checked the program. CAN and Serial classes didn't work. Mbed compiler was several errors such as the following. Web compile is something wrong. Is it just me that this phenomenon is happening ?
include the mbed library with this snippet
#include "mbed.h" DigitalOut myled(LED1); CAN can(p30,p29); Serial pc(USBTX,USBRX); int main() { while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }
- Error: Identifier "CAN" is undefined in "main.cpp", Line: 4, Col: 2
- Error: Expected a ")" in "main.cpp", Line: 4, Col: 13
- Error: Identifier "Serial" is undefined in "main.cpp", Line: 5, Col: 2
- Error: Expected a ")" in "main.cpp", Line: 5, Col: 17
OK. This phenomenon seems to have disappeared now. Thank you.
posted by son shaku 01 Aug 2016