Have you touched the boot address configuration on your board ? Because maybe you are flashing correctly in the ram but booting in the flash.