go away spammer

Author Topic: Axon 2 - Bootloader - program too large?  (Read 4258 times)

0 Members and 1 Guest are viewing this topic.

Offline fxgoversTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Axon 2 - Bootloader - program too large?
« on: January 08, 2016, 08:40:16 PM »
I'm having problems with any program for the Axon2 that includes rprintf.  The bootloader says that the program is too large for the chip.  The compiler says that the program only takes 20% of the available space:

AVR Memory Usage
----------------
Device: atmega640

Program:   13362 bytes (20.4% Full)
(.text + .data + .bootloader)

I'm compiling on AVR Studio 4 on windows and using the linux bootloader to upload to the board.  The MacUber program I cannot get to work on my computer.

Any suggestions,
Thanks!
Francis Govers

Offline mklrobo

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Axon 2 - Bootloader - program too large?
« Reply #1 on: January 09, 2016, 08:26:12 AM »
 ;D Hello!
I wish I could help, but I can not even get the program to load into the Axon!   :'( :'( :'(
In programming respect, though, the compiler may not be optimizing your code.
I do know that there are other compilers and bootloaders from Atmel, which may help.
I have links on my post, Analyzing the Axon: Coding, Construction, and Contraptions that
may lead you to an answer. Good Luck!   ;) :) :D ;D

Offline fxgoversTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: Axon 2 - Bootloader - program too large?
« Reply #2 on: January 10, 2016, 01:07:32 PM »
OK, I found a solution.  I went into the bootloader source code - the size of the code to be downloaded into the Axon 2 was arbitrarly set at 10,000.  I reset it to 64,000 and everything is working fine.  I'll have to keep an eye on the build size, but my code is now working fine.

Francis Govers

 


Get Your Ad Here