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.

Compiler/MSP432P401R: How do I write data into SPI registers?

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

Hello guys, i have some problem with spi protocol, i had completed set up spi on MSp432 but when i was working that i have not known how i could write data into the their register ? So i hope that you will know how to handle my problem.

Thanks all

  • Hello user6318750,

    I will assume you are not using an RTOS.

    There are example projects in the simpleLink_msp432p4_sdk_3_40_01_02 (this is latest version)  that show to setup and write to the SPI.

    If you look in C:\ti\simplelink_msp432p4_sdk_3_40_01_02\examples\nortos\MSP_EXP432P401R\driverlib

  • Which register are you talking about, on the MSP432 or your external device?

  • Hello user6318750,

    Were you able to get your SPI working?

  • Hello user6318750,

    I haven’t heard from you for a couple of days now, so I’m assuming you were able to resolve your issue.
    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

  • The register that i wanna talk which is RX and TX on MSP432.

    When i use wire to connect SPI between 2  MSP432 that works okay. (wired connection)

    But when i used lora with antenna to connected between 2 MSP432 that it did not worked  (wireless conection)

  • he register that i wanna talk which is RX and TX on MSP432.

    When i use wire to connect SPI between 2  MSP432 that works okay. (wired connection)

    But when i used lora with antenna to connected between 2 MSP432 that it did not worked  (wireless conection)

  • I think you need to put a scope on both ends to see just what is happening to your communication, and where you are dropping bits.

  • Yeah my Spi was working, when i connected between two kit MSP432 by wire which was working very well. But when i try to connect wireless connection by lora antenna which was not working. I don't know what happened with my protocol.

  • If you're trying to write registers in your LoRa chip, you need to look at the data sheet for the chip you're using. They're usually pretty good about describing the sequence required.

    It usually looks something like (Register number+R/W bit) followed by data (one direction or the other). Beyond that, the chips are all different.

    Setting up e.g. a Semtech LoRa device is fairly complex. Google pointed me at a few libraries on Github.

  • Hello user6318750,

    I haven’t heard from you for a couple of days now, so I’m assuming you were able to resolve your issue.
    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.