ampersand2
Newbie
Hy
I have FPGA development kit, with ACTEL FUSION M1AFS600 FPGA device. I use LiberoIDE 9.0 and Softconsole 3.1 tools. I use the newest cores in SmartDesign and firmwares in SoftConsole.
So, my problem is:
I try to use interrupts in my design, but this not working. When I debug my C code in Softconsole, the debugger step to next loop:
/***************************************************************************//**
* Hard Fault.
*/
__attribute__((__interrupt__)) void HardFault_Handler( void )
{
while( 1 )
{
;
}
}
I don`t know, what this is mean.
I use the example code from CoreTimer UserGuide, to reach the interrupts. In SmartDesign I connect timer interrupt source to irq1 input of Coreinterrupt, and the irq output of CoreInterrupt I connect to irq0 input on Cortex M1 cpu. The NMI(Non maskable interrupt) input I tied low.
In C code I use next adresses to reach these interrupts:
#define IRQ_TIMER_TICK_MASK 0x00000001 /*IRQ source 1*/
The Codes file include C codes and the part of SmartDesign layout.
I have FPGA development kit, with ACTEL FUSION M1AFS600 FPGA device. I use LiberoIDE 9.0 and Softconsole 3.1 tools. I use the newest cores in SmartDesign and firmwares in SoftConsole.
So, my problem is:
I try to use interrupts in my design, but this not working. When I debug my C code in Softconsole, the debugger step to next loop:
/***************************************************************************//**
* Hard Fault.
*/
__attribute__((__interrupt__)) void HardFault_Handler( void )
{
while( 1 )
{
;
}
}
I don`t know, what this is mean.
I use the example code from CoreTimer UserGuide, to reach the interrupts. In SmartDesign I connect timer interrupt source to irq1 input of Coreinterrupt, and the irq output of CoreInterrupt I connect to irq0 input on Cortex M1 cpu. The NMI(Non maskable interrupt) input I tied low.
In C code I use next adresses to reach these interrupts:
#define IRQ_TIMER_TICK_MASK 0x00000001 /*IRQ source 1*/
The Codes file include C codes and the part of SmartDesign layout.