Skip to main content
Visitor II
September 30, 2015
Question

HTS221 over SPI, unable to write registers after soft reboot

  • September 30, 2015
  • 1 reply
  • 625 views
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
    This topic has been closed for replies.

    1 reply

    ST Employee
    October 2, 2015
    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