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.

MSP432P401R and ADXL345 SPI Connection

Hi,

I am beginner for microcontrollers. I am triying connect and ADXL345 sensor to MSP432 using with example codes in TI Resource Explorer. Using SPI connection for read data.  But i can't read any data in Code Composer Studio. Can you help, how i connect them and read accelaration data?

Thanks.

  • Hello Fury61,

    You will not be able to read the SPI data directly from CCS, but you do have some options here.

    * Write SPI Data into a predefined buffer. Set a breakpoint in the debugger after you write a SPI Transaction into the buffer. Add the buffer to "Watch Expressions" . You can do this by right clicking the name of the buffer. View contents of buffer within the Watch Expression tab.

    *Pass through SPI Data to the back channel UART (to PC) on the launchpad to view in a terminal program, or the terminal within CCS.

    * Use a 3rd party logic analyzer or oscilloscope with similar capabilities to probe SPI lines and decode data. this is usually the easiest and less invasive of options.

    Regards,
    JH

**Attention** This is a public forum