For your needs, your phone is probably just right. I'm assuming you have a smart phone, and that it has GPS in it.
If you have Android, Google's
My Tracks app is free and does exactly what you want: record a GPS track, export a GPX file.
https://play.google.com/store/apps/d....maps.mytracks