Hi,
I am trying to test an image dectction program on a RV32 simulation. When I run this program on a PC, I can put the image on the PC and use fopen to open the image:
FILE* fpBMP;
if ((fpBMP = fopen("1.bmp", "rb")) == NULL) {
printf("file open failed");
exit(0);
}
when I run this program on the simulation, where can I put the image? On the Host PC or on the RV32 simulation?
If on the host PC, how can I open and read the image from the RV32 simulation?
if on the RV32 simulation, how can I load the image to the simulation?
I have checked
this conversation. But I am not sure what the magic_mem means and what will the open function return and what the handle means in the other three functions?
And does RV32 compiler support malloc and free functions?
Thanks in advance.