This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fopen fails with absolute path in linux host (ubuntu 20.04)

I am using ARM FVP simulator and trying to read data from a binary file in the host PC to a program running in ARM,

const char *filename = "home/dinusha/executorch/examples/arm/executor_runner/cmake-out/input.bin";

FILE* fp = fopen(filename, "rb");
if (!fp) {
ET_LOG(
Fatal,
"Could not open file %s (errno: %d) for reading, exiting!",
filename,
errno);
_exit(1);
}

Error : Could not open file home//dinusha//executorch//examples//arm//executor_runner//cmake-out//input.bin (errno: 0) for reading, exiting!

Any idea how to solve this, 

Thanks

Parents
  • Hi again

    I'm moving this enquiry to the SoC Design and Simulation forum in case anyone there can help with your failing fopen() on FVP_Corstone_SSE-300_Ethos-U55 issue.

    In the meantime, have you linked with --specs=rdimon.specs, to select the gcc semihosting libraries, and checked the access permissions to input.bin?

    Stephen

Reply
  • Hi again

    I'm moving this enquiry to the SoC Design and Simulation forum in case anyone there can help with your failing fopen() on FVP_Corstone_SSE-300_Ethos-U55 issue.

    In the meantime, have you linked with --specs=rdimon.specs, to select the gcc semihosting libraries, and checked the access permissions to input.bin?

    Stephen

Children