Re: [Flashforth-devel] building larger program words -- arduino mega2560 FF5
Brought to you by:
oh2aun
From: craig b. <dab...@ya...> - 2021-04-03 18:53:07
|
Fascinating... Well I just discovered that I haven't got a spare arduino here at home, so I'll either have to run back up to work to try that or wait till Monday. Do you have any special things added on top of the base install? I put in core, arrays, forget, math, bits, and asm (not asm2). craig On Saturday, April 3, 2021, 02:38:20 PM EDT, Mikael Nordman <mik...@fl...> wrote: On 2021-04-03 20:50, craig bair via Flashforth-devel wrote: > Hi Mikael, > > If I enter at the prompt: > wrSHT3x drop 1 ms rdSHT3x rstow .rdump > It reads the sensor and dumps the packet bytes as nicely as you > please. > If I define a word... > : try wrSHT3x drop 1 ms rdSHT3x rstow .read ; Compiles and runs fine on my atmega2560. I replaced both .rdump and .read with rdump. Assuming just typos in the mail. > > ...and enter try<ret> it sends the command to the sensor, > immediately sends other junk out and blows up. > > I remember in the PIC18-s if a word definition got too long sometimes > the relative branching would mess up, but I thought I had avoided that > in this case. Maybe I just haven't figured out AVR-8-bit yet. There is no such risk on the Atmegas, and for..next do nest until the stack is full. You could run SEE on TRY and see if it decompiles nicely. There is always a risk of bad flash bits. FF verifies the flash writes, but you never know. Mikael _______________________________________________ Flashforth-devel mailing list Fla...@li... https://lists.sourceforge.net/lists/listinfo/flashforth-devel |