Hi
i tried to run the adt7420 sample demo with KW47-LOC board, but the print message is "sensor_addr_set failed ret -134.“ after i flashed the image into the target .
Since the chips are compatible , I used the frdm-mcxw72 examples and modify the overlay file to adapt it to the KW47-LOC board pins.
you can find the print message like below picture for reference
anliu114036_0-1787031664257.pnganliu114036_0-1787031664257.png
here is the overlay. and prj. file information :
can you help check how to get the right temperature very. i really have no idea to solve the issue. thanks in advance
Best regards!
sensor_addr_set failed ret -134 may caused by address setting incorrect about the adt7420 module
QUICK GUIDE TO MEASURING TEMPERATURE
The following is a quick guide for measuring temperature in
continuous conversion mode (default power-up mode). Execute
each step sequentially.
1. After powering up the ADT7420, verify the setup by
reading the device ID (Register Address 0x0B). It should
read 0xCB.
2. After consistent consecutive readings are obtained from
Step 1, proceed to read the configuration register (0x03),
TCRIT (0x08, 0x09), THIGH (0x04, 0x05), and TLOW (0x06,
0x07) registers. Compare to the specified defaults in Table 6.
If all the readings match, the interface is operational.
3. Write to the configuration register to set the ADT7420 to
the desired configuration.
4. Read the temperature value MSB register, followed by
the temperature value LSB register. Both registers should
produce a valid temperature measurement.
official EVK
anliu114036_0-1787042775204.jpeganliu114036_0-1787042775204.jpeg
do you use custom board or officail EVK?