From: <ken...@al...> - 2010-08-04 20:08:30
|
> There must be a better way to see, how much more fits into the > NRWW section. I moved just dict_minimum.inc. It gave me an end address of 0x3f00, so I'm only wasting 256 words. dict_minimum was intended to be in low memory. The amforth User's Manual says, "This file was called dict_low.inc in previous versions of amforth. .... The words included in dict_minimum.inc are stored in the target system in low flash memory." > Something related > to writing flash seems to be broken. Maybe you moved too much to low memory. In the User's Guide it says you should be careful. The amount of high flash memory varies based on the type of AVR device. Some small devices may have so little high flash memory that you won't be able to fit all of the words in this file [dict_core.inc] into the available memory. Should this happen, you may be able to move some of the .include statements from this file into dict_minimum.inc (see below). Note, however, that this must be done carefully, to keep the flash read/write words (at least) in high flash memory. Regards, Ken On Wed, 04 Aug 2010 21:10 +0200, "Erich Waelde" <ew....@na...> wrote: > Hello, > > I can confirm the original problem > > warning: end of .cseg at 0x8ce2 is beyond end of memory at 0x7fff". > for a duemilanove board with a fresh clean checkout of amforth 4.0. > I moved everything after the line > > .include "words/ifetch.asm" > > from dict_appl_core.inc to dict_appl.inc. That makes the warning go > away. There must be a better way to see, how much more fits into the > NRWW section. > > Uploading(*) the resulting files to the board works, setting the fuses as > detailed in the readme.txt gives me a prompt (9600 baud). > > amforth 4.0 ATmega328P ok > > _ > > HOWEVER, compiling a word does stall the controller. Pressing reset gives > a new prompt, but the system is not working any more. Something related > to writing flash seems to be broken. > > (*) uploading is done with a very simple "sp12" parport programmer. > > Cheers, > Erich > > On 08/04/2010 06:16 PM, ken...@al... wrote: > > Hi Andy, > > > > Thanks for your quick response. > > > >> What are you using as your build route/toolchain ? > > |