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

Teensy Compilation Error #13

Open
adstep opened this issue May 18, 2019 · 4 comments
Open

Teensy Compilation Error #13

adstep opened this issue May 18, 2019 · 4 comments

Comments

@adstep
Copy link

adstep commented May 18, 2019

When I compile with MCU=at90usb1286 I see the following error:

 [GCC]     : Compiling C file "Joystick.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=at90usb1286  -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DF_CPU=16000000UL -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -Iinclude/  -I. -Ilufa/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL  -MMD -MP -MF obj/Joystick.d src/Joystick.c -o obj/Joystick.o
In file included from include/Joystick.h:42:0,
                 from src/Joystick.c:21:
include/avr.h: In function ‘USART_Init’:
include/avr.h:27:5: error: ‘UCSR1D’ undeclared (first use in this function)
     UCSR1D = 0;                         // no cts, no rts
     ^
include/avr.h:27:5: note: each undeclared identifier is reported only once for each function it appears in
lufa/LUFA/Build/DMBS/DMBS/gcc.mk:213: recipe for target 'obj/Joystick.o' failed
make: *** [obj/Joystick.o] Error 1

It compiles fine with MCU=atmega16u2. Anyone else get this problem before?

@wchill
Copy link
Owner

wchill commented Jul 8, 2019

The at90usb1286 support is from the original project. You'll need to consult the datasheet for that MCU in order to rewrite the serial receive code, as the registers are different.

@parkerlreed
Copy link

I assume this means Teensy 3.6 is also not supported?

@wchill
Copy link
Owner

wchill commented Sep 6, 2019

Teensy 3.6 doesn't use an AVR core, it's running an ARM Cortex M4. So everything is completely different for that.

@parkerlreed
Copy link

Yeah figured. Would be interesting as the 3.6 also has USB host so you could make it into a converter as well.

Thanks.

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

3 participants