Hi Mikael,
exactly that was exact my fault. I tried it again, uploaded
the flash data first and then the eeprom data with the same
result as bevore. Then I tried it viceversa uploaded the
eeprom data first and then the flash and that led to
success.
I then tried the classical LED blink program:
marker -blink
$24 constant DDRB
$25 constant PORTB
: led-init $20 DDRB c! ;
: led-on $20 PORTB c! ;
: led-off $0 PORTB c! ;
: led-blink for led-on 100 ms led-off 100 ms next ;
That works fine so far but not at the first try. I first
used DDRB=0x04 and PORTB=0x05 like it was defined in
m328Pdef.inc. After some investigation I found that for most
AVR devices, the IO register space is mapped into the data
memory address space with an offset of 0x20 since the bottom
of this space is reserved for direct access to the MCU
registers.
Do you have plans to add an assembler, like in the PIC
implementation, for the avr flashforth ?
thanks for helping
Sven
> --- Mikael Nordman <mik...@pp...>
> schrieb am Mi, 12.6.2013:
>
> > Von: Mikael Nordman <mik...@pp...>
> > Betreff: Re: [Flashforth-devel] flashforth arduino
> duemilanove
> > An: fla...@li...
> > Datum: Mittwoch, 12. Juni, 2013 16:23 Uhr
> > Hi Sven,
> > My guess is that you forgot to program the eeprom.
> >
> > BR Mikael
>
>
|