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

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

when I set the chip type in FLIP, I can see FlashBuffer information 4KB.

could that be of any relevance ?
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 »

What's the bootloader size?

What avr board is it?
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

it's an arduino UNO (http://arduino.cc/en/Main/ArduinoBoardUno)

I don't know the bootloader size. for now the chip still has the default HEX


btw how did you skrink the program size ?
(i guess you used PROGMEM for the arrays?)

cTiger
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

the chip is a ATmega8U2 but all tutorials say to use AT90USB82 (datasheet are similar)
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

removing leds, hardcoding the Bdaddress({0x00, 0x11, 0x67, 0xD4, 0x16, 0x5F}) and using -ffunction-sections -fdata-sections -Wl,--gc-sections -mcall-prologues as extra flags might help you to go below 4k.

could you try ?

thanks

cT
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 »

Yes I used PROGMEM to move arrays from the sram to the flash.

Your other ideas didn't helped.

We also could move arrays to the eeprom, but as it's only 512 bytes the flash will still remain above 4K.

I think it's a better idea to try to reduce the bootloader size: link.

I can't test that as I don't have an atmega8u2.
GIMX creator
cTiger
Posts: 10
Joined: Tue Jul 12, 2011 3:47 pm

Re: sixaxis_pair_emu.hex for at90usb82

Post by cTiger »

looks good. the bootloader is compiling and only takes 2k in memory. I just have to put it on the board and see if it works :)

crossing my fingers.

cTiger on the verge of bricking an arduino UNO
Post Reply