Hello,
I am running SYSBIOS 6.40.1.15 on BeagleBone (BBB) with AM3359 processor, ARM Compiler Tools 5.1.5, Blackhawk USB 560 emulator.
When trying to create a simple periodic timer with the SYS/BIOS tool, my SW always crashes at the initialisation functions before reaching main. I have spent a couple of hours debugging the behaviour and it initially looks like the crash occurs in or around ti_sysbios_timers_dmtimer_Timer_initdevice__I function, but I have not had the time to go and verify this initial understanding.
This happens with a clean, newly created SYSBIOS ("Typical") based CCS project with no other changes on top of the example application than adding a function (timerFunction0) and mapping it to a periodic timer in the SYS/BIOS config tool. (Additionally, I have increased stack and heap sizes).
Following code is generated in app.cfg:
var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
and
Timer.intFreq.lo = 30042; (This does not seem to and should not have any impact to an initialisation phase crash?)
Timer.checkFrequency = false;
var timer0Params = new Timer.Params();
timer0Params.instance.name = "timer0";
timer0Params.period = 10000;
Program.global.timer0 = Timer.create(-1, "&timerFunction0", timer0Params);
This is how the crash looks like:
[CortxA8] 0x6000019f R8 = 0x00000000
R1 = 0x00000000 R9 = 0x8003b238
R2 = 0x00000000 R10 = 0x8001ffa4
R3 = 0xffffffff R11 = 0x0000000d
R4 = 0x8003b670 R12 = 0x48042000
R5 = 0x6000019f SP(R13) = 0x8001ff2c
R6 = 0x00000001 LR(R14) = 0x8003a530
R7 = 0x00000000 PC(R15) = 0x80038020
PSR = 0x6000019f
DFSR = 0x00001808 IFSR = 0x00000000
DFAR = 0x48042038 IFAR = 0x00000000
ti.sysbios.family.arm.exc.Exception: line 180: E_dataAbort: pc = 0x80038020, lr = 0x8003a530.
xdc.runtime.Error.raise: terminating execution
Question: What goes wrong? What did I miss?