FXOS8700CQ support on MIMXRT1170-EVKB board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700CQ support on MIMXRT1170-EVKB board

Jump to solution
926 Views
VassiliN
Contributor III

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: 

https://community.nxp.com/t5/i-MX-RT/ecompass-cm7-sample-project-cannot-see-FXOS8700-on-MIMXRT1170/m...

 

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

0 Kudos
Reply
1 Solution
869 Views
VassiliN
Contributor III

That's the board we have, not sure is it Rev. A or Rev. C1?

 

 

Board Revision.JPG

View solution in original post

0 Kudos
Reply
7 Replies
909 Views
VassiliN
Contributor III

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. 

 

 

 

 

 

0 Kudos
Reply
897 Views
VassiliN
Contributor III

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?  

0 Kudos
Reply
883 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

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. 

Gavin_Jia_0-1720062926407.png

Best regards,
Gavin

 
870 Views
VassiliN
Contributor III

That's the board we have, not sure is it Rev. A or Rev. C1?

 

 

Board Revision.JPG

0 Kudos
Reply
815 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

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

808 Views
VassiliN
Contributor III

Thank you Gavin. 

It looks like this was the missing piece of the puzzle. 

0 Kudos
Reply
911 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

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

 

Gavin_Jia_0-1719975809296.png

 

0 Kudos
Reply