Please following the new project wizards to create a sample project, and try to execute and debug this project in RAM, if the sample project could be debugged successfully, please check the flash configuration, otherwise there should SDRAM configuration problem.