Hi Anthony,
I updated my quadspi_load project to use your quadspi_load.c and split.c. I added the following #defines to quadspi_load.c
#define PARALLEL_MODE 1
#define FLASH1_BASE_ADR 0x20000000
#define FLASH2_BASE_ADR 0x21000000
In source file quadspi.c I modified quadspi_erase( void ) to quadspi_erase( unsigned long address ) in order to work with your code in main(). I did not modify any other quadspi code in Vybrid Sample Code folder.
I modified quadspi_conf in the hello_world example code:
...
1, /* Parallel Mode Disable */
...
The image would not boot when I configured the jumpers to boot from QSPI. I could debug the image executing in QSPI through IAR EW IDE and j-link. I stepped through the image and verified it was executing from QSPI.
I am continuing to investigate.
Regards,
Nancy
Here is the hello_world quadspi_conf:
const SFLASH_CONFIGURATION_PARAM quadspi_conf = {
0, /* DQS LoopBack */
0, /* Reserved 1*/
0, /* Reserved 2*/
0, /* Reserved 3*/
0, /* Reserved 4*/
0, /* cs_hold_time */
0, /* cs_setup_time */
0x400000, /* A1 flash size */
0, /* A2 flash size */
0, /* B1 flash size */
0, /* B2 flash size */
0, /* SCLK Freq */
0, /* Reserved 5*/
1, /* Single Mode Flash */
0, /* Port - Only A1 */
0, /* DDR Mode Disable */
0, /* DQS Disable */
1, /* Parallel Mode Disable */
0, /* Port A CS1 */
0, /* Port B CS1 */
0, /* FS Phase */
0, /* FS Delay */
0, /* DDR Sampling */
/* LUT Programming */
0x0403,
0x0818,
0x1c08,
0x2400,
};