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.

DRA718: Set IPU1 Timeout Watchdog Module Value

Part Number: DRA718


Hi TI community,

I am working with the Processor SDK RTOS Automotive (version 4.0.0), the IPC (version 3.46.0) and the XDC Tools (version 3.32.01) for the DRA718 (Jacinto 6).

I am using the ti.deh.Watchdog for the IPU1 and it is working properly. This is the code of the IPU1 .cfg file:

var WD = xdc.useModule('ti.deh.Watchdog');
WD.timerIds.length = 2;
WD.timerSettings.length = 2;
WD.timerIds[0] = "GPTimer7";
WD.timerSettings[0].intNum = 60;
WD.timerSettings[0].eventId = -1;
WD.timerIds[1] = "GPTimer8";
WD.timerSettings[1].intNum = 61;
WD.timerSettings[1].eventId = -1;

Below the currently assigned timer attributes in dts for IPU1

&ipu1{
   status = "okay";
   memory-region = <&ipu1_cma_pool>;
   mboxes = <&mailbox5 &mbox_ipu1_ipc3x>;
   timers = <&timer11>;
   watchdog-timers = <&timer7>, <&timer8>;
   ti,no-idle;
   ti,late-attach;
   ti,no-idle-on-init;
   ti,no-reset-on-init;
};

My intention is to set the watchdog timeout externally as configuration parameters in the .cfg file. The definition of this variable is in ipc_3_46_00_02/packages/ti/deh/Watchdog.h and is called ti_deh_Watchdog_TIME_SEC. My idea is to avoid modifying the TI code and recompiling the entire SDK.

When I try to configure it by adding the line of code: WD.TIME_SEC = 7 in the .cfg code, I get this compiler error:
    XDC runtime error: ti.deh.Watchdog: 'TIME_SEC' is sealed

I thought about changing the value of a timer register at runtime, but there may be a better solution.

Thank you for reading!