Author Topic: TE0720/TE0701 - FSBL boot from SD card  (Read 5171 times)

GlennW

  • Active Member
  • *
  • Posts: 5
TE0720/TE0701 - FSBL boot from SD card
« on: November 18, 2013, 06:08:17 PM »

Can you confirm how we can boot this zynq system using an FSBL on an SD card?
I believe we need to control the MODE output pin of the carrier (TE0701) CPLD (which eventually drives the BOOT_R signal on the module). There is no detail I can find on how to do this.

In general, more details of the CPLD device functionality on the carrier (TE0701) and module (TE0720) would be useful - the source code would be even better.

Thanks

Antti Lukats

  • Hero Member
  • *****
  • Posts: 510
    • Trioflex
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #1 on: November 18, 2013, 07:21:54 PM »
Hi

TE0720 mode pin is connected to TE0720 System Controller (CPLD), ist Default function is Bootmode:
open or logic high: SPI boot
low: SD Card boot

Those Settings are only latched on POWER UP, not on any resets. This is function of System Controller on TE0720 (Version 0.02 - current for all released modules). On customer request we can customize TE0720 System Controller also.

CPLD on TE0701 does only connected SD Card detect to MODE Input of the module.

Good news:

1) Lattice Diamond 2.2 and Standalone Programmer 3.0 Support CPLD reflashing on TE0701 directly, so we can provide new JEDEC files for the CPLD on TE0701.
As of open source the VHDL code for it, it is also planned from us.

br
Antti Lukats








Antti Lukats

  • Hero Member
  • *****
  • Posts: 510
    • Trioflex
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #2 on: December 11, 2013, 02:33:22 PM »
we are preparing carrier board CPLD source release

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #3 on: June 13, 2014, 02:09:32 AM »
we are preparing carrier board CPLD source release
Is there any update on this?

Antti Lukats

  • Hero Member
  • *****
  • Posts: 510
    • Trioflex
« Last Edit: June 21, 2014, 04:19:53 PM by Thorsten Trenz »

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #5 on: October 27, 2020, 08:46:28 PM »
TE0720 mode pin is connected to TE0720 System Controller (CPLD), ist Default function is Bootmode:
open or logic high: SPI boot
low: SD Card boot

Those Settings are only latched on POWER UP, not on any resets.
Driving POR and EN1 low for a moment does not appear to be enough to latch the MODE signal again.
Is there any way to force the TE0720 to latch it again if it is plugged into a TE0701?

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1554
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #6 on: October 28, 2020, 08:30:17 AM »
Hi,
you refer to a post from 2013. We have 2020 now. ;-)

Boot mode will be changed with SD card CD Pin when you use TE0701:
  https://wiki.trenz-electronic.de/display/PD/TE0701+CPLD#TE0701CPLD-BootMode
--> Boot Mode is SD when card is inserted and QSPI if it's removed.
We offer also TE0701 CPLD source code in our download area of the TE0701 CPLD, in case you want to change it.

We offer also newer reference designs:
  https://wiki.trenz-electronic.de/display/PD/TE0720+Reference+Designs

Here are Links to other documentation and downloads:
  https://wiki.trenz-electronic.de/display/PD/TE0720+Resources
  https://wiki.trenz-electronic.de/display/PD/TE0701+Resources


br
John

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #7 on: October 28, 2020, 09:17:04 AM »
you refer to a post from 2013. We have 2020 now. ;-)

I'm aware of that. My question fits the topic and the previous discussion perfectly.

Boot mode will be changed with SD card CD Pin when you use TE0701:
  https://wiki.trenz-electronic.de/display/PD/TE0701+CPLD#TE0701CPLD-BootMode
--> Boot Mode is SD when card is inserted and QSPI if it's removed.
We offer also TE0701 CPLD source code in our download area of the TE0701 CPLD, in case you want to change it.

I know. This was already said in the previous answers. I have modified the CPLD source code to be able to toggle MODE and POR via the two ACBUS pins.
But as I wrote toggling POR is not enough to get the TE0720 to boot with the new MODE.
Are there other pins that have to be toggled to temporarily remove power from the TE0720 or is it impossible with the TE0701 unless one also changes the CPLD code of the TE0720?

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1554
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #8 on: October 28, 2020, 09:30:32 AM »
Hi,
which of the 4x5 B2B controller pins did you toggle with FTDI?
https://wiki.trenz-electronic.de/display/PD/4+x+5+SoM+Integration+Guide#id-4x5SoMIntegrationGuide-4x5ModuleControllerIOs
and how long do you keep the state of the pin?

There is no schematic name which is conneced to B2B and called  "por" only. See schematics
https://shop.trenz-electronic.de/en/TE0720-03-2IF-SoC-Module-with-Xilinx-Zynq-XC7Z020-2CLG484I-ind.-temp.-range-1-GByte?path=Trenz_Electronic/Modules_and_Module_Carriers/4x5/TE0720/REV03/Documents
https://shop.trenz-electronic.de/en/TE0701-06-Carrier-Board-for-Trenz-Electronic-7-Series?path=Trenz_Electronic/Modules_and_Module_Carriers/4x5/4x5_Carriers/TE0701/REV06/Documents

PS: when you change FTDI functionality with FTDI tools, it can happens that you lost Xilinx key, in this case you can't get access again FPGA with Xilinx tools.

br
John

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #9 on: October 28, 2020, 10:26:54 AM »
Sorry, it's called PON not POR in the CPLD code and signal is driven out to the B2B connector as SC_EN1.
I tried driving it low for more than a second.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1554
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #10 on: October 28, 2020, 11:11:29 AM »
instead of FTDI use free DIP switches of the TE0701 to test it.
Did you set NOSEQ to high or low?

br
John

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #11 on: October 28, 2020, 08:02:33 PM »
Let's ignore that I am using the FTDI for this. The stock CPLD firmware will also drive SC_EN1 low while the S2 button is pressed.
The TE0720 appears to latch the MODE as soon as power is applied to the board even when SC_EN1 is low at that time.

I didn't change NOSEQ. It is not driven by the TE0701 CPLD and has a pull-down inside the TE0720 CPLD.

denial

  • Active Member
  • *
  • Posts: 9
Re: TE0720/TE0701 - FSBL boot from SD card
« Reply #12 on: October 29, 2020, 07:58:52 PM »
Never mind. PCN-20150121 says that newer TE0720 modules latch MODE with every reset instead of only at power up.