A CSX train caught fire and came to a stop late Friday morning near downtown Wake Forest, officials said.