Recent

Author Topic: AVR loader in Pascal  (Read 2994 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
AVR loader in Pascal
« 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


MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: AVR loader in Pascal
« Reply #1 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.
« Last Edit: March 03, 2019, 09:49:10 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6686
Re: AVR loader in Pascal
« Reply #2 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: AVR loader in Pascal
« Reply #3 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.
« Last Edit: March 03, 2019, 10:52:18 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018