Other Parts Discussed in Thread: SYSBIOS,
Tool/software: TI-RTOS
Hi,
I've recently been trying to upgrade my project to 2.16.1. I've changed my configuration file to use TI-DRIVERS, but now sl_Start hard faults the device.
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: 5b6e8dd0
Exception occurred in background thread at PC = 0x20014168.
Core 0: Exception occurred in ThreadType_Task.
Task name: {unknown-instance-name}, handle: 0x2001b8e8.
Task stack base: 0x2001b938.
Task stack size: 0x2000.
R0 = 0x5b6e8dd0 R8 = 0x00000000
R1 = 0x2001d2f0 R9 = 0xffffffff
R2 = 0x3b6d04e0 R10 = 0xffffffff
R3 = 0x200188f0 R11 = 0xffffffff
R4 = 0x00008d1d R12 = 0x20024960
R5 = 0x2001da50 SP(R13) = 0x2001d2e8
R6 = 0x00000000 LR(R14) = 0x20013829
R7 = 0x00000000 PC(R15) = 0x20014168
PSR = 0x01000000
ICSR = 0x0400f803
MMFSR = 0x00
BFSR = 0x82
UFSR = 0x0000
HFSR = 0x40000000
DFSR = 0x0000000b
MMAR = 0x5b6e8dd0
BFAR = 0x5b6e8dd0
AFSR = 0x00000000
The error appears to come from SPI_open(), which is called by sl_Start. This doesn't happen when I remove the ti.drivers module and instead link against oslib.
Any ideas? I've tested this on two different boards, so it's not a hardware issue.