It's always nice to introduce oneself together with a silly problem. I
changed the speed in the config file back to 8000000, recompiled, reflashed
and everything is ok now. :) Please disregard.

On Wed, Jul 25, 2018 at 5:11 PM, Dimitri Georganas <d...@biodys.com> wrote:

> Hi,
>
> I experienced a weird problem today with Amforth 6.6 on a 328p mcu. This
> is the short version:
>
> *Amforth behaves odd after the first word definition. After flashing
> commands like 3 3 + .s etc. work fine. However, after the first word
> definition, e.g. : add3 3 + ; the system does not return ok and seems to
> hanging in an endless loop. Control-C exits the loop with a status line
> Amforth 6.6 Atmega328p. Then, commands like 3 3 + will not return ok and
> Control C is the only option to get the Amforth 6.6 Atmega328p prompt, but
> the system has become useless. I reflashed a few times, also tried another
> 328p, same problem.*
>
> This is a more detailed:
>
> This is my first post to this group, hello everybody. Last year I
> "discovered" forth and decided to use it for a small microcontroller. I was
> happy to find amforth and after studying the system for some time on a 168
> controller I decided to move to a 328p for more memory. Amforth has been
> working fine with default fuse settings on the 168 and was accessible at
> 1200bps only (despite BAUD setting at 9600 in template.asm ).
>
>
> Things I changed to the 328p.
>
>    - The oscillator fuse to 0xE2 and set the F_CPU at 16000000 in the
>    makefile
>    - 168 -> 328p in the makefile
>
>
> Fuse change, compilation and flashing went fine and the 328p was
> accessible at 4800 BAUD.  (Setting in template.asm is still 9600)
>
> Then I uploaded marker.frt and of course the problem I described above
> first surfaced because marker.frt obviously includes a word definition.
>
> Could this problem have anything to do with the oscillator setting,
> because that's basically the only difference between the 168 setup that
> worked fine and this weird behaviour on the 328p?
>
> I will do a few cross checks with high speed setting on the 168 and low
> speed setting on the 328p, but if someone can help me waste less time, I
> would very much appreciate it, because this is unknown territory for me.
>
> Best regards,
>
>
> Dimitri Georganas
> Biodys
>
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to