Forum Discussion
After watchdog for dual-config is enabled, the FPGA seems like not work properly every dozens of seconds. Why?
FPGA communicates with another FPGA with PHY chip. Normally(watchdog enable checkbox not checked), the PHY link led is always off when communication is good. While after I enble watchdog for dual-config(watchdog enable checkbox checked) and set watchdog value to any value, the link led will be on for about 2 seconds and return to be off. This will also be repeated after dozens of seconds. Why? How will I use the watchdog for dual-config? I didn't run remote update after power-up and the FPGA just run application firmware(just ethernet communication with another FPGA using PHY chip).
Attached file is my fpga code for the dual-config.
54 Replies
- KWang97
Occasional Contributor
Maybe I could and I can have a try if you need.
Anyway, I am sure reconfig didn't happen and just PHY comminication goes wrong. I have two PHY communication path with the same phy chip in my master board which communicate with a slave board which also have two PHY path. In th slave board, One phy chip is the same PHY chip with master board, the other phy chip is different But they can communicate well without enabling watchdog. After I enable wathdog,the same phy chip works well while different phy chip will meet problems like what I mentioned.
- JohnT_Altera
Regular Contributor
May I know if you are able to read msm_cs whenever PHY communication is down?
- KWang97
Occasional Contributor
It's the same when I set timer to 0xFFF.
- JohnT_Altera
Regular Contributor
Hi,
Sorry. It should be 0xFFF.
- KWang97
Occasional Contributor
I wonder why is 0x1FFF? The value should be 12 bits while 0x1FFF has 13 ones.
- JohnT_Altera
Regular Contributor
Hi,
Could you increase the watchdog timer to 0x1FFF?
- KWang97
Occasional Contributor
It happens once I enable the watchdog , even I didn't use dual-config IP(write any code to dual-config IP). so I wonder why this can influnce PHY communication.@JohnT_Intel
- JohnT_Altera
Regular Contributor
Hi,
The code looks goods. I just ask to double confirm in hardware but since you mention that reconfiguration is not happening is not happening then it should be fine. You will need to further debug what is actually happening that cause teh PHY communication to be down.
- KWang97
Occasional Contributor
Yes, I see PHY communication down with Link LED on while it should be always off in normal situation.
The image didn't reconfigure because I didn't trigger it at all. And other parts of my code runs normally.
As to the Are you able to check if you assert the reset the watchdog timer correctly, that's what I am discussing with you and I also upload the code above 30minutes ago. So please help me see if it's OK?
- JohnT_Altera
Regular Contributor
Hi,
May I know if you observed PHY communication down, do you observed the image reconfigure? Are you able to check if you assert the reset the watchdog timer correctly?