Re: [Flashforth-devel] Question about running FlashForth on Arduino Diecimila
Brought to you by:
oh2aun
|
From: Mikael N. <mik...@fl...> - 2017-09-22 09:20:22
|
At least in AVRSIM2 the XH register in the code sequence
below fails count over 0x08 on the 168p.
So FF gets stuck in an infinite loop just at the startup.
Even if XH is a 16 bit regsister.
In atmega source file
Try replacing this
WARM_2:
st x+, r_zero
cpi xh, 0x10 ; up to 0xfff, 4 Kbytes
brne WARM_2
With THIS:
WARM_2:
st x+, r_zero
cpi xh, 0x04 ; up to 0x3ff, 1 Kbytes
brne WARM_2
It may help also on the real hardware.
BR Mikael
On 2017-09-22 00:28, Aymeric wrote:
>
> Is there anything else I could try? Or should I just get an Arduino
> that
> is already supported/tested?
>
> Thanks!
> Aymeric
|