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); }
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
Hi againI'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
Thanks, Stephan, I will check that, where should I use
`--specs=rdimon.specs` , in the
FVP_Corstone_SSE-300_Ethos-U55 command I showed you before ?
That's the command line switch for the GNU toolchain to enable Semihosting, see the link below.
developer.arm.com/.../