Discussion:
[fpc-devel] AVR ATMEGA4808 ATMEGA4809
Dimitrios Chr. Ioannidis via fpc-devel
2018-11-03 17:27:40 UTC
Permalink
Hi,

  is there a plan to support the new atmega series 4808,4809 in the AVR
compiler ?

regards,
--
Dimitrios Chr. Ioannidis
_______________________________________________
fpc-devel maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/
Christo Crause
2018-11-04 19:07:00 UTC
Permalink
I made a quick modification today and it seems doable to add these devices
without much change. Compared the code generated for a basic test between
modified FPC and avr-gcc with atmega4808 updated from latest update pack
and the binaries seem to match quite well. A bit more effort is required
to convert the register addresses and bit names from the definition file
for the xmega style in the converter I use.

I can share a patch if you want to test the compiler with an actual device
or simulator.

On Sat, Nov 3, 2018 at 7:34 PM Dimitrios Chr. Ioannidis via fpc-devel <
Post by Dimitrios Chr. Ioannidis via fpc-devel
Hi,
is there a plan to support the new atmega series 4808,4809 in the AVR
compiler ?
regards,
--
Dimitrios Chr. Ioannidis
_______________________________________________
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Christo Crause
2018-11-05 20:07:40 UTC
Permalink
On Mon, Nov 5, 2018 at 12:37 AM Dimitrios Chr. Ioannidis <
<snip>
Post by Christo Crause
I can share a patch if you want to test the compiler with an actual
device or simulator.
That would be nice. I have the chip ( Microchip was so kind to send me
some samples ) so I think that I could do some test after I make a
breakout pcb .
Dimitrios,

I've made a fork of fpc on github so that all the changes can be easily
checked out in one go: https://github.com/ccrause/freepascal/tree/avr
Note that the changes are in the avr branch.

Loading...