Hi
I have an RT1170 EVK board.
I looked for accelerometer demo source in MCUXpresso IDE, but it doesn't seem to be there.
Where can I get the demo sources?
Best Regards
Hi @dskim2 ,
Thanks for contacting NXP tech support!
Could you describe in more detail the demo you are looking for? For graphics acceleration or something else?
Best regards,
Gavin
Hi @dskim2 ,
The examples in the current SDK do not include a demo that uses this accelerometer, but provide component implementations: SDK_2_15_000_MIMXRT1170-EVK\components\fxls8974cf
Other than that, here's a project that implements a driver for it that should help you, I've packaged it up as an MCUXpressoIDE project for you to check out in the attach files, the original link is here: https://github.com/nxp-appcodehub/ap-ml-state-monitor/tree/main
Hope it helps!
Best regards,
Gavin
I downloaded this sample project to be used with MIMXRT1170-EVKB which has the same sensor according to the HW Guide:
MIMXRT1170EVKBHUG
MIMXRT1170 EVKB Board Hardware User Guide
Rev. 4 — 11 June 2024
2.16 Sensor
U115 on the EVK board is a 3-axis MEMS accelerometer. Sensor FXLS8974CFR3.
When I run the project I am getting this in Terminal:
Starting Application:
CPU: 996000000 Hz
Application version: 1.0.0
MPP version: MPP_VERSION_1.0.0
Inference Engine: TensorFlow-Lite Micro
FXLS8974 Sensor Initialization Failed
Failed to add accelerometer Fxls8974
Error building application pipeline : ret 3
Starting Application:
CPU: 996000000 Hz
Application version: 1.0.0
MPP version: MPP_VERSION_1.0.0
Inference Engine: TensorFlow-Lite Micro
FXLS8974 Sensor Initialization Failed
Failed to add accelerometer Fxls8974
Error building application pipeline : ret 3
Does EVKB board requires some different settings for the Fxls8974?
Thanks for your reply
When I ran the source in MCUXpresso for debugging, the following error occurred.
How can I solve this?
Best Regards
Hi @dskim2 ,
This demo is working and was able to build successfully on my end. But debug requires additional hardware. So you can adopt it as a reference implementation for an accelerometer driver. It should fit your needs.
Best regards,
Gavin