Manufacturing of segments with special end coils for cross-segment connection