Recent

Author Topic: Teensy (no OS) programmed with Free Pascal Embedded ARM  (Read 33813 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #15 on: June 24, 2015, 03:58:33 pm »
Oh, I like this. The Teensy is also used in the open source ultimate hacking keyboard project ErgoDox [http://ergodox.org/]. They are programming all kinds of things for that keyboard. Being able to use FPC would be kinda cool too. ;-)
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #16 on: July 11, 2015, 03:16:14 pm »
Thanks for that ErgoDox info Graeme!  I've been away for a month but getting back into things now.  I just got the updated fpcup (https://github.com/LongDirtyAnimAlf/Reiniero-fpcup) working in my XP VM. Can anyone help me figure out how to use fpcup to generate the FPC compiler for the Teensy?
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #17 on: July 21, 2015, 12:37:45 am »
I've been working on this related wifi page for the past several days:
http://wiki.freepascal.org/Small_Virtual_Machines

Help is needed!
Regards,
Paul Breneman
www.ControlPascal.com

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #18 on: July 29, 2015, 01:03:03 pm »
From the wiki page: http://wiki.freepascal.org/Small_Virtual_Machines

This downloads a file (875240 bytes) but can't execute it (help needed):
wget https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/blob/master/bin/i386-linux/fpcup_linux_x86?raw=true --no-check-certificate
mv fpcup_linux_x86?raw=true fpcup
chmod u+rx fpcup
sudo ./fpcup (Get No such file or directory error)

I've also added an issue on this page: https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/issues

I'd sure like to get fpcup working on the small Debian linux virtual machine.  There must be something simple I'm doing wrong.  If so, please let me know what you think.
Regards,
Paul Breneman
www.ControlPascal.com

lagprogramming

  • Full Member
  • ***
  • Posts: 159
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #19 on: September 06, 2015, 09:32:15 pm »
   Have you ever heard of a situation where building fpc for a subarchitecture would require different tools than other subarchitectures for the same CPU-OS platform?
   With other words, just to exemplify, something like: embedded-arm-armv4t requires a BINUTILSPREFIX value and embedded-arm-armv7em requires a different BINUTILSPREFIX value, or a different directory.

Laksen

  • Hero Member
  • *****
  • Posts: 652
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #20 on: September 06, 2015, 10:40:01 pm »
Not unless there's a bug in a given binutils version, which isn't unthinkable but doesn't happen very often for >2.19. Just use the newest version for all ARM versions.

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #21 on: September 20, 2015, 01:25:44 am »
I've been working on this related wifi page for the past several days:
http://wiki.freepascal.org/Small_Virtual_Machines

I've now got fpcup working on a Debian LXDE VM as shown on that wiki page.  Can anyone suggest how I get FPC compiled to use for generating programs for Teensy?
Regards,
Paul Breneman
www.ControlPascal.com

Laksen

  • Hero Member
  • *****
  • Posts: 652
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #22 on: September 20, 2015, 11:42:41 am »
The make instructions on the previous page should still work. Don't hesitate to ask if there's anything missing or you get errors

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #23 on: September 21, 2015, 12:49:41 am »
Thanks Laksen, but  I should have asked how I can use fpcup to get FPC compiled  to generate programs for Teensy.
Regards,
Paul Breneman
www.ControlPascal.com

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1323
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #24 on: September 21, 2015, 08:14:12 am »
I have made some mods to fpcup, especially for the VM setup.
Not yet on GitHub ... still testing.
Now I am working on embedded, for the Teensy.
Hope to finish it today (will be away for the next week or so).

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1323
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #25 on: September 21, 2015, 10:33:52 am »
Added arm embedded for fpcup !

For Teensy:

Get the arm embedded binutils from:
http://svn2.freepascal.org/svn/fpcbuild/binaries/i386-win32/

(arm-embedded-ar.exe
arm-embedded-as.exe
arm-embedded-ld.exe
arm-embedded-objcopy.exe
arm-embedded-objdump.exe
arm-embedded-strip.exe)

Copy those file into the directory where fpcup can find them (default):
c:\development\cross\bin\arm-embedded

Run fpcup (after having run fpcup for a standard install) to crosscompile:

fpcup.exe --ostarget="embedded" --cputarget="arm" --subarch="armv7em" --only="FPCCleanOnly,FPCBuildOnly"

And hopefully, you are ready to go (on Windows).

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1323
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #26 on: September 21, 2015, 11:27:26 am »
Linux enabled with latest commit !

Remember to get the arm-embedded binutils first !

Laksen

  • Hero Member
  • *****
  • Posts: 652
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #27 on: September 21, 2015, 11:44:41 am »
arm-none-eabi- will do as well if that's the only one you can find. Just make some symbolic links from arm-embedded-as to arm-none-eabi-as for example. Do that for all the programs DonAlfredo listed above

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1323
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #28 on: September 21, 2015, 01:20:25 pm »
@ Laksen
Thanks for this additional info.

However, fpcup will already search for 'arm-none-eabi !

A test should be welcome in any case, because I cannot test this on my system yet.
So, feedback welcome !

Laksen

  • Hero Member
  • *****
  • Posts: 652
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #29 on: September 21, 2015, 02:06:09 pm »
Oh okay, then just forget what I said.. :)

 

TinyPortal © 2005-2018