The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
-
#1
problems compiling psgroove for teensy2.0
problems compiling psgroove for teensy2.0 –
12-30-2010,06:53 PM
I am having problems compiling psgroove on ubuntu 9.10 from both evilsperm, and psgrooves github. I get the following errors when setting the Makefile.psgroove to Teensy 2.0 settings:
Compiling C: psgroove.c
avr-gcc -c -mmcu=atmega32u4 -I. -gdwarf-2 -DF_CPU=16000000UL -DF_CLOCK=16000000UL -DBOARD=BOARD_TEENSY -D USB_DEVICE_ONLY -D FIXED_CONTROL_ENDPOINT_SIZE=8 -D USE_FLASH_DESCRIPTORS -D MEMSPACE_FLASH=0 -D MEMSPACE_EEPROM=1 -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=./psgroove.lst -Ilufa-lib/trunk/ -std=c99 -MMD -MP -MF .dep/psgroove.o.d psgroove.c -o psgroove.o
psgroove.c: In function ‘SetupHardware’:
psgroove.c:136: warning: implicit declaration of function ‘clock_prescale_set’
psgroove.c:136: error: ‘clock_div_1’ undeclared (first use in this function)
psgroove.c:136: error: (Each undeclared identifier is reported only once
psgroove.c:136: error: for each function it appears in.)
make[1]: *** [psgroove.o] Error 1
make[1]: Leaving directory `/hermes'
make: *** [all] Error 2
It seems to work fine when I use the settings for a Teensy 1.0 or 2.0++
Any ideas on what i am missing?
Last edited by bal8784; 12-30-2010 at 07:18 PM.
-
12-31-2010,11:47 AM
So I managed to get it working and compiled and loaded it to my teensy 2.0 and its working correctly.
Heres the solution I used incase anyone else is interested:
On ubuntu 9.10
Modify /usr/lib/avr/include/avr/power.h to include this line to the other list of "defined" AVRs:
|| defined(__AVR_ATmega32U4__) \
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|