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.

TMAG5170-CODE-EXAMPLE: TMAG5170 WITH MSP430

Part Number: TMAG5170-CODE-EXAMPLE
Other Parts Discussed in Thread: TMAG5170, MSP430FR2355

Hi guys,

I've been trying connect to TMAG5170 with MSP430FR2355 Through eUSCI_A0 PORT. Still unable get any reply from from the sensor. Can somebody help me with the code to properly configure the port and initialize.

  • Hello Shamnad,

    Thanks for posting to the sensors forum!

    Have you connected a scope or a logic analyzer to the MSP430FR2355 outputs to confirm f you are seeing any data coming out of the microcontroller?

    Best,

    Isaac

  • Hi Isaac,

    Thanks for the reply

    Yes i have.

    Here is the screenshot while i am trying to read 0x0f  register of TMAG5170  to check CRC status..Looks like "ERR_STS" bit of of reply data is HIGH.

    What could be the reason.?

    . reading 0x0f register

  • Hello Shamnad,

    Thanks for the information. Have you tried reading any of the status registers to check to see what the error could be attributed to?

    This is the only way to tell what the error could be the ERROR_STAT just reports that one of the error bit states is high. Try reading the AFE_STATUS (0x0D) or the SYS_STATUS (0x0E) registers to see if there are any issues reported within those registers.

    Best,

    Isaac

  • Hi Isaac ssorry being late to reply..

    I have tried all the registers ..but nothing worked.finally i found the issue is related to SPI clock.

  • Hello Shamnad,

    Thanks for the update I am glad you were able to find the source of the problem. Please let me know if there are any other questions.

    Best,

    Isaac