STM32 OCTOSPI Communication: High-Speed Serial Interface
#define FLASH_SIZE 0x4000000 // 64MB /* Initialize Hyperflash */ void Hyperflash_Init(void) { OCTOSPI_Init(); /* Reset Hyperflash */ uint8_t cmd[4] = {0xF0, 0x00, 0x00, 0x00}; OCTOSPI_Write(0, cmd, 4); HAL_Delay(1); /* Configure read/write mode */ cmd[0] = 0xC0; cmd[1] = 0x00; cmd[2] = 0x00; cmd[3] = 0x00; OCTOSPI_Write(0, cmd, 4); } /* Program download to Hyperflash */ … Read more