Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I am using TI-RTOS for TM4C1294 microcontroller.
Software uses hardware interrupt for SPI and UART with SWI, USB communication and 4 timers(1sec,250ms,100ms, 1ms).
Added web server functionality to project using TI-RTOS NDK. Webserver works by itself but with my current application code it seem to have some issue.
If I block majority of application code from running (blocking idle loop) then web-server works just fine.
Tried increasing stack for stack to 0x10000 just to see if stack overflowing somehow but did not help. Please see the error below.
Look like to me I have some sort of race condition or priority conflict to assess resources. Please see the error below.
[CORTEX_M4_0] Starting the FatSD USB Copy example
Using MAC address in flash
Service Status: DHCPC : Enabled : : 000
Service Status: HTTP : Enabled : : 000
Service Status: DHCPC : Enabled : Running : 000
ti.sysbios.family.arm.m3.Hwi: line 1095: E_hardFault: FORCED
ti.sysbios.family.arm.m3.Hwi: line 1172: E_busFault: PRECISERR: Immediate Bus Fault, exact addr known, address: 20202024
Exception occurred in background thread at PC = 0x0004b552.
Core 0: Exception occurred in ThreadType_Swi.
Swi name: {unknown-instance-name}, handle: 0x20027be0.
Swi stack base: 0x20016f30.
Swi stack size: 0x10000.
R0 = 0x200128d4 R8 = 0x00000000
R1 = 0x00000000 R9 = 0x00000000
R2 = 0x20027f28 R10 = 0x00000000
R3 = 0x20202020 R11 = 0xffffffff
R4 = 0x200128d4 R12 = 0x000498b1
R5 = 0x000003e7 SP(R13) = 0x20026ea0
R6 = 0x00000003 LR(R14) = 0x00041827
R7 = 0x200128e6 PC(R15) = 0x0004b552
PSR = 0x41000000
ICSR = 0x00423803
MMFSR = 0x00
BFSR = 0x82
UFSR = 0x0000
HFSR = 0x40000000
DFSR = 0x00000001
MMAR = 0x20202024
BFAR = 0x20202024
AFSR = 0x00000000
Terminating execution...