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: If initialization is not successful during the micro initialization, the angle data comes in the next cycle

Part Number: TMAG5170

Tool/software:

Hi, 

I had a similar question before. 

Refer to the below thread please:

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1340139/tmag5170-information-needed-on-when-to-expect-the-data-after-transmitting-the-data-on-spi/5113724?tisearch=e2e-sitesearch&keymatch=%20user%3A592224#5113724

We are initializing the Tmag5170 registers : test config, sensor config, device config and system config registers during initialization of the system.

Later on we are reading the angle data register , system status register every "x"ms.

The issue we are facing is, sometimes when we flash the micro using debugger, the result from system status comes in angle data result buffer and vice versa.

We are transmitting the request for both registers in 1 cycle as 2 jobs.

The hall sensor behaves differently during the first communication after initialization vs a successful initialization followed by a reset . The received data register gets inverted.

Below is the log from debugger : First time initialization followed by reading of angle data 

Reading the angle data after an MCU reset (initialization is done during this time too in init phase)

Notes: We read the status bits obtained during initialization and noticed no errors were available in the status11-0 bits.

Could you please suggest if we are doing anything wrong? 

Thanks in advance.