cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature sensor TSYS01 on STM32U575I-EV

Alik
Associate

Hello, I'm trying to implement the temperature sensor TSYS01 on STM32U575I-EV.

The datasheet of the sensor tells to reset the sensor first so I'm trying to do this like this:

HAL_I2C_Master_Transmit(&hi2c2, 0x77 << 1, 0x1E, 1, HAL_MAX_DELAY);

0x77 << 1 - sensor address

0x1E - reset address.

After executing this command the board fails into HardFault_Handler.

I also tried to use the code from this repository, but also no success github: eddyem/tsys01

Here I found generic driver: github: TEConnectivity/TSYS01_Generic_C_Driver

Please, help.

Thank you.

1 REPLY 1

Doesn't it expect a pointer?​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..