Forum Discussion
Hi ,
Please check the below forum thread for a related discussion.
https://forum.rocketboards.org/t/how-to-use-interrupt-in-the-bare-metal-mode-on-cyclone-v/1059/6
Also there are two types of interrupts , cpu interrupts and global interrupts.
The reason for program counter jumping to All zero address can be many ways which is heavily dependent on the implementation.
If you can share your assembly and other files we can have detailed look.
But would suggest to contact a local sales person for dedicated support which involves code debug.
Thanks and Regards
Anil
- PeterTs5 years ago
New Contributor
Hi Anil,
Thank you for your response.
I found the cause of the PC jumping to zero - it was due to the HPS Watchdog0 expiring. This in turn was a result of I2C bus transactions taking longer than the watchdog interval I'd set (because I wasn't handling an I2C NAK from my slave device correctly).
When debugging via JTAG I've found I need to disable the watchdog to prevent watchdog resets.