Part Number: AM2634
Hi
can anyone explain me why my code is moving to while loop in attributes sometimes.
its showing hwip or undef or svchandler , everytime code is moving to different while loops.
i want to know that why this will happen and how to resolve it, is there any provision to disable these attributes temporarly. below shareed functions will provide some information about attributes.
///< Func is called in .S file
void __attribute__((interrupt("UNDEF"), section(".text.hwi"))) HwiP_reserved_handler(void)
{
volatile uint32_t loop = 1;
while(loop!=0U)
{
///< Wait
}
}
///< Func is called in .S file
void __attribute__((interrupt("UNDEF"), section(".text.hwi"))) HwiP_undefined_handler(void)
{
volatile uint32_t loop = 1;
while(loop!=0U)
{
///< Wait
}
}
///< Func is called in .S file
void __attribute__((interrupt("SWI"), section(".text.hwi"))) HwiP_svc_handler(void)
{
volatile uint32_t loop = 1;
while(loop!=0U)
{
///< Wait
}
}
///< Func is called in .S file
void __attribute__((interrupt("ABORT"), section(".text.hwi"))) HwiP_prefetch_abort_handler(void)
{
volatile uint32_t loop = 1;
while(loop!=0U)
{
///< Wait
}
}
///< Func is called in .S file
void __attribute__((interrupt("ABORT"), section(".text.hwi"),weak)) HwiP_data_abort_handler_c(void)
{
volatile uint32_t loop = 1;
while(loop!=0U)
{
///< Wait
}
}