Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DUE_2CAN_Channel_TEST Sketch file #27

Open
GFMuayThai opened this issue Sep 8, 2017 · 2 comments
Open

Error in DUE_2CAN_Channel_TEST Sketch file #27

GFMuayThai opened this issue Sep 8, 2017 · 2 comments

Comments

@GFMuayThai
Copy link

Hi,
I've just downloaded the Due_2CAN_Chyannel_Test sketch and uploaded to my arduino 2.

After file compilation, the following error appeared:

Arduino:1.8.4 (Windows 7), Scheda:"Arduino/Genuino Uno"

In file included from sketch\DueCANLayer.h:4:0,

             from sketch\DueCANLayer.cpp:4:

due_can.h:177: error: 'Can' does not name a type

Can* m_pCan ;

^

due_can.h:195: error: expected ')' before '*' token

 CANRaw( Can* pCan, uint32_t En);

            ^

exit status 1
'Can' does not name a type

Someone could help me, please?

I think that the problem is with the setting of the variable type for "Can".

There could be some other issue like that?

THank You in advance
Bye

@collin80
Copy link
Owner

collin80 commented Sep 8, 2017

You forgot to select Arduino Due as the board you are compiling for. I can see in your data this line:

Scheda:"Arduino/Genuino Uno"

That should reference the Due instead. If this is your first time compiling Due sketches you might need to use the board manager to download the Due support files first.

@GFMuayThai
Copy link
Author

OK.

Sorry but I'm not accustomed with Arduino.

Thank You very much.
Bye

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants