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.

SPI driver support

Other Parts Discussed in Thread: HALCOGEN

hi,

we are using the HAL Code genrator to generate HAL code for the TMS570 series processor. We are using the SPI module of processor in the compatibility mode. But the code genrated from tool is always consists of Multibuffer mode code. Is there any way to change the options in the tool to generate the SPI code required for the compatibility mode i.e simple 3 pin mode configuration ?. Or please provide me the C code driver files for the SPI comaptibility mode.

  • Thanks for your post.

    Are you using the latest HalCoGen software version (2.10)?  It can be downloaded here: www.ti.com/tool/halcogen.  One of our experts will get in touch with you shortly. 

  • Bindu,

    Let me know if you are using TMS570LS20x or 31x ?

    Say if you are using 31x , we have MibSPI1,SPI2,MibSPI3,SPI4,MibSPI5. At the moment the drivers of 1,2 and 4 can be configured "only as mibspi".

    And if you want 1,2 or 4 as SPI , a quick move that you could try is generate drivers for SPI2 and replace the term 'spiREG2' with 'mibspiREG1' in the c file

    (before this remove the mibspiREG1 part of the code).

    Going forward ,we plan to support SPI compatibility mode for MisbSPI as well . I can keep you posted on that.

    Let me know if you see any issues with this approach.

    Regards,

    Pratip

  • Bindu,

    Were you able utilize the drivers and get your SPI working ?

    Let me know if you are still facing any issues.

    You can raise your questions on a new thread with the topic HALCOGEN :<module name> driver

    Pratip Kumar B

    TI Auto MCU Software