Re: [Flashforth-devel] building flashforth with avra?
Brought to you by:
oh2aun
|
From: Christopher H. <chr...@li...> - 2021-03-29 17:06:45
|
I played around with it for about 2 hours last week, but haven't
figured it out. It seems that flashforth is expecting different
included files than what is provided by avra - with FF referencing
m328def.inc and m328pdef.inc, and avra providing only m328Pdef.inc. If
I edit file names on one side or the other I end up with strings of
errors like below. Some of the error messages are a bit confusing.
christopher@theoden ~/Repos/flashforth$ ../avra/src/avra -D ffm328 -D
op0 -I ../avra/includes/ -I avr/src/ -o avr/hex/328-16MHz-38400.hex -fI
avr/src/ff-atmega.asm AVRA: advanced AVR macro assembler (version
1.4.2)Pass 1...avr/src/config.inc(115) : Error : Found no
label/variable/constant named avr/src/macros.inc(39) : Warning : r26 is
already assigned to 'XL'!avr/src/macros.inc(40) : Warning : r27 is
already assigned to 'XH'!avr/src/macros.inc(41) : Warning : r30 is
already assigned to 'ZL'!avr/src/macros.inc(42) : Warning : r31 is
already assigned to 'ZH'!avr/src/ff-atmega.asm(38) : Error : Found no
label/variable/constant named avr/src/ff-atmega.asm(99) : Error :
Found no label/variable/constant named TX0_avr/src/ff-atmega.asm(100) :
Error : Found no label/variable/constant named RX0_avr/src/ff-
atmega.asm(101) : Error : Found no label/variable/constant named
RX0Qavr/src/ff-atmega.asm(463) : Error : Unknown mnemonic/macro:
fdw(exit_l)avr/src/ff-atmega.asm(471) : Error : Unknown
mnemonic/macro: fdw(idle_l)avr/src/ff-atmega.asm(4226) : Error :
[Macro: avr/src/macros.inc: 56:] Found no label/variable/constant named
UCSR1Aavr/src/ff-atmega.asm(4229) : Error : [Macro:
avr/src/macros.inc: 64:] Found no label/variable/constant named
UDR1avr/src/ff-atmega.asm(4254) : Error : [Macro: avr/src/macros.inc:
56:] Found no label/variable/constant named UCSR1Aavr/src/ff-
atmega.asm(4254) : [Macro: avr/src/macros.inc: 58:] Maximum error count
reached. Exiting...
-----Original Message-----From: Stefan <fli...@gm...>To:
Christopher Howard <chr...@li...>Subject: Re:
[Flashforth-devel] building flashforth with avra?Date: Sun, 28 Mar 2021
14:51:26 +0200
Hi Christopher,
could you solve your problem?
I cannot help you with avra-problem, 'cause I'm using AVR Studio
4.19.
But I am pretty sure, that there is no difference in definition
between ATmega328 and ATmega328p - the p(ico power)-version just
uses less energy.
greets
bitflipser
Am 25.03.2021 um 22:27 schrieb
Christopher Howard:
> Hi, is there anybody who has been able to build flashforth
> with avra (
> https://github.com/Ro5bert/avra/tree/master/includes)?
> If so, can you share your command line calls, and any source
> edits you had to make? In trying to build flashforth for
> m328p
> (or, i guess, m328...?), I'm running into some confusion.
> avra
> has a m328p definition file but not a m328. And the avr
> config.inc with FF is a bit confusing to me as it seems to
> include m328pdef.inc in all builds but only m328def.inc if
> ffm328 is definied. As I try to work it out on the command
> line
> I end up with basic stuff like portd not defined.
>
>
>
> I was trying to build FF without using any proprietary
> avrstudio components, and avra seemed the easiest path. I
> couldn't find any source for avrasm2 anywhere, but
> information
> on the internet was confusing, so maybe I missed something.
>
>
>
> Christopher
>
>
>
>
>
>
>
>
>
>
> _______________________________________________Flashforth-devel
> mailing lis...@li...
> https://lists.sourceforge.net/lists/listinfo/flashforth-devel
>
>
|