*Hello* Paul Fertser

whit respect to my first question.
Yes, you are correct, I'm using newlib librdimon to do semihosting, but I
guess that something is wrong since when I test the system() function the
return value indicates that there is not any command processor
(shell(LINUX) or the command line(WINDOWS))  available therefore I've
concluded that there is some issue on that implementation.

The return value of *system*() is one of the following:

       *  If *command* is NULL, then a nonzero value if a shell is available,
          or 0 if no shell is available.

do you have some info about my other questions.

2) if I need to start from scratch I want to know If someone had
implemented something on this topic.
3) otherwise which could be the starting point in order to include
such functionality as fast as possible.
4) I'll appreciate any other recommendation.


On Mon, May 1, 2017 at 10:19 PM, Paul Fertser <[email protected]> wrote:

> Hello,
>
> On Mon, May 01, 2017 at 08:55:38PM +0200, Diego Alejandro Parra Guzman
> wrote:
> > 1) Really openocd doesn't support system calls on a semihosting mode.?
>
> It should support the calls described in ARM specs[1].
>
> system() should be supported already. Are you using newlib's librdimon
> to do semihosting?
>
> I do not see how popen() can be expected to work given the specs[1]
> though. You should be able to pass some data back via the return code.
>
> [1] http://infocenter.arm.com/help/topic/com.arm.doc.
> dui0471g/CHDGGIID.html
> --
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:[email protected]
>



-- 
Diego Alejandro Parra Guzmán
Estudiante de ingeniería electrónica
Universidad distrital FJC
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to