I have lots of System_printf() in my design. How to disable the display globally? Thanks.
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.
I have lots of System_printf() in my design. How to disable the display globally? Thanks.
Hello,
I have a couple questions.
1. What version of XDC and SYS/BIOS are you using?
2. What is your system provider (SysMin or SysStd)?. This is controlled by the System.SupportProxy setting. If you are not explicitly setting it, the default is SysMin.
Todd
Hello,
1. XDC ver. 3_23_01_43, SYS/BIOS ver. 6_33_02_31.
2. System provider is xdc.runtime.SysMin.
Thanks,
Wen-Chung Tsai
Hi Wen-Chung,
You can set SysMin's bufSize to zero.
var SysMin = xdc.useModule('xdc.runtime.SysMin');
SysMin.bufSize = 0;
No characters will be written to the internal buffer then. Note: you'll still have some overhead for the System_printf call. If this is too much impact, you can look at using the Log module instead (e.g. Log_print instead of System_printf). You have finer granularity with the control over this module.
Todd