Question
how to write the QSPI flash memory
Hello everyone!!!
I'm yugenthar
Still I am working in QSPI concept in stm32f746 disco board
I tried to write the data for QSPI flash memory but I can't able to write and read the QSPI flash memory
I have attached my code and snap pls find and give any solution

/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "quadspi.h"
#include "gpio.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
uint8_t *writebuf = "Hello world from QSPI !";
uint8_t readbuf[100];
uint16_t number = 1234;
uint8_t buf[5];
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/
/* USER CODE BEGIN PD */
/* USER CODE END PD */
/* Private macro -------------------------------------------------------------*/
/* USER CODE BEGIN PM */
typedef void (*pFunction)(void);
pFunction JumpToApplication;
#define APPLICATION_ADDRESS 0x90000000
/* USER CODE END PM */
/* Private variables ---------------------------------------------------------*/
/* USER CODE BEGIN PV */
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* Enable I-Cache---------------------------------------------------------*/
SCB_EnableICache();
/* Enable D-Cache---------------------------------------------------------*/
SCB_EnableDCache();
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_QUADSPI_Init();
/* USER CODE BEGIN 2 */
if (CSP_QUADSPI_Init() != HAL_OK)
{
Error_Handler();
}
/****************** FOR SIMPLE WRITE READ ********************/
// Comment out these if you are using the EXT MEM BOOT
if (CSP_QSPI_Erase_Chip() != HAL_OK)
{
Error_Handler();
}
sprintf (buf, "%u", number);
if (CSP_QSPI_Write(buf, 0, strlen (buf)) != HAL_OK)
{
Error_Handler();
}
if (CSP_QSPI_Read(readbuf, 0, 100) != HAL_OK)
{
Error_Handler();
}
/*************************************************/
/*********************** FOR EXT MEM BOOT *************************/
// Comment out these if you are using the simple Read Write
if (CSP_QSPI_EnableMemoryMappedMode() != HAL_OK)
{
Error_Handler();
}
// Disable the cache
SCB_DisableDCache();
SCB_DisableICache();
// Disable the systick interrupt
SysTick->CTRL = 0;
/* Initialize user application's Stack Pointer & Jump to user application */
JumpToApplication = (pFunction) (*(__IO uint32_t*) (APPLICATION_ADDRESS + 4)); // Reset Handler
__set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS); // stack pointer
JumpToApplication(); // make the jumpution are example code
