Hello,
I am wondering how can I use MEMS sensor (ST Microelectronics LSM303DTR)? Which is not installed, But We can install it in available space.
Is there any reference design or some documents about it that I can use? I am using TE0703-05 Carrier card, and Vivado 2017.4
Appreciate the help!
Best Regards
Hi,
sorr,y we haven't a reference design for MEMs sensor available.
Only our default Reference Design for basic periphery:
- https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/Modules_and_Module_Carriers/4x5/TE0720/Reference_Design
br
John
Yeah, I looked at those linked but wasn't found any reference design in any vivado versions.
Can you please give me some direction, how can I get sensor information in SDK?
Thanks!
Hi,
maybe it's an misunderstanding.
Quotesorry, we haven't a reference design for MEMs sensor available.
So this means, there is no example for MEMs sensor available at the moment.
But it's I2C connection only. And it seems petalinux also support some drivers for MEMs:
- https://www.mouser.de/datasheet/2/389/lsm303d-955044.pdf
- https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/iio/st-sensors.txt
So use default reference design from the 2018.2 project and generate all file by yourself.
I this is running you can check petalinux config menues for correct drivers and maybe add this to device tree.
br
John
Sorry, I forgot to mention, I am not using peta-linux, using it as the bare-metal application.
Hi,
so you must use I2C driver from Xilinx sdk and write your one code.
Maybe this helps:
- http://www.wiki.xilinx.com/Baremetal+Drivers+and+Libraries (http://www.wiki.xilinx.com/Baremetal+Drivers+and+Libraries)
- https://github.com/ControlEverythingCommunity/LSM303DLHC/blob/master/C/LSM303DLHC.c (https://github.com/ControlEverythingCommunity/LSM303DLHC/blob/master/C/LSM303DLHC.c)
Sorry, that's all what I can help at the moment.brJohn
Thanks, That information helps!
Appreciate it!