Forum Discussion
Hi @Allen_2020,
Thank you for posting in Intel community forum and hope you are doing well.
Further clarification, do you mind explaining more on what do you mean by normal?
Also do you see any error or warning upon compiling?
There are some design example that you can refer to which is using the interrupt request here.
More details for the HAL Api function can also be found here.
Warm regards.
static ALT_INLINE void ALT_ALWAYS_INLINE
alt_irq_enable_all (alt_irq_context context)
{
#if (NIOS2_NUM_OF_SHADOW_REG_SETS > 0) || (defined NIOS2_EIC_PRESENT) || \
(defined NIOS2_MMU_PRESENT) || (defined NIOS2_MPU_PRESENT)
alt_irq_context status;
NIOS2_READ_STATUS (status);
status &= ~NIOS2_STATUS_PIE_MSK;
status |= (context & NIOS2_STATUS_PIE_MSK);
NIOS2_WRITE_STATUS (status);
#else
NIOS2_WRITE_STATUS (context); // The debug program stops here
#endif
- BoonBengT_Altera5 years ago
Moderator
Hi @Allen_2020,
Looking on the code that you have, I am suspecting there might be something off with the way the alt_irq_register are invoked, maybe the parameters.
Possible for you to share your quartus project for us to look into further more?Note: for the time being here is a different design example which make use of HAL api reference here and you can have a look at it. (download the example 'an459-design-files.zip', it is based on the following guideline)
Warm regards.
- BoonBengT_Altera5 years ago
Moderator
Hi @Allen_2020,
Hope this message find you well and good day, as we do not receive any response from you to the previous clarification that we have provided. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.
Warm Regards