Hi,
Till now where ever i saw about using System_printf and System_flush in hwi is not recommended.
i want to know why and what would be the alternative solution for this issue
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.
Hi,
Till now where ever i saw about using System_printf and System_flush in hwi is not recommended.
i want to know why and what would be the alternative solution for this issue
Hi Sunil,
Generally speaking, it is not recommended to use System_printf/flush within a Hwi because the processor is halted while the data is being transferred to the console.
If you are using SysMin as the system provider, System_printf() calls will be stored in a buffer until System_flush is called. The processor will be halted when System_flush() is called.
If you are using SysStd is used the processor is halted on every System_printf() call.
In order for you to make prints without actually halting the target, you can use Log prints and UIA to see the logs (link).
Regards,
-- Emmanuel