Hi Jonathan and Mark,

Yes, JTAG is the way. Okay, I have done this before. This is what needs to
be done and I am going via memory here - will confirm when I am in the
office tomorrow:

1) Remove the SKARAB lid
2) This is TBC, but you will need to short the jumper on P9 (schematic page
42), which will add the Virtex 7 and reconfig device to the JTAG chain. I
know I need to do this when I run the Vivado ILA.
3)  The JTAG connector is ref des JP3, which is a 20 pin header. You will
need to use the Xilinx USB Platform Programmer Cable to connect to the 20
pin header using the fly leads that come with the Xilinx USB Platform
Programmer Cable. NB: Remember to install the USB drivers as specified in
the Vivado install How To.
4) Open Vivado and open the Hardware Manager. First, auto connect and make
sure the FPGA can be detected. Then add the flash device. I used the "
mt28gu01gaax1e-bps-x16" device together with the *.MCS files stored in the
repo. You just need to configure the multi-boot image to gain access to the
board via the 1GbE interface again. Set the RS pins to [25:24]. You may
need the *.prm files, which are available in
https://drive.google.com/drive/folders/0B2dCFqGD5y-8eHlSVlFrUVdPOVE?usp=sharing.
If you do then let me know and I will add them to the repo.
5) Configure the flash, verify and then power off the board and see if the
1GbE comes up.

If you are still struggling then I will generate a proper How To document
tomorrow with graphics etc. I will probably do that anyway.

Good luck!



On Wed, Jun 14, 2017 at 11:44 PM, Jonathan Weintroub <
jweintr...@cfa.harvard.edu> wrote:

> Hi Wes and other SKARAB experts,
>
> To my understanding our SKARAB is now "bricked" and no longer responds on
> Ethernet at all. We now need a way to bring it back to life from a straight
> off the factory floor state.  We surmise this involves JTAG and while there
> is a tantalizing mention of this protocol in the docs Adam supplied, there
> are no details.
>
> We may need Peralex expert support here.  We are time constrained on this
> project and need to get rolling.
>
> Please advise, thanks!
>
> Jonathan Weintroub
> SAO
>
>
> On Wed, Jun 14, 2017 at 5:11 PM Wesley New <wes...@ska.ac.za> wrote:
>
>> Hi Mark,
>>
>> Firstly, welcome to the CASPER community.
>>
>> The SKARAB has multiple images stored in Flash. These are meant only used
>> for the initial FPGA image at start up and a fall back image. This is a
>> Xilinx standard method of configuration. You should be using the
>> upload_to_ram_and_program function. This function uploads the your compiled
>> fpg file to the SDRAM and then triggers the Virtex to program itself from
>> the SDRAM. You will probably have overwritten the boot images. :(
>>
>> import casperfpga
>>
>> SKARAB_IP = '10.99.45.170'
>> SKARAB_FPG = 'skarab.fpg'
>>
>> # skarab programming
>> skarab = casperfpga.CasperFpga(SKARAB_IP)
>> skarab.upload_to_ram_and_program(SKARAB_FPG)
>>
>> Does the board come back after waiting some time?
>>
>>
>>
>>
>> Wesley New
>> South African SKA Project
>> +2721 506 7300 <+27%2021%20506%207300>
>> www.ska.ac.za
>>
>>
>>
>> On Wed, Jun 14, 2017 at 7:16 PM, Peryer, Mark A. <
>> mark.per...@cfa.harvard.edu> wrote:
>>
>>> Hello,
>>>
>>> After trying to reconfigure the flash memory on the Virtex7 FPGA with a
>>> new image, I am no longer able to connect to the SKARAB through casperfpga
>>> using the 1GigE port. When I enter the command fpga =
>>> casperfpga.SkarabFpga('169.254.128.213'), the following is output.
>>>
>>> DEBUG:casperfpga.casperfpga:169.254.128.213: now a CasperFpga
>>> DEBUG:casperfpga.skarab_fpga:Retransmit attempts: 0
>>> DEBUG:casperfpga.skarab_fpga:Waiting for response.
>>> DEBUG:casperfpga.skarab_fpga:No packet received: will retransmit
>>> DEBUG:casperfpga.skarab_fpga:Retransmit attempts: 1
>>> DEBUG:casperfpga.skarab_fpga:Waiting for response.
>>> DEBUG:casperfpga.skarab_fpga:No packet received: will retransmit
>>> DEBUG:casperfpga.skarab_fpga:Retransmit attempts: 2
>>> DEBUG:casperfpga.skarab_fpga:Waiting for response.
>>> DEBUG:casperfpga.skarab_fpga:No packet received: will retransmit
>>> ERROR:casperfpga.skarab_fpga:Socket timeout. Response packet not
>>> received.
>>>
>>> My thinking is that the firmware image loaded into the flash is corrupt
>>> and now the 1GigE port is disabled. Are these any other possible ways to
>>> load a firmware image into flash without using the 1GigE port, such as the
>>> USB port or JTAG header? If so, what would be the required procedure to do
>>> so?
>>>
>>> Thanks,
>>>
>>> Mark Peryer
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "casper@lists.berkeley.edu" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to casper+unsubscr...@lists.berkeley.edu.
>>> To post to this group, send email to casper@lists.berkeley.edu.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "casper@lists.berkeley.edu" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to casper+unsubscr...@lists.berkeley.edu.
>> To post to this group, send email to casper@lists.berkeley.edu.
>>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To post to this group, send email to casper@lists.berkeley.edu.
>



-- 
[image: SKA_banner]

Best Regards / Vriendelike Groete

*Adam Isaacson*
FPGA Engineer

[image: SKA_banner][image: SKA_banner]
[image: SKA_banner]   (+27) 82 563 9602 [image: SKA_banner]   3rd Floor,
The Park, Park Road,
[image: SKA_banner]   (+27) 21 506 7300     Pinelands
[image: SKA_banner]   (+27) 21 506 7375     7405
[image: SKA_banner]   www.ska.ac.za     South Africa

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To post to this group, send email to casper@lists.berkeley.edu.

Reply via email to