Do you have an example source that will show me how to build my application to be stored in flash memory?
Yes, Logic has a small sample application that can be built for both
RAM and flash memory. You can find it under the Sample Application
category on the product downloads page.