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

[BUG] libmaple/usart.h: No such file or directory #30

Closed
Ajtak opened this issue Nov 1, 2020 · 8 comments
Closed

[BUG] libmaple/usart.h: No such file or directory #30

Ajtak opened this issue Nov 1, 2020 · 8 comments

Comments

@Ajtak
Copy link

Ajtak commented Nov 1, 2020

If I tried build in Arduino IDE, I'm getting this error:

sketch\src\lcd\dwin\cr6\touch_lcd.cpp:33:10: fatal error: libmaple/usart.h: No such file or directory
 #include <libmaple/usart.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

How to fix it?
Thanks

@Sebazzz
Copy link
Collaborator

Sebazzz commented Nov 1, 2020

How to fix it?

Not use Arduino IDE. Use Visual Studio Code with Platform.io plugin.

Which branch are you building?

@joesanford
Copy link

How are you building it, and what board are you targeting? You may be building for more than one type of board.

VSCode/Platformio works, but Marlin should support Arduino IDE.

@Ajtak
Copy link
Author

Ajtak commented Nov 1, 2020

I'm building default branch (creality-cr6-merge-attempt) for Arduino Mega or Mega 2560 board

@Sebazzz
Copy link
Collaborator

Sebazzz commented Nov 1, 2020

That's probably the issue here. Can you please try VSCode?

@Doridian
Copy link

Doridian commented Nov 1, 2020

@Ajtak The printer uses an STM32, not an 8-bit Arduino, so some libraries might be broken just from that. I don't know if the Arduino IDE can compile Marlin for STM32, but you have to at least install the board plugin for them and set the correct chip.

@hondrus31
Copy link

Tried many times with Arduino IDE with no success. VScode + Platform.io + Auto Build Marlin worked from the first time.
Consider following the guide on official Marlin site here.

@joesanford
Copy link

Apologies, half of my comment didn't post - was going to add that since everyone on this fork is a VSCode user (AFAIK), it may be useful asking in the Marlin project this is forked from: https://github.com/MarlinFirmware/Marlin

@Sebazzz
Copy link
Collaborator

Sebazzz commented Nov 5, 2020

Closing this as this is probably an upstream issue.

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

5 participants