Hi guys,
I am getting stuck when using SysTick. Here is my setting:
1
2
3
4
5
6
7
|
uint32_t freq = SysCtlClockGet(); printf ( "CPU freq: %d" , freq); fflush (stdout); SysTickPeriodSet(SysCtlClockGet() / 5); //SysTickIntRegister(&SysTickIntHandler); SysTickIntEnable(); SysTickEnable(); |
I got the error:
ti.sysbios.family.arm.m3.Hwi: line 1120: E_noIsr: id = 15, pc = 00008c22
Exception occurred in background thread at PC = 0x00008c22.
Core 0: Exception occurred in ThreadType_Task.
Task name: ti.sysbios.knl.Task.IdleTask, handle: 0x200071a8.
Task stack base: 0x20003860.
Task stack size: 0x800.
R0 = 0x00000090 R8 = 0xffffffff
R1 = 0x00000044 R9 = 0xffffffff
R2 = 0x00000890 R10 = 0xffffffff
R3 = 0x00000000 R11 = 0xffffffff
R4 = 0x00011d00 R12 = 0x00000020
R5 = 0x00011d00 SP(R13) = 0x20004010
R6 = 0x00000001 LR(R14) = 0x00008c19
R7 = 0x00011cf4 PC(R15) = 0x00008c22
PSR = 0x21000000
ICSR = 0x0042380f
MMFSR = 0x00
BFSR = 0x00
UFSR = 0x0000
HFSR = 0x00000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
It seems that program could not point to ISR handler when systick interrupt occurred. The interrupt vector might not be defined.
Could you help me how to add the interrupt handler (SysTickIntHandler) into vector table in my application?
PS: I am using Tiva TM4C123GH6PGE
Thank you!
Tin Phan