I am trying to get the accel/mag data from FXOS8700CQ on MIMXRT1170-EVKB
According to the board HW guide:
2.16 Sensor
U34 on the EVK board is a 6-Axis Ecompass, 3-Axis Mag and 3-Axis Accel, sensor FXOS8700CQ. The Ecompass is connected to i.MX RT1170 I2C5 port.
After I added the FXOS8700CQ driver and I2C support I found the following (generated) API in board.h (and board.c):
/* @Brief Board accelerator sensor configuration */
#define BOARD_ACCEL_I2C_BASEADDR LPI2C5
/* Clock divider for LPI2C clock source */
#define BOARD_ACCEL_I2C_CLOCK_FREQ (CLOCK_GetRootClockFreq(kCLOCK_Root_Lpi2c5))
void BOARD_Accel_I2C_Init(void);
status_t BOARD_Accel_I2C_Send(uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint32_t txBuff);
status_t BOARD_Accel_I2C_Receive(
uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint8_t *rxBuff, uint8_t rxBuffSize);
My code with BOARD_Accel_I2C_Init() compiles and runs just fine, but I need to figure out the parameters for the send/receive functions, but I don't see any documentation or samples.
I saw something about ecompass sample here:
But my SDK version 2.15.100 for the MIMXRT1170-EVKB seems to be lacks this sample.
MCUXpresso SDK API Reference Manual Rev 2.15.100 also does not have anything about those functions either.
Did I miss something when generating the SDK?
Please help.
My config: MCUXpresso IDE v11.9.1
Win10 22H2
MIMXRT1170-EVKB SDK 2.15.100
Solved! Go to Solution.
Somehow I was looking at the wrong HW Guide. The correct quote from HW Guide for MIMXRT1170-EVKB board is
MIMXRT1170EVKBHUG
MIMXRT1170 EVKB Board Hardware User Guide
Rev. 4 — 11 June 2024 User guide
2.16 Sensor
U115 on the EVK board is a 3-axis MEMS accelerometer. Sensor FXLS8974CFR3.
However as you can see even here it mentions EVK board, not EVKB (NXP, please fix this!). Hopefully this information about sensor is correct and up to date for the EVKB.
Plus it looks like the EVKB SDK lacks the sample for the FXLS8974CFR3 sensor.
It is Accel only, so can't be used as an ecompass.
Can somebody help me to find U115 locationandFXLS8974CFR3 on the MIMXRT1170-EVKB board to ensure the accelerometer chip is actually there?
I downloaded MIMXRT1170-EVKB Design Files, but it not help. The chip is very small and difficult to spot on the board. Can anybody familiar with MIMXRT1170-EVKB schematics tell me where to look? What is it next to?
Hi @VassiliN ,
We need to first clarify which version of EVKB you have at hand, in the C1 version, the FXLS8974CFR3 is not connected, it is DNP.
Best regards,
Gavin
That's the board we have, not sure is it Rev. A or Rev. C1?
Hi @VassiliN ,
Thanks for your information.
SCH-xxx-C1 refers to the schematic model number, so the EVK's schematic is version C1, which does not have this sensor. The other number refers to the version of the MCU chip.
Best regards,
Gavin
Thank you Gavin.
It looks like this was the missing piece of the puzzle.
Hi @VassiliN ,
Thanks for your interest in NXP MIMXRT series!
I found this ecompass demo can be found in the SDK of RT1170-EVK. But it's not in the SDK for EVKB. I'm not sure for what reason or if there is an omission, but thanks for bringing this up. I will check internally.
Please refer to the project implementation in EVK's SDK first.
Best regards,
Gavin