Recent

Author Topic: Integrate AVRco Pascal into Freepascal?  (Read 7375 times)

coradi

  • Full Member
  • ***
  • Posts: 167
Integrate AVRco Pascal into Freepascal?
« on: October 10, 2023, 07:23:24 pm »
Integrate AVRco Pascal into Freepascal?
For AVR/Atmega/Xmega controllers
I just found out that the developer of the AVRco PAscal program has died and the program is now freeware.
Wouldn't it be a nice option to take over the AVRco project in Freepascal in order to fully support the AVR controllers?
https://www.e-lab.de/downloads/

"I myself do not use AVRco Pascal, but rather Mikroe Pascal."
« Last Edit: October 11, 2023, 09:43:01 am by coradi »
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5823
  • Compiler Developer
Re: Integrate AVRco Pascal into Freepascal?
« Reply #1 on: October 10, 2023, 08:58:37 pm »
FPC already supports development for AVR. Not to mention that the code in question is proprietary and would need a complete rewrite anyway to be integrated in FPC and we don't want to maintain yet another compiler and IDE.

coradi

  • Full Member
  • ***
  • Posts: 167
Re: Integrate AVRco Pascal into Freepascal?
« Reply #2 on: October 10, 2023, 09:14:48 pm »
and the use of defination files or something?
Then Freepascal does have a complete definations list for most of AVRs:-)
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

PascalDragon

  • Hero Member
  • *****
  • Posts: 5823
  • Compiler Developer
Re: Integrate AVRco Pascal into Freepascal?
« Reply #3 on: October 10, 2023, 09:27:55 pm »
I don't know what you mean with “definition files”.

The list of the AVR controllers that FPC currently supports is here.

ccrause

  • Hero Member
  • *****
  • Posts: 989
Re: Integrate AVRco Pascal into Freepascal?
« Reply #4 on: October 11, 2023, 07:08:20 am »
and the use of defination files or something?
Then Freepascal does have a complete definations list for most of AVRs:-)

FPC controller units (I think this is what you meant with definition files): https://gitlab.com/freepascal.org/fpc/source/-/tree/main/rtl/embedded/avr?ref_type=heads

Currently FPC does not support the newer families such as Dx and Ex, but this can be added relatively easily by processing the ATDFs.

coradi

  • Full Member
  • ***
  • Posts: 167
Re: Integrate AVRco Pascal into Freepascal?
« Reply #5 on: October 11, 2023, 07:39:42 am »
Yes, I think, this was what I mean:-)
My problem at this moment is, I installed some AVR Versions for the Compiler I see ARM etc. but no AVR in Lazarus
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

TRon

  • Hero Member
  • *****
  • Posts: 3843
Re: Integrate AVRco Pascal into Freepascal?
« Reply #6 on: October 11, 2023, 07:44:10 am »
Yes, I think, this was what I mean:-)
My problem at this moment is, I installed some AVR Versions for the Compiler I see ARM etc. but no AVR in Lazarus
In your project options config and target select:
target OS: embedded
target cpu family: avr
target processor: <your preferred processor target>

?
I do not have to remember anything anymore thanks to total-recall.

coradi

  • Full Member
  • ***
  • Posts: 167
Re: Integrate AVRco Pascal into Freepascal?
« Reply #7 on: October 11, 2023, 07:45:34 am »
Yes, thanks, I found a Youtube Tutorial for a minute for this:-)
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8138
Re: Integrate AVRco Pascal into Freepascal?
« Reply #8 on: October 11, 2023, 09:15:39 am »
and the use of defination files or something?
Then Freepascal does have a complete definations list for most of AVRs:-)

RTFM. I've just gone looking at DocuCompiler.pdf and section 10.1 appears to indicate that the syntax is the same as FPC uses.

The reason I looked is that I have in the past used a Pascal compiler which had a module syntax closer to that of Modula-2, and I developed various workarounds to get source to work with both that and Turbo Pascal.

Look, I'm sorry to be brutal here but there really is absolutely no excuse for your not doing your own homework here. Apart from anything else your German is almost certainly better than mine...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

coradi

  • Full Member
  • ***
  • Posts: 167
Re: Integrate AVRco Pascal into Freepascal?
« Reply #9 on: October 11, 2023, 09:47:03 am »
@MarkMLl
Sorry, I don't understand. I myself don't use AVRco Pascal at all, but rather Mikroe Pascal. I just found out that the developer of AVRco has passed away, and I thought maybe something valuable can be preserved from the AVRco compiler instead of letting it disappear underground, nothing more.
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Josh

  • Hero Member
  • *****
  • Posts: 1351
Re: Integrate AVRco Pascal into Freepascal?
« Reply #10 on: October 11, 2023, 10:30:30 am »
Quote
I just found out that the developer of the AVRco PAscal program has died and the program is now freeware.

It is probably me, but I cant find online the developer or his demise or any reference to freeware.

Note copyright lasts for 70 years after the demise of the author or demise of the company which ever is longer.
« Last Edit: October 11, 2023, 10:58:36 am by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

ccrause

  • Hero Member
  • *****
  • Posts: 989
Re: Integrate AVRco Pascal into Freepascal?
« Reply #11 on: October 11, 2023, 01:34:21 pm »
Start of relevant thread by rolf (English translation / original).  It appears that the software is currently released as freeware, but not open sourced.

Josh

  • Hero Member
  • *****
  • Posts: 1351
Re: Integrate AVRco Pascal into Freepascal?
« Reply #12 on: October 11, 2023, 01:54:36 pm »
@ccrause
Thanks, that what i could not find, need to improve my googling abilities :)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Zvoni

  • Hero Member
  • *****
  • Posts: 2800
Re: Integrate AVRco Pascal into Freepascal?
« Reply #13 on: October 11, 2023, 01:57:35 pm »
Start of relevant thread by rolf (English translation / original).  It appears that the software is currently released as freeware, but not open sourced.
https://forum-e--lab-de.translate.goog/topic.php?t=3965&page=21&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp
Page 21 - First Post (date: 2023-06-01)
Quote
Rolf retired from AVRCo a while back. AVRCo is now a free product and to a large extent has to be community based because effectively it is no longer funded.
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

Mongkey

  • Sr. Member
  • ****
  • Posts: 435
Re: Integrate AVRco Pascal into Freepascal?
« Reply #14 on: October 11, 2023, 02:53:35 pm »
Bro you need to take a look milk v duo chip, it has linux ability with powerfull chip, $9 only, may be freepascal could dance there.

Thank you

 

TinyPortal © 2005-2018