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,
I'm using Arm DS-5 Eclipse with the Arm Compiler 6 Toolchain. In NIOS II, it is allowed to open files using fopen function to access the device list and it works because the NIOS II Eclispe uses the Newlib C library. However, in Arm DS-5, the Newlib C library is not built in yet, so my question is how to get the fopen function called to the device list. Do I have to add the Newlib C library to the workspace or I have to write my own alternative functions ??
The Arm C library uses semihosting for the implementation of such functions.https://developer.arm.com/documentation/dui0471/m/what-is-semihosting-/what-is-semihosting-?lang=en
I found the below reference, which explains that you need to implement these yourself for newlibhttps://wiki.segger.com/Semihosting#Semihosting_with_GCC_and_newlib