- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I want to print out uart logs for debug in critical section; but I found that the uart output is abnormal, and the system hang.
portENTER_CRITICAL();
Ifx_print("test in cs\n");
portEXIT_CRITICAL();
Now in the aurix code example, the uart print relies on the interrupt.
Does the uart print in TC39x can work well in critical seciton or interrupt disabled?
Do you have any method for uart print which not relis on the interrupt?
Solved! Go to Solution.
- Labels:
-
AURIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I find APIs like Ifx_Console_print(), Ifx_Console_printAlign(), IfxStdIf_DPipe_print() as a part of the ILLD. You can check if any of these suit your need.
I do not see an API Ifx_print() as a part of ILLD. Could you let us know the driver and driver version in which the API Ifx_print() is defined?
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I find APIs like Ifx_Console_print(), Ifx_Console_printAlign(), IfxStdIf_DPipe_print() as a part of the ILLD. You can check if any of these suit your need.
I do not see an API Ifx_print() as a part of ILLD. Could you let us know the driver and driver version in which the API Ifx_print() is defined?
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nambi,
In Ifx_print, the following function is used for uart output.
IfxStdIf_DPipe_write(&g_drv_asc_lin_uart.asc_sandard_interface, (void *)message, &count, TIME_INFINITE);
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone help me for this question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Based on the available implementation using interrupts, you can adapt to an implementation based on polling.
Best Regards.