Hi David,
You can generate the *.hex file by going to menu Project > Properties > C/C++ Build > Settings > Toolchains tab, check the "Create Flash Image" option and click on Apply:

Go to the Tool Setting tab and the Cross ARM GNU Create Flash Image option should have appeared, click on General and now you can select the desired output file format:

Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------