This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320VC5515 DSP with SpO2 medical development kit -- SD card access through USB

I need to record the SpO2 mdk data onto an SD card. It has already been confirmed that the built-in SD card reader does not work when the mdk board is attached to the 5515 EVM, so I am hoping that the USB port on the 5515 EVM can be used with an SD card reader as an alternative.

First, I would like to confirm that the usb port works like I think it would. Here is a picture of my current setup: http://img134.imageshack.us/img134/2884/photo0015zl.jpg. Will this USB port work as attached with the SpO2 board attached? Will it work without the SpO2 board?

So far I have tried examples/tests from the CSL with no success. Specifically I tried the example
“CSL_USB_DmaExample” but I never received any interrupts. I tried plugging the SD card reader into the board (in the above setup), and I also tried plugging the 5515 EVM into my computer through the same port, no interrupts generated either way. I did this with the SpO2 board taken off of the 5515 EVM. Is there a way to make the USB port do what I want, or even better, a predefined way to use the USB port to write to the SD card?


I have also tried examples in the CSL, but even if I can use this library to write to the SD card there are still problems. The SpO2 code appears to have been written using a subset of this library, and this subset has been altered, causing the CSL library and the SpO2 projects to be incompatible. It would help to know more detail about this relationship between the libraries, and if they truly aren’t supposed to be compatible.

Thanks for any help you can provide.

  • I would like to bring this post to your attention again, this is an important project that I would like to make progress on. I haven't been able to find any more information about the compatibility between the SpO2 code and the CSL, nor have I been able to find any SD card/USB code in the SpO2 code.

    Thanks for any information. Even if you can't answer many of my questions, anything would help.

  • Hello,

    The configuration you need to use (based on the picture) requires the C5515 to be USB host. SD card reader is a USB slave device, so it won't work.  The C5515 does support USB slave, not USB host.

    You may want to try these options.

    1) Save data to on-board flash (NOR or NAND) first and then transfer to SD card later (after removing FE board).

    2) Use UART port to transfer data from internal RAM to PC

     

    Best Regards,

    Peter Chung

     

  • With my limited knowledge of the USB standard, I thought it was possible to make the port act as a master just by changing the driver code. Is this possible with the 5515? Is there some sort of code that determines the way the USB port acts? Or is the code built in to the card, or just unaccessible?

  • Both hardware and software needs to support USB Host.  The C5500 USB peripherals are all USB Clients and cannot be changed due to HW implementation of the peripheral.

    Regards.