cancel
Showing results for 
Search instead for 
Did you mean: 

HTS221 over SPI, unable to write registers after soft reboot

doug2399
Associate
Posted on September 30, 2015 at 21:51

Hi, I'm using the HTS221 with an STM32F205. The communication channel is SPI. I'm finding that when I reboot my processor without cycling power, once the processor is back up and running it is unable to write to any of the HTS221's control registers so I am unable to put it in active mode. I am running the SPI bus at ~1MHz.

Any advice/ideas would be greatly appreciated!

Thanks,

Doug

#hts221
1 REPLY 1
Nickname3482_O
Associate II
Posted on October 02, 2015 at 15:01

Hello Doug,

from the information you provided, the only thing I can think of as a cause of the

behavior that you describe is the reboot falling right in the middle of an SPI tran

saction, leaving the transaction pending and the sensor interface state machine wai

ting for completion of the previously started transaction.

In general what I would recommend to take actions to reset the sensor every time

you reboot the micro. If you stilll have the same problem after sensor reset let me

know.

Regards,

Adalberto