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

Can't compile for Teensylu #59

Closed
lincomatic opened this issue Feb 9, 2012 · 4 comments
Closed

Can't compile for Teensylu #59

lincomatic opened this issue Feb 9, 2012 · 4 comments

Comments

@lincomatic
Copy link

I set MOTHERBOARD = 8 in Configuration.h.
In Arduino, I compile for Teensy++ 2.0.

I get errors:

In file included from /Marlin.h:38,
from Marlin.cpp:28:
/MarlinSerial.h: In member function 'int MarlinSerial::available()':
MarlinSerial.h:65: error: 'rx_buffer' was not declared in this scope
/MarlinSerial.h: In member function 'void MarlinSerial::write(uint8_t)':
MarlinSerial.h:70: error: 'UCSR0A' was not declared in this scope
MarlinSerial.h:70: error: 'UDRE0' was not declared in this scope
MarlinSerial.h:73: error: 'UDR0' was not declared in this scope
/MarlinSerial.h: In member function 'void MarlinSerial::checkRx()':
MarlinSerial.h:79: error: 'UCSR0A' was not declared in this scope
MarlinSerial.h:79: error: 'RXC0' was not declared in this scope
MarlinSerial.h:80: error: 'UDR0' was not declared in this scope
MarlinSerial.h:81: error: 'rx_buffer' was not declared in this scope
In file included from Marlin.cpp:28:
/Marlin.h: In function 'void serialprintPGM(const char_)':
Marlin.h:91: error: 'MSerial' was not declared in this scope
In file included from Marlin.cpp:37:
/EEPROMwrite.h: In function 'void EEPROM_RetrieveSettings(bool)':
EEPROMwrite.h:182: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void enquecommand(const char_)':
Marlin:209: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void setup()':
Marlin:249: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void get_command()':

Teensy's HardwareSerial.h doesn't define rx_buffer, so that causes the first error.
the compiler's iousbxxx6_7.h which contains register defs for the AT90USB1286 doesn't contain UCSR0A, etc. which causes the other errors

@ErikZalm
Copy link
Contributor

ErikZalm commented Feb 9, 2012

I will try to implement the USB part. It was lost when we changed some part in the serial communication.

@ErikZalm
Copy link
Contributor

ErikZalm commented Feb 9, 2012

I added the teensylu functions. It now compiles.
I can not test it because I have no teensylu, but in theory it should work.

@lincomatic
Copy link
Author

Thanks. I'm waiting for mine to arrive, and will let you know if it works once I've tested, unless someone else jumps out first

thinkyhead referenced this issue in thinkyhead/Marlin Sep 6, 2019
tonokip pushed a commit to ultimachine/Marlin that referenced this issue Jan 24, 2022
Resolve "Volcano extruder typo"

Closes MarlinFirmware#59

See merge request lulzbot3d/marlin!41
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants