dpaul
Advanced Member level 5
My FPGA(Master) is connected to a SPI NOR Flash memory(Slave). The FPGA also has a soft CPU core. Using existing firmware for the CPU, it is currently possible to read out info such as DeviceID, ManufacturerID from the NOR flash. The existing firmware can be controlled (CPU can be instructed what to do) via an UART interface and I know how to modify the C code it to suite my needs.
Now a colleague of mine wants to measure the SPI bus signal integrity at the board level, between the FPGA and the Flash, and for that reason I have to develop some firmware for him so that SPI signals keep toggling when he is doing the measurements with oscilloscope.
My question is not how to write and read to/from the Flash.
How can I structure the firmware so that the SPI signals toggle, such that it is possible for my colleague to take measurements during SPI read and write cycles?
Is it a proper way if I give him a menu option through the UART interface to first write continuously to consecutive memory locations till the end is reached and then read everything back?
Please give your suggestions.
Now a colleague of mine wants to measure the SPI bus signal integrity at the board level, between the FPGA and the Flash, and for that reason I have to develop some firmware for him so that SPI signals keep toggling when he is doing the measurements with oscilloscope.
My question is not how to write and read to/from the Flash.
How can I structure the firmware so that the SPI signals toggle, such that it is possible for my colleague to take measurements during SPI read and write cycles?
Is it a proper way if I give him a menu option through the UART interface to first write continuously to consecutive memory locations till the end is reached and then read everything back?
Please give your suggestions.