Hello, I believe only 50% of the Arduino Mega flash is available to Forth for dictionary use.
This is simply a hardware barrier that exists. The additional 126kb theoretically can be put to use in other ways, but I've not seem actually solutions. On Sun, Apr 17, 2022, 2:48 PM Tristan Williams <h...@tjnw.co.uk> wrote: > Hi Christian, > > Glad it worked. > > > How much of 256KB flash is effectively usable with AmForth on the 2560? ? > > Good question. I don't know. The file avr8/words/store-i_big.asm may give > some > clues. > > > Will this work as well on a Chinese ATmega2560ProMini (with FTDI USB > chip for terminal input) ? > > Again, I don't know. However, if the board has an ATmega2560 mcu > running at 16 MHz then there is good chance. I think only by flashing > the board and testing it will you have a better idea. > > > If so, may I share your links with a friend who has an > ATmega2560ProMini? > > Yes. > > Kind regards, > > Tristan > > On 16Apr22 16:34, Christian Hinse wrote: > > Hi Tristan. > > > > Your r2457AmForth version is working fine on my Arduino MEGA with > ATmega2560, except for a few garbled character after the reset. But that is > probably normal. It occurs on the UNO as well. > > > > > amforth 7.0 ATmega2560 16000 kHz > > > words > > int-trap int@ int! -int +int #int irq[]# postpone (marker) end-code > code forth-wordlist wordlist set-current >body s>d bounds init-ram ee>ram > #tib tib source-tib refill-tib 2swap cmove dnegate dabs j * icompare > nfa>cfa name>string traverse-wordlist search-wordlist (defer) defer@ > defer! Udefer! Udefer@ Rdefer! Rdefer@ Edefer! Edefer@ i-cell+ to unused > noop ver ?stack rectype-null rectype-xt rec-find rec-num rectype-dnum > rectype-num recognize forth-recognizer interpret depth rp0 sp0 warm cold > pause quit .input .error .ready .ok find-xt parse-name /string source parse > >number number char refill accept cscan cskip throw catch handler ' type > spaces space cr icount itype s, digit? ud/mod ud.r ud. . d. .r d.r sign #> > #s # <# hold hld tolower toupper within max min abs mod / negate u/mod /mod > turnkey bl hex decimal bin allot here ehere dp key? key emit? emit pad >in > tuck 2drop 2dup cell+ cells base state f_cpu environment fill s" ." pick > words show-wordlist u.r u. dinvert d- d+ d2/ d2* nr> n>r -1 2 1 = 2literal > @i (i!) !i @e !e 2r> 2>r up! up@ >< cmove> unloop i sp! sp@ rp! rp@ +! > rshift lshift ?negate 1- 1+ xor or and 2* 2/ invert um* um/mod m* + - log2 > > < u> u< 0 true d0< d0> 0> 0< 0= <> r@ >r r> nip rot drop over swap ?dup > dup !u @u c@ c! ! @ (value) execute exit applturnkey nfa>lfa compare > cfg-recs cfg-order get-current map-stack set-stack get-stack ?abort abort > abort" [char] immediate recurse user constant variable [ ] ; :noname : > does> reveal wlscope header create lp lp0 >l l> endloop ?do leave +loop > loop do again until repeat while begin then else if ahead sliteral literal > ['] , compile ( \ (create-in) (create) latest newest 1ms name>flags umin > umax ud* m+ sleep !wdc wdr c!@spi bm-toggle bm-clear bm-set b> >b b!- b!+ > nb! b! b@- b@+ nb@ b@ a> >a a!- a!+ na! a! a@- a@+ na@ a@ +usart ubrr > tx?-poll tx-poll rx?-buf rx-buf isr-rx >rx-buf ok > > > > > > > Some question: > > > > * How much of 256KB flash is effectively usable with AmForth on the > 2560? > > * Will this work as well on a Chinese ATmega2560ProMini (with FTDI > USB chip for terminal input) ? > > * If so, may I share your links with a friend who has an > ATmega2560ProMini? > > > > Thanks a lot for your help. > > > > Christian Hinse > > ________________________________ > > From: Tristan Williams <h...@tjnw.co.uk> > > Sent: 16 April 2022 06:05 > > To: amforth-devel@lists.sourceforge.net < > amforth-devel@lists.sourceforge.net> > > Subject: Re: [Amforth] AmForth 6.9 on Arduino MEGA using ATmega2560- No > reponse at console > > > > Hello Christian, > > > > Below is a link to AmForth hex files I built for my Arduino MEGA using > the > > (then) most recent source (r2457). The console baud rate is 38400 and > > build details are in the atmega2560.asm file. > > > > https://tjnw.co.uk/amforth-bin/ > > > > Some background info is contained in this message thread. > > > > https://sourceforge.net/p/amforth/mailman/message/37296323/ > > > > Hope this helps and let me know if you get it up and running. > > > > Kind regards, > > > > Tristan > > > > On 16Apr22 07:08, Christian Hinse wrote: > > > Hi to your support team. > > > > > > I have AmForth working properly on an Arduino UNO. > > > > > > I am now trying to use it with an Arduino MEGA using the Atmega2560 > but I get no console response after programming the files atmega256.hex > and atmega256.eep.hex from folder \amforth-6.9\appl\atmega2561 of > downloaded file amforth-6.9.zip. > > > > > > I still consider myself as a beginner hobbyist and I do not yet have > the ability to assemble my one code from source. > > > > > > * Are these Hex file effectively compatible with the Arduino MEGA > using the ATmega2560 ? > > > * What are the fuses that I should use with the Arduino MEGA.using > the ATmega2560 ? > > > > > > I am currently using the followings fuses: > > > > > > Reading fuses... > > > >>>: avrdude -u -c usbasp -p m2560 -P usb -b 115200 -B 1.0 -U > hfuse:r:-:h -U lfuse:r:-:h -U efuse:r:-:h > > > SUCCESS: Read high fuse > > > SUCCESS: Read low fuse > > > SUCCESS: Read extended fuse > > > > > > My serial port COM7 is transmitting to the Arduino MEGA because I can > see the RX LED flashing. I don not see an response on the TX LED or the > console. > > > > > > * Am I using HEX files that are not compatible with the Arduino > MEGA using an ATmega2560 MCU ? > > > * If not, what can I do to make these files work with the Arduino > MEGA using the ATmega2560. > > > > > > I would appreciate your help to resolve this problem. > > > > > > Thanks. > > > > > > Christian Hinse > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Amforth-devel mailing list for http://amforth.sf.net/ > > > Amforth-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > > > > > _______________________________________________ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > _______________________________________________ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amforth-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amforth-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amforth-devel > _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel