Lazarus

Free Pascal => General => Topic started by: MarkMLl on March 02, 2019, 07:47:42 pm

Title: AVR loader in Pascal
Post by: MarkMLl on March 02, 2019, 07:47:42 pm
I've just picked up a pocket 'scope to look at various issues which don't merit anything more fancy:

https://hackaday.com/2017/08/08/touchscreen-oscilloscope/

One of the attractive points is that it can be driven from a PC, I'll probably knock something together using Lazarus sooner rather than later.

I'm in no hurry to start flashing firmware updates etc. but I notice that the designated program is written using Delphi:

https://sourceforge.net/projects/avrub/

Somewhere I've seen the author mention that he's considering porting it to FPC, presumably meaning Lazarus. Has anybody used it, or investigated its portability?

MarkMLl


Title: Re: AVR loader in Pascal
Post by: Thaddy on March 03, 2019, 09:41:05 am
It requires a lot of third-party components/units, but the core routines compile (lifted out) in FPC -Mdelphi on Windows systems. I could not find all the third-party stuff and the code is rather messy.

Also note FPC has native AVR support and it is easy to build a cross-compiler for it. The above project is not necessary at all for Freepascal.
http://wiki.freepascal.org/AVR
Use 3.3.1 trunk.
Title: Re: AVR loader in Pascal
Post by: MarkMLl on March 03, 2019, 10:31:02 am
It requires a lot of third-party components/units, but the core routines compile (lifted out) in FPC -Mdelphi on Windows systems. I could not find all the third-party stuff and the code is rather messy.

Also note FPC has native AVR support and it is easy to build a cross-compiler for it. The above project is not necessary at all for Freepascal.
http://wiki.freepascal.org/AVR
Use 3.3.1 trunk.

I probably don't need to run it but might possibly look at it at some point. Some of the extras look to be purely cosmetic.

Agreed that FPC has the capabilities in the general case (although I assume not for devices which use that specific loader), but I thought it worth mentioning anyway.

MarkMLl
Title: Re: AVR loader in Pascal
Post by: Thaddy on March 03, 2019, 10:42:47 am
Agreed that FPC has the capabilities in the general case (although I assume not for devices which use that specific loader), but I thought it worth mentioning anyway.
MarkMLl
The way AVR support is set up it can... for several of the family.
I am no real expert on AVR's (I am a tinkerer, tend to blow up things) , but people on this forum are (Jeppe?). So you might ask them. They are professionals on the subject.
AVR family users - on this forum - are usually either highly skilled amateurs or professionals.
But anyway: if you provide links to the third-party sourcecode it is highly likely I can convert it quickly, but just for Windows. Cross-platform support is another issue.
TinyPortal © 2005-2018