Re: [Flashforth-devel] WG: Re: flashforth arduino duemilanove
Brought to you by:
oh2aun
|
From: Mikael N. <mik...@pp...> - 2013-06-13 16:06:52
|
Right now I have no plans for developing an assembler for the AVR. If you, or someone is interested to do that, a contribution to FlashForth would be welcome. /Mike On 06/13/2013 03:07 PM, Sven wrote: > 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 > |