Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: dave-acfr on April 06, 2017, 06:17:10 AM

Title: TE0720, reference designs, GPIO and RTC
Post by: dave-acfr on April 06, 2017, 06:17:10 AM
We have a TE0720 / TE0701 combo. If I boot from the in-built flash (no sd card), it seems to work fine. In particular, the i2c devices and RTC clock driver seems to work:
pcf857x 1-0020: probed
pcf857x 1-0021: probed
rtc-isl12022 1-006f: rtc core: registered rtc-isl12022 as rtc0


but if I boot with an SD card loaded with BOOT.bin and image.ub from the prebuilt TE0720 / TE0701 reference design then instead I see:
pcf857x: probe of 1-0020 failed with error -11
pcf857x: probe of 1-0021 failed with error -11
rtc-isl12022 1-006f: isl12022_read_regs: read error, ret=-11
rtc-isl12022 1-006f: rtc core: registered rtc-isl12022 as rtc0


I don't know if it's related but the GPIO device-tree configuration also appears to be different. From the inbuilt flash:
GPIO IRQ not connected
XGpio: /amba_pl/gpio@41200000: registered, base is 878
GPIO IRQ not connected
XGpio: /amba_pl/gpio@41200000: dual channel registered, base is 856
GPIO IRQ not connected
XGpio: /amba_pl/gpio@41210000: registered, base is 834
GPIO IRQ not connected
XGpio: /amba_pl/gpio@41210000: dual channel registered, base is 812


and from the reference design:
GPIO IRQ not connected
XGpio: /amba_pl/gpio@41200000: registered, base is 904


Since we are using the reference design as the starting point for our own designs it's a problem that it doesn't work. Is this a known issue, or am I doing something wrong?

The reference design we are using is from here: https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/TE0720/Reference_Design/2016.2/carrier_te0701_sc
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: JH on April 06, 2017, 09:59:55 AM
Hi,

i will check design in the next day's, when  i'm get a TE0720 on my place. Can you say me which assembly option of the TE0720 you has ordered?
You say, you boot from flash without error. From where get you this boot.bin?

Can you try the prebuilts from following reference design:

br
John
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: dave-acfr on April 06, 2017, 10:10:58 AM
On boot it declares itself as:
SoM: TE0720-03-2IF SC REV:05

The boot.bin file is prebuilt/boot_images/te0720_2if/u-boot/BOOT.bin from https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/TE0720/Reference_Design/2016.2/carrier_te0701_sc/te0720-TE0701_SC-vivado_2016.2-build_09_20170210084428.zip

I've also tried the same file from https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/TE0720/Reference_Design/2016.2/te0720_sdsoc/te0720-te0720_sdsoc-vivado_2016.2-build_07_20161017161741.zip

I'll try the one you suggest.
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: dave-acfr on April 06, 2017, 10:31:31 AM
Hi John,

That seems to work which is a great step forward.

Why is it that the test_board reference design works, but the te0720_sdsoc and the carrier_te0701_sc designs don't?

Dave.
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: JH on April 06, 2017, 10:43:11 AM
Hi,

I must check what's happens with this project.

Normally PS is configured nearly identical on all three projects and RTC and I2C should work. And carrier_te0701_sc and testboard used same petalinux template. carrier_te0701_sc includes also a IP to get access to some carrier cpld IOs. But it's only for a special firmware, which will not longer supported.
SDSoC is a special Project to generate Xilinx SDSoC Platforms. See:
PetaLinux has different configuration on this project.

When I check it, i will also generate a 2016.4 Version of the test_board design.

br
John
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: JH on April 06, 2017, 02:24:13 PM
Hi,
i've found out, why it's not work on these designs. They did not include SC0720 System Controller with I2C1 connection. This I2C interface is used for RTC.
See:
For SDSoC it was not needed and for carrier_te0701_sc the I2C controller was used for other I2C interface and the Device Tree was not changed,
I will add a note on the design download page.
br
John
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: dave-acfr on April 06, 2017, 02:32:49 PM
Great. Thanks for investigating that John, it's been puzzling us for a while.
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: dave-acfr on April 07, 2017, 09:16:30 AM
One more question John: to progress our own design, can we load the test_board reference design in to Vivado? I couldn't see any Vivado project.

Thanks, Dave.
Title: Re: TE0720, reference designs, GPIO and RTC
Post by: JH on April 07, 2017, 09:24:48 AM
Hi,

this will be generate, if you start our scripts with cmd files:
Quick Start is for 2016.4, on 2016.2 _create_win_setup.cmd do not exist, but the next instructions are the same:

In your case, you can select board part number:
@set PARTNUMBER=1
or
@set PARTNUMBER=te0720_2if

what you preferred. :-)

If you use linux, follow instructions from Option 2 of:

br
John