Unable to debug the Raven RZUSBSTICK bootloader project.

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I'm running the latest AVRStudio (build 628) and winAVR 20090313 on Vista.

I can build and debug the RZUSBSTICK project that comes with the raven firmware just fine.

The RZUSBSTICK_BOOTLOADER builds OK, but when I try to debug it I get the following warning and error messages:

The contents of the objectfile exceeds the maximum program memory of the device

Error loading object .\AVR2017_RZRAVEN_Firmware\gcc\RZUSBSTICK_BOOTLOADER\RZUSBSTICK_BOOTLOADER.elf

Any ideas?

Thanks, Steve.

Last Edited: Fri. Oct 16, 2015 - 02:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't think one can debug code in bootloader section (bootloader code is placed in separate section of flash).

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

The error messages are due to the fact that the bootloader image size is greater than 8K bytes. Since the load address for the bootstrap is set at 0x1E000 this image would overflow 128k.

The image is to big because The ATMEL supplied AVRStudio project file includes the module vrt_kernel.c. This module is not needed and can be removed.

If you do this then the resulting image is 7692 bytes and AVRStudio is happy to load and debug it.

The load address reported by AVRStudio was a bit confusing until I realised its a word address and should be multiplied by two for it to line up with the addresses in the projects .lss file.

Cheers, Steve.