Well appear to be getting closer.
Found NeoNile.NET
For which got optiboot source downloaded and i'm able to compile everything but Atmega 88
D:\WinAVR-20100110\optiboot\optiboot\bootloaders\optiboot>make atmega88
avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-c
alls -mmcu=atmega88 -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=115
200' -c -o optiboot.o optiboot.c
avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-c
alls -mmcu=atmega88 -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=115
200' -Wl,--section-start=.text=0x3e00 -Wl,--relax -nostartfiles -Wl,--gc-section
s -o optiboot_atmega88.elf optiboot.o
d:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: address
0x3ffa of optiboot_atmega88.elf section .text is not within region text
d:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: address
0x3ffa of optiboot_atmega88.elf section .text is not within region text
make: *** [optiboot_atmega88.elf] Error 1
rm optiboot.o
Well i got bootloader running and could upload using Uno without p328 fitted. All fine and good.
But couldn't use my at90usb162 usb>serial just wouldn't talk.
Tried millions of thing ie fixed it till it broke Till finally i cut off mcu and put another on but didn't change anything !!! Bugger. Turned out dragon was at fault...doh.
Well i didn't notice but AVR dragon started to have a problem using ISP. At first thought my fault then pcb everything other but dragon. (if you own one and don't know READ this Dragon) Simple fix little dirty once broken, still working again now.
Well where i'm at.
Well i can compile code no errors. I found adding
And other problem i have 'Fuses'
I have EXT=0xFC High=0xDD Low=0xFF . 04 EXT/efuse just wouldn't take in studio.
Lockbit=0xCF LPM/SPM locked other s all open.
I'm using AVR Studio to flash+dragon. When i use avrdude+ 'make atmega88_isp' Get error from 'atmega88_isp: HFUSE = DD' coming out as '0x' on verify.
I've read so much totaly lost as to what right.
Well i did try and make sure hardware was working and as much as i can tell its fine
Used isp to upload blinky and something for serial out put. I can read TX line in IDE using uno.
There's a typo in the makefile on the LFUSE line for mega88:atemga88_isp: LFUSE = FF
it should read
atmega88_isp: LFUSE = FF
I dug out the atmega88's I bought a while ago for purposes of exploring non-standard cpus. It turns out that they're the atmega88pa version, so I had additional signature issues because the avrdude distributed with arduino does not know about the 88p. But after that, and fixing the typo above, and fixing the section_start issue that you found, I was able to burn a bootloader using "make atmega88_isp", got blinking lights on reset, and was able to upload and run sketches...
Thanks for that, typo was a pain. I could change it but ended up Ultraedit to open it then copy&paste into notepad. Changed it a little and added 8mhz (hope got fuses right).
Boards.txt only other think i'm really unsure about
Must admit i've not read much about its format and so on. So must likely wrong
Not been all bad mind i've had some success. But once i started thought get it right and completed so don't have to figure out at later date how did this work again
Where i'm at now. Well re compile Sparks usb/serial bootloader for at90usb162 which worked. Worked fine with 16mhz88 till i locked myself out fixing make file ...bugger. tried to replace mcu but damage pcb so mad dash to rebuild another.
Got 8mhz88 3v3 but can't upload to it. Has bootloader installed, hit reset led flashes.
16mhz 5v crystal appears to be duff worked up till point avrdude changed fuses to use crystal but couldn't read it after that. So minor fix fingers crossed
I'll get ft232 monday so how i fair with that. Thanks again for taking time to put 88 to pcb and sharing your success