Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: sonic on July 16, 2018, 03:11:27 PM

Title: TE0720 MEMS sensor
Post by: sonic on July 16, 2018, 03:11:27 PM
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
Title: Re: TE0720 MEMS sensor
Post by: JH on July 17, 2018, 08:23:38 AM
Hi,
sorr,y we haven't a reference design for MEMs sensor available.

Only our default Reference Design for basic periphery:

br
John
Title: Re: TE0720 MEMS sensor
Post by: sonic on July 17, 2018, 12:56:50 PM
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!
Title: Re: TE0720 MEMS sensor
Post by: JH on July 17, 2018, 01:13:09 PM
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:

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

Title: Re: TE0720 MEMS sensor
Post by: sonic on July 17, 2018, 02:20:43 PM
Sorry, I forgot to mention, I am not using peta-linux, using it as the bare-metal application.
Title: Re: TE0720 MEMS sensor
Post by: JH on July 17, 2018, 02:32:18 PM
Hi,
so you must use I2C driver from Xilinx sdk and write your one code.
Maybe this helps:
Sorry, that's all what I can help at the moment.brJohn
Title: Re: TE0720 MEMS sensor
Post by: sonic on July 17, 2018, 02:36:52 PM
Thanks, That information helps!

Appreciate it!