Hi Teddy,
I attached one project for your reference. Several points below you have to take care when you write app project based on AN2295.
1. the last one or more flash sectors(according to protection configuration ) where bootloader is located must be protected and vector redirection must be enabled.
2. the startup routine of app project should be located in the last vector of relocated vector table.
3. In PRM file, the flash location for bootloader should be decreased.
Any doubt, let me know easily .
B.R
Weiping