Tool/software: TI-RTOS
Hi,
I am using the SysCallback implementation with usage of System_printf within my implementation. Furthermore I am using a debug implementation with a fprintf functionality which leads my output to stderr which is mapped to the UART interface:
freopen("UART:0", "w", stderr);
setvbuf(stderr, NULL, _IOLBF, 128);
If I use the debug mechansim within a single thread it works as expected. However, the usage within another UART callback leads to an assertion:
$ ti.sysbios.gates.GateMutex: line 99: assertion failure: A_badContext: bad calling context. See GateMutex API doc for details. xdc.runtime.Error.raise: terminating execution
The documentation is talking about this:
Cause: Calling System_printf() or printf() from a Swi or Hwi when xdc.runtime.SysStd is your System.SupportProxy.
As far as I know are UART callbacks neither HWIs nor SWIs. Furthermore the usage of SysMin is no alternative. What am I doing wrong?

