[fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Dennis Poon
I downloaded http://www.turbocontrol.com/easyfpgui.htm which as a zip of example of using synapse on ARM platform. It worked on raspberry Pi (raspbian os) but it uses a specialized trimmed down version of Free Pascal library. I need to work with the traditional free pascal library since my

Re: [fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Marco van de Voort
In our previous episode, Dennis Poon said: However, when I extract the relevant code from that example and use the normal fpc compiler (2.6.0) instead of the pparm (2.6.2) The most recent version of the normal compiler is also 2.6.2 ___ fpc-pascal

Re: [fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Ewald
On 08 Jul 2013, at 12:09, Dennis Poon wrote: However, when I extract the relevant code from that example and use the normal fpc compiler (2.6.0) instead of the pparm (2.6.2) and special fp lib inside that zip, my program freezes on synapser.pas TBlockSerial.Connect at the line of

Re: [fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Dennis Poon
Ewald, It does not fix it :-( The weird thing is, now even if I run the trimmed down version compiled with 2.6.2, it also freezes. But running sudo minicom -b 9600 -o -D /dev/ttyAMA0 has no problem at all. I tried sudo -i then startx to run X window as root then execute the program, still

Re: [fpc-pascal] synapser freezes on fopen(FDevice, 0_RDWR or 0_SYNC) on raspberry Pi

2013-07-08 Thread Dennis Poon
Although not 100% sure, I kinda fixed the problem. I remove a lot *.o *.ppu from the example and recompile again, both fpc 2.6 and ppcarm 2.6.2 can produce programs that work. I don't understand why and I am happy for now. thanks for advice. Dennis Dennis Poon wrote: Ewald, It does not fix