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.

Unable to write to SPI register



Hi,

 

I cant write to the register DMA0CTRL ( unsigned DMACTRL[8U]; in .h file ) in any of the 3 SPI modules. I am in privilege mode when I try. I can write to some others registers in the module. I even try to write manually with the emulator through editing the memory space but nothing happens. I use CCS 4.

Regards

Jonas

  • Jonas,

    Please bring the SPI out of reset , enable SPI multibuffered mode first, then write DMAxCTRL registers:

     /** bring SPI out of reset */
    spiREG1->GCR0 = 1U;

    /** enable SPI1 multibuffered mode and enable buffer RAM */
    spiREG1->MIBSPIE = 1U;
    
    
    SPI2 and SPI4 don't have DMA ciontrol registers since they are SPI only.
    
    
    Regards,
    QJ