cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mirr82
Newbie
Newbie
1,555 Views
Registered: ‎06-27-2017

Zynq-7000 Standalone BSP(Bare-metal) File system

Jump to solution

Hello.

I'd like to use file i/o library like fopen, fprintf and fscanf on SDK.

Without any O/S, how can I use file i/o library?

0 Kudos
Reply
1 Solution

Accepted Solutions
hbucher
Scholar
Scholar
2,483 Views
Registered: ‎03-22-2016

@mirr82 There is no concept of files and time in a baremetal application.  Even because - where are you going to read data from?

On Unix, fopen/fprintf/fscanf are all part of the GLIBC, which sits on top of the kernel. 

So short answer: you cannot. On baremetal you deal directly with the devices: network, UART, and memories. Which I prefer, actually.

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.

View solution in original post

1 Reply
hbucher
Scholar
Scholar
2,484 Views
Registered: ‎03-22-2016

@mirr82 There is no concept of files and time in a baremetal application.  Even because - where are you going to read data from?

On Unix, fopen/fprintf/fscanf are all part of the GLIBC, which sits on top of the kernel. 

So short answer: you cannot. On baremetal you deal directly with the devices: network, UART, and memories. Which I prefer, actually.

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.

View solution in original post