Recent

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

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #45 on: October 10, 2015, 07:04:06 pm »
I just posted my initial page: http://turbocontrol.com/simpleteensy.htm

Lots more work to do but its a start!
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 #46 on: October 11, 2015, 03:04:26 am »
If any of the real experts (not me) want to answer some questions please look here: https://forum.pjrc.com/threads/28518-Teensy-with-Freepascal
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 #47 on: October 11, 2015, 03:58:16 pm »
If any of the real experts (not me) want to answer some questions please look here: https://forum.pjrc.com/threads/28518-Teensy-with-Freepascal

Here are the questions:
How easy is it to do all the common hardware things from Freepascal? How much low-level setup is required use digital and analog I/O? Can you use the serial ports? Timers? Capacitive touch sensing? Can you even access the registers without porting a massive header file? Is it possible to link with existing C or C++ libraries?

Any quick summary anyone would like for me to post as a response? Please write back here if you don't want to register on that forum.
Regards,
Paul Breneman
www.ControlPascal.com

ykot

  • Full Member
  • ***
  • Posts: 141
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #48 on: October 11, 2015, 05:44:35 pm »
Sounds rather an interesting topic, will get Teensy myself and experiment. But is it just me or that turbocontrol.com web site never works? (tried its links few days ago and now - still down)

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #49 on: October 19, 2015, 07:18:35 pm »
Could you explain why you want to remove Lazarus ? It makes life a lot easier !
But true, for embedded, it is not realy needed. You could use a simple text-editor.

I'm trying to find (then show) the most simple way to start using Free Pascal with Teensy.  Once someone tries that then they could next install Lazarus, but I don't think we should start there.  These are my current steps: http://www.controlpascal.com/tutorial.htm

I've been looking at the source code of fpcup and figured out a way to leave out Lazarus.  I've updated the wiki:
http://wiki.freepascal.org/Small_Virtual_Machines#WinXp_virtual_machine
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 #50 on: October 24, 2015, 01:27:24 am »
I've been looking at the source code of fpcup and figured out a way to leave out Lazarus.  I've updated the wiki:
http://wiki.freepascal.org/Small_Virtual_Machines#WinXp_virtual_machine

Since I can now use fpcup for only FPC I have been able to get the console Debian (http://wiki.freepascal.org/Small_Virtual_Machines#Debian_console_virtual_machine) to work for trunk FPC.  But when I try to compile the rtl for Teensy I get the error noted on the wiki.  Any suggestions on a fix?
Regards,
Paul Breneman
www.ControlPascal.com

Laksen

  • Hero Member
  • *****
  • Posts: 724
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #51 on: October 24, 2015, 02:34:47 am »
Check what version of arm binutils you are using. Sounds like a bug in that.. armv7e-m has been working for years

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #52 on: October 24, 2015, 02:52:32 am »
Check what version of arm binutils you are using. Sounds like a bug in that.. armv7e-m has been working for years

Glad that you know the 'armv7e-m' (with the extra dash) is OK.  My arm-none-eabi-as is GNU assembler version 2.25 using BFD version (2.25-5+5+b1) 2.25
Regards,
Paul Breneman
www.ControlPascal.com

Laksen

  • Hero Member
  • *****
  • Posts: 724
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #53 on: October 24, 2015, 04:58:59 pm »
It's probably just not using the arm binutils then. In the normal build process you would just specify BINUTILS_PREFIX=arm-none-eabi-

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #54 on: October 24, 2015, 06:19:48 pm »
It's probably just not using the arm binutils then. In the normal build process you would just specify BINUTILS_PREFIX=arm-none-eabi-

That would be BINUTILSPREFIX not BINUTILS_PREFIX?
Specialize a type, not a var.

Laksen

  • Hero Member
  • *****
  • Posts: 724
    • J-Software
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #55 on: October 24, 2015, 06:24:33 pm »
Yes, correct

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #56 on: October 24, 2015, 07:24:55 pm »
It's probably just not using the arm binutils then. In the normal build process you would just specify BINUTILS_PREFIX=arm-none-eabi-

In fpcup in the m_any_to_embeddedarm.pas file it is not searching /usr/bin for 'arm-none-eabi-' so I think that is the problem.  Thanks for all of the comments and suggestions!
Regards,
Paul Breneman
www.ControlPascal.com

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #57 on: October 26, 2015, 11:28:23 am »
Added /usr/bin to search path for fpcup !

Also added (for some time now) is a new switch that prevents the download of the repos themselves by default. This to keep the install small and the download time limited.

It can be enabled again by adding "--getfullrepo" to the command line of fpcup.

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Teensy (no OS) programmed with Free Pascal Embedded ARM
« Reply #58 on: October 26, 2015, 01:20:43 pm »
Regards,
Paul Breneman
www.ControlPascal.com

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
Teensy
« Reply #59 on: October 30, 2015, 02:20:03 pm »
the best thing about teensy is the fact that it can control a DIY electronic chessboard (with magnets and reed relays) as a dedicated chess machine.

 

TinyPortal © 2005-2018