We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi sir, I am using stm32f103 for real time application .I want to store the output values in a file in PC that i am having in array .how to approach for this??
I thought we went over that before. The primary purpose is to bind STDIO file streams to specific resources on board your using. The serial example binds to the USART hardware of the STM32. If your board permitted the connection of a keyboard, you could perhaps interface to that. Thus you now get the scanf(), printf() functionality you expect, and Keil C runtime libraries don't need to know anything about of oddities of your hardware, and are thus generic.
It might permit other FILE based IO, but at that level you're basically adding another level of abstraction to the file system and mass storage drivers you are going to have to supply.
There might be other semihosting features, but I can't sell systems that are tied to a debugger, and so haven't focused on them. The primary goal with this kind of embedded development is to build free standing systems, which have just enough OS and other resources to get the job done.