Hi,
I started off using the SYS/BIOS "Typical" template with the GNU compiler. I imported the can_rx_tx demo app and started including all the required libs just to get the dependencies right.
Compilation works just fine and I was able to upload the code to my BBB.
Running my code, I encounter a crash as soon as it is calling the CONSOLEUtilsInit:
Void taskFxn(UArg a0, UArg a1) { System_printf("enter taskFxn()\n"); System_flush(); CONSOLEUtilsInit(); CONSOLEUtilsSetType(CONSOLE_UTILS_TYPE_UART); System_printf("done!"); System_flush(); System_printf("exit taskFxn()\n"); System_flush(); /* force SysMin output to console */ }
The corresponding console output looks like this:
[CortxA8] enter main() enter taskFxn() 0x00000000 R8 = 0xffffffff R1 = 0x00000000 R9 = 0xffffffff R2 = 0x00000000 R10 = 0xffffffff R3 = 0x80014e64 R11 = 0x800230fc R4 = 0x00000018 R12 = 0x8001ef4c R5 = 0x00000000 SP(R13) = 0x80014fc0 R6 = 0xffffffff LR(R14) = 0x8002586c R7 = 0xffffffff PC(R15) = 0x80014fc0 PSR = 0x800230fc DFSR = 0x00000005 IFSR = 0x00000000 DFAR = 0x00000000 IFAR = 0x00000000 ti.sysbios.family.arm.exc.Exception: line 205: E_dataAbort: pc = 0x80014fc0, lr = 0x8002586c. xdc.runtime.Error.raise: terminating execution
I am kinda lost with this error. Can anyone please help.