I’ve successfully implemented the Renesas USB sample program into the FreeRTOS with a few tweaks to make it running on my embedded system. Now I’m able to select either the default startup procedure of the FreeRTOS or the Renesas sample code from a console. I’ve not yet defined any priorities to the sample programm, because this will be done in a later stage.
I’ve seen that the Default FreeRTOS allows files to be generated, copied and deleted.
It actually generates some files at startup, which is great!
So at this moment 2 questions arise in order for me to continue working on my embedded system:
-How do I copy any random file from the RAM to the USB flash drive?
-Probably related: On which address will the files be generated in the internal RAM of the RZ/A1?
I’d like the user to be able to copy either one of these automatically generated files to an USB flash drive via console input.
The procedure for opening communication to the flash drive is as follows:
-input command “USBH” from console which tells the CPU to turn into Host mode
-selecting USB channel 1 which is connected to the usb Flashdrive
-input command “mopen” from console to open a communication bus to the drive
After the communication bus has been opened, I can successfully read the Flashdrive’s properties and parameters.
Can anyone point me in the right direction to solve this file copy difficulty?