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.

AM6422: R5F ENET printf

Part Number: AM6422

Tool/software:

Hello,

    

    We are developing using SDK 8.6, implementing Ethernet-based Telnet functionality on R5F under FreeRTOS. Currently, there's an issue: during implementation, when the Ethernet connection is successfully established, the system uses the printf function to send data over Ethernet. How can this printf be mapped to the Ethernet interface? Additionally, when the Ethernet connection is disconnected, printf should revert to printing via the serial port.

Is such functionality achievable?Is it feasible to directly use printf as previously implemented on other platforms in the current environment?

  • Hi wanglili 王,

    Thanks for your query.

    the system uses the printf function to send data over Ethernet.

    I doubt printf is used for debug logs on console. correct ? 

    Can you pint me to SDK example you are referring here ?

    We are developing using SDK 8.6

    Any specific reason to use old SDK.? 

    Would suggest you to move to latest SDK for better support.

    www.ti.com/.../11.00.00.15

    Regards

    Ashwani

  • Hello,

        Currently, we have no plans to switch the SDK version since all the newly added features have been debugged on this current version, and it would take some time to adapt after switching. We will consider updating it in the future.

    If we stick with the current 8.6 version, how can we implement the functionality I proposed?

  • Hello Wanglili,

    Can you also point to the example that you are referring to where the printf function is being used to send data over Ethernet? Traditionally, the SDK had implementation to send data via serial to console. Let me check with our experts if this can be possible on system level. This would likely need additional handling in the printf module. 

    Is it feasible to directly use printf as previously implemented on other platforms in the current environment?

    Can you please give a reference to previously implemented platforms?

    Thanks and regards,
    Teja.

  • Hello,

        We were using VxWorks before. When implementing Telnet previously, we directly called the printf function, and through packet capturing, we found that its output was being sent over Ethernet. Is there a way to redirect or re-mirror the output of printf to be transmitted over Ethernet?

  • Hi Wanglili,

    We haven't supported this type of feature earlier in the SDK directly to change the assignment of printf function during runtime. Let me check with our experts internally, and get back to you in a week.

    If there is anything else that you need help with, please let me know.

    Thanks and regards,
    Teja.

  • Hi Wanglili,

    I have checked with our experts, and I regret to inform that this functionality is not available directly in SDK. How would this impact your project? We can work together to find some feasible solution for you if you are open to sharing some details regarding your requirement and implementation.

    Thanks and regards,
    Teja.

  • Hello,

        Currently, we can replace the printf function with the function that sends data via Ethernet to achieve this functionality. Since the number of function calls is quite large, we hope to have a method that enables direct transmission over Ethernet without the need to change the function names. It is still usable at present. Thank you very much for your help.

  • Hi Wanglili,

    Unfortunately, we don't have Out of Box support for this functionality. But I am glad to know you have a solution for this. Can I mark this thread as closed if you don't have any more queries regarding this?

    Regards,
    Teja.

  • Yes,you can mark it.