I'm new to RTX. Has anyone seen an example of how to run USB device to SD memory card (I'm using MCB2300) under RTX? I see various pieces but nothing whole. There's an RTX demo with USB, but it uses a dummy memory disk. There are good examples of USB to SDCard, but not under RTX. I'm planning on starting with RL/USB/DEVICE/RTX/MEMORY and then going through the documentation for adding MCI drivers and RL-FlashFS. Any hints or help out there?
Just an update, I attached all of the files, libraries, and config files as per the instructions, but in the instructions it then says to call "init_card" which I think is out of date. Looking at the RL/USB/DEVICE/MEMORY/SD_FILE/MEMORY example, the initialization of the interface starts with:
mc0 = ioc_getcb (NULL); if (ioc_init (mc0) == 0) {
The first line seems to execute OK, but if the second line is included, doesn't even have to run, the code crashes, goes straight to retartget.c _sys_exit
Doesn't this example fit to your purpose?
C:\Keil\ARM\Boards\Keil\MCB2300\RL\USB_FlashFS\SD_File\
Tsuneo
Look at the example: \Keil\ARM\Boards\Keil\MCB2300\RL\USB\Device\RTX\Memory_FlashFS\SD_File
It should be exactly what you are looking for.
Note: MDK-ARM 4.23 is required
Thanks guys, I had MDK 4.22 and that last example wasn't in there. It is exactly what I was looking for. You saved me a bunch of time and frustration, now I can compare that example against what I did to figure out what I did wrong. I appreciate it.