Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-02

Synaser on ARM

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

greim

Hi a short howto for all trying to use the serial port on ARM Linux

After fighting several hours i was able to cross-compile for ARM (OMAP 3 Gumstix Overo)
Most helpful (but not totally right for the OMAP i think) was: http://www.eilers.net/index.php?option=com_content&view=article&id=78&Itemid=55 but some hints why and not only how would be fantastic

I was trying to compile a program for the serial port using the fantastic synaser.pas
from Lukas Gebauer
http://www.ararat.cz/synapse/doku.php/download

unfortunately the linker always reported an error.

After several hours more i found a hint at

http://www.turbocontrol.com/simpleserial.htm
from Paul Brenemann

removing the
USE synafpc.pas
from synaser.pas (is not used at all in the Linux version)

In termios.inc Baud symbols over 460800 are not defined for target cpuarm
,
so this must also adopted in the synaser.pas.

Now it is linking and running, great!

Regards

Markus Greim

Reply by email

Nataraj S Narayan
to greim

Markus

Are you using Angstrom tool chain on Gumstix Overo? Is it uclibc based?

I do have my share of woes on Codesourcery TC for fpc. regards

Nataraj

greim wrote 38 lines
Hi a short howto for all trying to use the serial port on ARM Linux After fighting several hours i was able to cross-compile for ARM (OMAP 3 Gumstix Overo) Most helpful (but not totally right for the OMAP i think) was: http://www.eilers.net/index.php?option=com_content&view=article&id=78&Itemid=55 but some hints why and not only how would be fantastic I was trying to compile a program for the serial port using the fantastic synaser.pas from Lukas Gebauer http://www.ararat.cz/synapse/doku.php/download unfortunately the linker always reported an error. After several hours more i found a hint at http://www.turbocontrol.com/simpleserial.htm from Paul Brenemann removing the USE synafpc.pas from synaser.pas (is not used at all in the Linux version) In termios.inc Baud symbols over 460800 are not defined for target cpuarm , so this must also adopted in the synaser.pas. Now it is linking and running, great! Regards Markus Greim _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

greim
to Nataraj S Narayan

Hi Nataraj

Are you using Angstrom tool chain on Gumstix Overo? Is it uclibc based?

glibc AFAIK..

I do have my share of woes on Codesourcery TC for fpc.

... sorry i am not sure if i had understand your comment right i fear.. I was using the libs found at free-electrons (see last mail ).

Regards

Markus

Reply by email