Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

host system call #13

Closed
Daparrag opened this issue May 1, 2017 · 5 comments
Closed

host system call #13

Daparrag opened this issue May 1, 2017 · 5 comments

Comments

@Daparrag
Copy link

Daparrag commented May 1, 2017

Dear all,

I'm working with the STM32F401RE board in the semihosting mode, However was impossible to execute system call's related with the command processor (shell(LINUX) or the command line(WINDOWS)) such as "dir, ls -l", I suppose that it is because Openocd doesn't support such kind of SYSTEM_CALLS.

If my affirmation is correct, I'm Interesting in implementing such functionalities, could you bring me some support or ideas of how I can complete that task, please.

I will appreciate your help so much.

bye

@ilg-ul
Copy link
Contributor

ilg-ul commented May 1, 2017

I did not check the OpenOCD sources, but I also remember some problems with the newlib implementation of the system() call.

I suggest you check both the OpenOCD and newlib sources.

@Daparrag
Copy link
Author

Daparrag commented May 1, 2017

could you please specified which are exactly the files in OpenOCD where is included the implementation for the system calls.

thanks you

@ilg-ul
Copy link
Contributor

ilg-ul commented May 1, 2017

which are exactly the files...

sure. aaaa... nope. top secret! ;-)

@Daparrag
Copy link
Author

Daparrag commented May 1, 2017

thanks for your answers. I will start to work on that.

@Daparrag Daparrag closed this as completed May 1, 2017
@ilg-ul
Copy link
Contributor

ilg-ul commented May 1, 2017

good luck. be sure you fix newlib first.

ilg-ul pushed a commit that referenced this issue Jun 5, 2017
riscv: Globally disable interrupts when running algorithms.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants