I have an open source USB library for AVR microcontroller USB devices, LUFA (2011-10-09), and I'm trying to encode a CDC (bootloader) to my AT90USB162 chip . The sample code is located in the /Bootloads/CDC folder and is ready to create a CDC for the AT90USB1287 . Therefore, I needed to change the parameters of the makefile to install the correct microchip.
In the makefile, I changed the following:
- MCU = at90usb162
- F_CPU = 16000000
- FLASH_SIZE_KB = 16
- BOOT_SECTION_SIZE_KB = 4
and built the code. This happened without errors, but when I tried to write a chip with a .hex file, it returns a message:
Address is out of range
Why could this happen?
Update
In the makefile , BOOT_START configured as:
BOOT_START = 0x$(shell echo "obase=16; ($(FLASH_SIZE_KB) - $(BOOT_SECTION_SIZE_KB)) * 1024" | bc)
Maybe the error will be in accounting BOOT_START? Should I configure something else?
source share