How to Integrate UART demo and SPI Nor Flash demo Code together

I am using EC200U-CNAA module for interfacing SPI flash memory.
I am trying to write and Read data from SPI flash memory using UART. I want to pass address and data from UART to Flash. Please send me the integrated demo code for SPI Flash memory and UART.

You can refer to using SPI FLASH in the following path, components\ql-application\spi_nor_flash, you can refer to spi_nand_nor_demo.c