I can write and read to the quad flash using Generic Flash Serial IP and it works, but When there is problem in the middle of the application image (not in the start where the RSU looking before the reconfig starts) the factory image repeatedly trying to go to the application image.
why is this happening? why doesn't it just stay in the factory image?
hope for quick response.
Have you enabled this option "Auto restart configuration after error" in quartus? You can do so by following the steps below:
Enable option “Auto-restart configuration after error” (Assignments > Device > Device and Pint Options > General > Auto-restart configuration after error).
Thank you for the quick answer.
I enabled this option of course.
My RSU configuration is as follows:
state 1: RESET off
state 2: empty state
state 3: set Anf='1'
state 4: set start address
state 5: disable watch dog(it doesnt go to application image if i turned it on)
state 6: reconfig='1'
Everything work until there is problem in the application image, then it try repeatedly to run the application mode.
I will appreciate your quick response.
Setting ANF to 1 means that you are booting application image. If application image corrupted, it will try to boot into application image for a few times and eventually will go back to factory mode.
Hope it helps