sixaxis_pair_emu.hex for at90usb82

Need help? Ask here and someone will help
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

Hi,

I'm trying to register a bluetooth dongle (which cannot have its address changed) with my PS3. I have aN Arduino Uno with a at90usb82 chip but I can only find on the site sixaxis_pair_emu.hex (diyps3controller v2 - Sixpair-emu - firmware for the Teensy++) for at90usb1286.

would it be possible to release the hex for at90usb82?

cheers
cTiger
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: sixaxis_pair_emu.hex for at90usb82

Post by Matlo »

Hi,

I will try to build other hex files. I just need to find some time to do that.
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

After struggling quite a bit to get the code to compile, I finally succeeded or I thought so.
When i load the HEX file in FLIP, I get Address Out of Range.

I guess I must has screwed up some settings in Eclipse, here is a partial output of the compilation. Are there any special settings to configure ?

Building file: ../Descriptors.c
Invoking: AVR Compiler
avr-gcc -I"C:\WinAVR-20100110\Workspace\sixpair-emu\LUFA" -DNO_STREAM_CALLBACKS -DF_CLOCK=16000000 -DUSB_DEVICE_ONLY -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DBOARD=BOARD_UNO -DFIXED_CONTROL_ENDPOINT_SIZE=64 -DFIXED_NUM_CONFIGURATIONS=1 -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=at90usb82 -DF_CPU=16000000UL -MMD -MP -MF"Descriptors.d" -MT"Descriptors.d" -c -o "Descriptors.o" "../Descriptors.c"
Finished building: ../Descriptors.c

Building file: ../sixaxis_pair_emu.c
Invoking: AVR Compiler
avr-gcc -I"C:\WinAVR-20100110\Workspace\sixpair-emu\LUFA" -DNO_STREAM_CALLBACKS -DF_CLOCK=16000000 -DUSB_DEVICE_ONLY -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DBOARD=BOARD_UNO -DFIXED_CONTROL_ENDPOINT_SIZE=64 -DFIXED_NUM_CONFIGURATIONS=1 -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=at90usb82 -DF_CPU=16000000UL -MMD -MP -MF"sixaxis_pair_emu.d" -MT"sixaxis_pair_emu.d" -c -o "sixaxis_pair_emu.o" "../sixaxis_pair_emu.c"
Finished building: ../sixaxis_pair_emu.c

Building file: ../LUFA/Scheduler/Scheduler.c
Invoking: AVR Compiler
avr-gcc -I"C:\WinAVR-20100110\Workspace\sixpair-emu\LUFA" -DNO_STREAM_CALLBACKS -DF_CLOCK=16000000 -DUSB_DEVICE_ONLY -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DBOARD=BOARD_UNO -DFIXED_CONTROL_ENDPOINT_SIZE=64 -DFIXED_NUM_CONFIGURATIONS=1 -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=at90usb82 -DF_CPU=16000000UL -MMD -MP -MF"LUFA/Scheduler/Scheduler.d" -MT"LUFA/Scheduler/Scheduler.d" -c -o "LUFA/Scheduler/Scheduler.o" "../LUFA/Scheduler/Scheduler.c"
../LUFA/Scheduler/Scheduler.h:201: warning: array 'Scheduler_TaskList' assumed to have one element
Finished building: ../LUFA/Scheduler/Scheduler.c

cheers
cTiger
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: sixaxis_pair_emu.hex for at90usb82

Post by Matlo »

Please test the attached hex file.
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

thanks but I also get the same error "Address is out of range"

any clues why ?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: sixaxis_pair_emu.hex for at90usb82

Post by Matlo »

Not enough memory!

AVR Memory Usage
----------------
Device: at90usb82

Program: 10874 bytes (132.7% Full)
(.text + .data + .bootloader)

Data: 854 bytes (166.8% Full)
(.data + .bss + .noinit)

EEPROM: 10 bytes (2.0% Full)
(.eeprom)
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

I arrived to the same result and I was looking to see if I could remove useless stuff but no success yet. would you have any great hints ?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: sixaxis_pair_emu.hex for at90usb82

Post by Matlo »

I changed "OPT = 0" to "OPT = s" and I now get:

Size after:
AVR Memory Usage
----------------
Device: at90usb82

Program: 5048 bytes (61.6% Full)
(.text + .data + .bootloader)

Data: 854 bytes (166.8% Full)
(.data + .bss + .noinit)

EEPROM: 10 bytes (2.0% Full)
(.eeprom)

I know there are 640 bytes in large arrays in sixaxis_pair_emu.c. It probably could be shrunk.
GIMX creator
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: sixaxis_pair_emu.hex for at90usb82

Post by Matlo »

Please test the attached hex file.

Size after:
AVR Memory Usage
----------------
Device: at90usb82

Program: 4998 bytes (61.0% Full)
(.text + .data + .bootloader)

Data: 278 bytes (54.3% Full)
(.data + .bss + .noinit)

EEPROM: 10 bytes (2.0% Full)
(.eeprom)
Attachments
sixaxis_pair_emu.zip
(4.92 KiB) Downloaded 641 times
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

still the same error :( .

strange, I ve double checked the datasheet and the chip has 8-Kbyte self-programming Flash Program Memory, 512-byte SRAM, 512-byte EEPROM. so it should load. I tried a HEX for arduino and it loads so it is a problem with the built HEX. any other bright ideas?

ctiger
Post Reply