I created a custom peripheral which has one slave register. I tried to write to this register and read the data back.
I program the FPGA using Xilinx SDK tool. I use xilinx webpack 14.5.
After I use SDK tool to program the chip, I execute the software. Everything seems working except things related to the custom peripheral. For example, I can read/write with the UART and I can write to the leds on the board using GPIOs. BUT writing and then reading from the custom peripheral fails. For example, When I read, the read value is rubbish but constant value.
When I create an mcs file for the QSPI flash, then program the flash, restart the board and run it, everything WORKS as expected. Then the issue only happens when I try to execute/run the software from the SDK.
Same issue is repeated when I use interrupts from GPIOs. Interrupts only work when I program the flash then run the board again.