Hello,
I want to write data to a USB Device. And I created a project but I didn't use FSP. I initialized Disk using globally defined structure variables.
When I wrote some characters to a .txt file which is created before, I couldn't see data when I inserted it to PC. But ff_fwrite function returns the exact value of written characters.
Could you help me to fix writing problem?
Kind Regards,
Note: The project is attached.RA6_USB_Host2.rar
Hello SultanC ,
Thanks for reaching out Renesas Engineering Community.
Let me check your project in more detail and get back to you.
Thanks and Regards,
IK
Hello Sultan,
I am testing now your project but it looks like the insertion of my usb media disk is not detected and the code is stack in a loop:
Please refer to this git example we provide for usb HMSC device:
https://github.com/renesas/ra-fsp-examples/tree/master/example_projects/ek_ra6m4/usb_hmsc_baremetal/usb_hmsc_baremetal_ek_ra6m4_ep
Is doing exactly the same thing as you try. It opens a txt file existing in the USB media disk , writes data to it and closes the file after successful completion of writing operation.
Yes. I checked, it returns false as a result of FF_Mount function.
As I compared my project with an example one, the only difference is that I didn't add DMAC for transmission.
Does it cause that failure?