This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x Sys/Bios with DCAN example

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.

  • Maximilian,

    Could you please try using Board_initUART() instead? There is a non-bare metal example for UART at C:\ti\pdk_am335x_1_0_4\packages\MyExampleProjects\UART_BasicExample_bbbAM335x_armExampleProject

    Note that this project would need to be generated using the pdkProjectCreate.bat file processors.wiki.ti.com/.../Rebuilding_The_PDK

    CONSOLEUtilsInit could be crashing due to some pinmuxing issue. Did you verify that these are correct for your init?

    If I recall, CONSOLEUtilsInit has:
    Board_initUART();
    UART_stdioInit(0);

    Lali
  • Hi Lali,

    where and how can I check the Pinmuxing?
    I didn't modify it for running the example on the BeagleBone Black. This might just be the problem.

    Could it be problematic if I compiled some of the dependent projects for the can_rx_tx example with the TIv16 compiler and the main application with the GNUv4 one or is it possible to mix these after compilation?

    Thank you

    Max