Hi,
Please review your *.map file to see how much flash space the application wants. If you have any code optimization you can do to reduce flash space that helps.
You can also open the Properties of the project and change the Optimization Level being used. Typically it defaults to None so setting it to something higher can help save space.

Clean and then re-build project and look at *.map file again.
Lastly, if neither help you probably need a KV device with more flash.
Regards,
David