Code generation
The QSPI Configurator generates code into the
GeneratedSource
directory in your BSP, or in the same location you saved the Configuration file for non-Eclipse IDE applications. That directory contains the necessary source (.c) and header (.h) files for the generated firmware, which uses the relevant driver APIs to configure the hardware.
Files used by the configuration tool
The QSPI Configurator uses and provides write access to two types of files: the QSPI configuration file (*.
cyqspi
), and the memory configuration files: ( .
cymem
). The QSPI Configurator uses the information from these files to generate the following files:
*.
cyqspi
– Controls the application-level settings used to provide access to the serial memory device. In the GUI, these settings are at the top of the main window. For the format and contents of the *.
cyqspi
file, see
.cyqspi schema
.
*.
cymem
– Contains parameters of a specific serial memory device, including command formats, memory access sizes, and memory access timings. Unless you are creating a new *.
cymem
file, these settings are typically read-only and are shown in the lower part of the main window. For the format and contents of *.
cymem
files, see
.cymem schema
.
cy_qspi_memslot.c
– Contains structures populated with parameters specified by the *.
cyqspi
file and the *.
cymem
file or files.
cy_qspi_memslot.h
– Contains the declarations of the structures defined in
cy_qspi_memslot.c
.
qspi_config.cfg
– Contains a SMIF Bank layout for use with OpenOCD. It can be ignored if OpenOCD is not in use.