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.

DM6437 SPI

Dear All

I am new to developing on DSP's. I have had a DM6437 EVM for a few months, but seem to have got nowhere. I have managed to run the demos and made a few 'blind' alterations - some worked and others didn't.

Looking at the documentation and sample code is just getting me more and more confused.

I have an application in mind that needs to use the SPI function of the McBSP. Looking at various documents, I have come to understand that the PSP driver does not have the functionality to use the McBSP-as-SPI. The documents continue to suggest that this could be added either via extending the PSP Driver included, or write low level instructions using the (R)CSL. I have started to look at the PSP driver, but at ~4000 lines of code (ddc_mcbsp.c) it is a long (confusing) read.

I am not sure which way is more efficient/effective/simple etc. I have also seen a post in this forum stating that there is a SPI driver in the PSP for the DM648. Would it be possible to modify this to target the DM6437 instead?

My main development background is developing using Microchip PIC18 micrcontrollers both in C and assembly. The reason for using this chip, is I would like to interface to VPSS. In this light, is there are getting started guide to developing with DSP/BIOS - reading the example soruce code is not exactly simple?

Thank you in advance

Chithambaram

  • Chithambaram Veerappan said:

    I am new to developing on DSP's. I have had a DM6437 EVM for a few months, but seem to have got nowhere. I have managed to run the demos and made a few 'blind' alterations - some worked and others didn't.

    Looking at the documentation and sample code is just getting me more and more confused.

    I have an application in mind that needs to use the SPI function of the McBSP. Looking at various documents, I have come to understand that the PSP driver does not have the functionality to use the McBSP-as-SPI. The documents continue to suggest that this could be added either via extending the PSP Driver included, or write low level instructions using the (R)CSL. I have started to look at the PSP driver, but at ~4000 lines of code (ddc_mcbsp.c) it is a long (confusing) read.

    I am not sure which way is more efficient/effective/simple etc. I have also seen a post in this forum stating that there is a SPI driver in the PSP for the DM648. Would it be possible to modify this to target the DM6437 instead?

    Taking the DM648 SPI driver and modifying it for the DM6437 might be possible, but with some significant work.  Specifically, the DM648 actually has a SPI peripheral on it to facilitate this driver, whereas the DM6437 does not.  The DM6437 does have the McBSP interface which can be configured to implement a SPI interface, but it is not the same thing.  The low level driver implementation as it relates to the actual hardware would need to be changed quite a bit.  It would be a combination of using the upper layers of the DM648 SPI driver to plug into the rest of the DSP/BIOS environment, but probably using stuff from the application note you mentioned to implement the appropriate functionality using the McBSP in SPI mode.

     

    Chithambaram Veerappan said:

    In this light, is there are getting started guide to developing with DSP/BIOS - reading the example soruce code is not exactly simple?

    The DSP/BIOS Product Folder will give you a link to download DSP/BIOS.  Within the installation, there is a document directory that provides user's guides for DSP/BIOS (SPRU423) itself in terms of the API calls, and then the processor specific items associated with DSP/BIOS.  This is located in the <BIOS_INSTALL_DIR>\packages\ti\bios\doc directory.

    In addition, there are Workshops available which incorporates many of the fundamentals of DSP/BIOS into a TMS320C64x+ integration workshop, which is applicable to the DSP core used in the DM6437.