View Issue Details

IDProjectCategoryView StatusLast Update
0035811FPCRTLpublic2019-08-07 22:07
ReporterKarl-Michael SchindlerAssigned ToJonas Maebe 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionsuspended 
PlatformdarwinOSMac OS XOS Version10.5, 10.6
Product Version3.3.1Product Build42336 
Target VersionFixed in Version 
Summary0035811: enable the unit serial on darwin
DescriptionThe unit serial (packages/rtl-extra/src/unix/serial.pp) is disabled on darwin. Although there are no macs with serial ports, it makes sense to enable the unit for USB to serial adapters, which are available as external devices and used in USB interfaces of external electronics.

In order to enable it, darwin needs to be added to the list of OSes in line 23 of the file packages/rtl-extra/fpmake.pp

  SerialOSes = [android,linux,netbsd,openbsd,win32,win64];

  SerialOSes = [android,darwin,linux,netbsd,openbsd,win32,win64];
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Jonas Maebe

2019-07-07 16:52

manager   ~0117105

Last edited: 2019-07-07 17:23

View 2 revisions

Have you tested the unit on Darwin?

Karl-Michael Schindler

2019-08-03 21:00

reporter   ~0117559

A first call of the serial line with a kext for a USB to serial adapter worked, but the second created a process, which made one CPU run at 100% and could not be stopped/killed by any means. The only way was a restart. I am not sure, whether I can resolve this and give up for the time being. So, please close this issue.

Jonas Maebe

2019-08-03 21:15

manager   ~0117560

> the second created a process, which made one CPU run at 100% and could not be stopped/killed by any means. The only way was a restart.

That sounds more like a bug in the kext rather than in the unit (unkillable processes are generally stuck in the kernel).

Karl-Michael Schindler

2019-08-03 21:40

reporter   ~0117561

> That sounds more like a bug in the kext rather than in the unit (unkillable processes are generally stuck in the kernel).

I had the same idea. The way out might be to check with direct system IO calls, how to drive that kext properly, but I am again skeptical, whether i can manage that.

Another issue was, that on short circuiting line 2 and 3 of the serial connector, the return had bit 4 and 5 missing.

Issue History

Date Modified Username Field Change
2019-07-07 16:38 Karl-Michael Schindler New Issue
2019-07-07 16:52 Jonas Maebe Note Added: 0117105
2019-07-07 17:23 Jonas Maebe Note Edited: 0117105 View Revisions
2019-08-03 21:00 Karl-Michael Schindler Note Added: 0117559
2019-08-03 21:15 Jonas Maebe Note Added: 0117560
2019-08-03 21:40 Karl-Michael Schindler Note Added: 0117561
2019-08-07 22:07 Jonas Maebe Assigned To => Jonas Maebe
2019-08-07 22:07 Jonas Maebe Status new => resolved
2019-08-07 22:07 Jonas Maebe Resolution open => suspended
2019-08-07 22:07 Jonas Maebe FPCTarget => -