Hi i try to compile the code with
F_CPU = 12800000
FUSEH = 0x90
FUSEL = 0x84
in Makefile, but if i build it, i get the error:
ld.exe: address 0x20aa of main.bin section .text is not within region text
why?
Can any one help me?
Thomas
12800
Re: 12800
Can you explain what exactly is wrong?
My makefile
F_CPU = 12000000
DEVICE = atmega8
BOOTLOADER_ADDRESS = 1800
FUSEOPT = $(FUSEOPT_8)
LOCKOPT = -U lock:w:0x2f:m
PROGRAMMER = -c dapa
(..)
Bootloader adress should be right but i got error: "ld: address 0x2044 of main.bin section .text is not within region text" but when i change bootloader adress to antthing lower than 1800 it links correctly.. :/
thanks
My makefile
F_CPU = 12000000
DEVICE = atmega8
BOOTLOADER_ADDRESS = 1800
FUSEOPT = $(FUSEOPT_8)
LOCKOPT = -U lock:w:0x2f:m
PROGRAMMER = -c dapa
(..)
Bootloader adress should be right but i got error: "ld: address 0x2044 of main.bin section .text is not within region text" but when i change bootloader adress to antthing lower than 1800 it links correctly.. :/
thanks
Re: 12800
None of these I think. In default makefile i changed:christian wrote:You probably enabled debugging code or removed the -Os flag.
F_CPU = 12000000 (12 Mhz i suppose )
DEVICE = atmega8 (I've got atmega8l)
BOOTLOADER_ADDRESS = 1800 (8k-2k=6k right?)
FUSEOPT = $(FUSEOPT_8) (no change)
So what should I do? I'm noob with v-usb sorry
thanks