The Spireites won the Johnstone Paint Trophy with a 2-0 win over Swindon at Wembley in March and begin their defence of their trophy with a clash against League One Latics.
Elsewhere, League One newcomers Portsmouth and Coventry host Bournemouth and Burton Albion respectively, while Swindon begin their bid to reach successive finals with a trip to Oxford.
The full draw for the first Round of the Johnstone's Paint Trophy:
Rochdale v Fleetwood Town; Carlisle v Preston; Accrington Stanley v Morecambe; Port Vale v Tranmere; Rotherham v York; Chesterfield v Oldham; Coventry v Burton Albion; Scunthorpe v Notts County.
Oxford Utd v Swindon; Bristol Rovers v Yeovil; Portsmouth v Bournemouth; Exeter v Aldershot; Southend v AFC Wimbledon; Dag & Red v Stevenage; Northampton v Milton Keynes Dons; Crawley Town v Gillingham.
Ties will be played week commencing 3 September.
Any reproduction, publication or redistribution of this material without the written agreement of 365 Media Group is strictly forbidden.