Hi,
I am trying to get the prints through semihosting . Currently i followed the below steps
1. Created simple hello world application
2.Using DS5.23 eclipse with VF_Cortex_A9x4
3.Once connected to target, semihosting is auto enabled
Print messages are getting displayed on "Target Console" ,Since semihosting is enabled i want to know how to redirect to new console, is there any procedure to follow for semihosting. Kindly provide the details
Hi anandu and welcome to the Community!
I have moved your question to Software Development Tools where I think someone should be able to help.
Is your question generic, or specific for Cortex A9 and DS5?
Generally speaking, semihosting requires good support from the debugger and means more then printing trace messages, it provides the application a method to access part of the environment available on the host. A typical application is to run unit tests, that return an exit code and create an XML file with the test results.
I have no experience with DS5, but another environment with very good support for semihosting is SEGGER J-Link + GDB Server + GNU ARM Eclipse.
Where do you want the semihosted output to go?
If you launch the model separately, and then connect DS-5, the semihosted output goes to stdout. Would that help?
Alternatively, the A9 FVP includes a UART model. You could retarget fputc() to output to the UART. The UART model opens a telnet port to handle input/output, which you could connect to.