Other Parts Discussed in Thread: SYSBIOS
I have an exception being thrown when I begin debugging. Do I need to allocate more heap ? Not sure what this means.
Here is my configuration:
/* ================ General configuration ================ */
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule('xdc.runtime.Log');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var Global = xdc.useModule('ti.ndk.config.Global');
var Tcp = xdc.useModule('ti.ndk.config.Tcp');
var Udp = xdc.useModule('ti.ndk.config.Udp');
var Ip = xdc.useModule('ti.ndk.config.Ip');
BIOS.heapSize = 22480;
Task.idleTaskStackSize = 768;
/*
* Program.stack is ignored with IAR. Use the project options in
* IAR Embedded Workbench to alter the system stack size.
*/
if (!Program.build.target.$name.match(/iar/)) {
/*
* Reducing the system stack size (used by ISRs and Swis) to reduce
* RAM usage.
*/
Program.stack = 0x300;
}
/* ================ System configuration ================ */
var SysMin = xdc.useModule('xdc.runtime.SysMin');
System.SupportProxy = SysMin;
/* Enable Semihosting for GNU targets to print to CCS console */
if (Program.build.target.$name.match(/gnu/)) {
var SemiHost = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');
}
/* ================ Logging configuration ================ */
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
/* ================ Kernel configuration ================ */
/* Use Custom library */
var BIOS = xdc.useModule('ti.sysbios.BIOS');
BIOS.libType = BIOS.LibType_Custom;
BIOS.logsEnabled = true;
BIOS.assertsEnabled = true;
/* ================ Driver configuration ================ */
var TIRTOS = xdc.useModule('ti.tirtos.TIRTOS');
TIRTOS.useGPIO = true;
Global.IPv6 = false;
Global.networkOpenHook = "&taskCreate";
Global.ndkThreadStackSize = 2048;
Global.lowTaskStackSize = 1024;
Global.normTaskStackSize = 1024;
Global.highTaskStackSize = 1024;
Global.autoOpenCloseFD = true;
Global.pktNumFrameBufs = 10;
Global.memRawPageCount = 6;
Global.stackLibType = Global.MIN;
Task.defaultStackSize = 1024;
And here is the error:
ti.sysbios.family.arm.m3.Hwi: line 1269: E_noIsr: id = 33, pc = 00000568
Exception occurred in background thread at PC = 0x00000568.
Core 0: Exception occurred in ThreadType_Main.
Main name: main(), handle: 0x0.
Main stack base: 0x200124d8.
Main stack size: 0x300.
R0 = 0x00000003 R8 = 0x00000000
R1 = 0x00000001 R9 = 0x00000000
R2 = 0x4003500c R10 = 0x00000000
R3 = 0x00002100 R11 = 0x00000000
R4 = 0x00000001 R12 = 0x00018ad4
R5 = 0x000189a4 SP(R13) = 0x20012790
R6 = 0x00000001 LR(R14) = 0x00001673
R7 = 0x20012790 PC(R15) = 0x00000568
PSR = 0x01000000
ICSR = 0x00000821
MMFSR = 0x00
BFSR = 0x00
UFSR = 0x0000
HFSR = 0x00000000
DFSR = 0x0000000b
MMAR = 0xe000ed34
BFAR = 0xe000ed38
AFSR = 0x00000000
Terminating execution...
Also, does this picture indicate that my total stack being used is 96 bytes?
