User Tools

Site Tools


ds:projects:cryring:bpmboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
ds:projects:cryring:bpmboot [2017/10/31 11:44]
pmiedzik created
ds:projects:cryring:bpmboot [2020/02/11 12:50]
tobiashoffmann [AFC 3.1 MMC Programming HowTo]
Line 11: Line 11:
 <code> <code>
 #Left MCH #Left MCH
-screen /dev/ttyACM0 19200+screen /dev/ttyACM0 19200   (STRG A + STRG D to detach vom screen)
 #Right MCH #Right MCH
 screen /dev/ttyACM1 19200 screen /dev/ttyACM1 19200
Line 50: Line 50:
  
  
 +==== FPGA paritial reset ====
  
 +Connect over JTAG to a module, probe file required
 +
 +
 +===== AFC 3.1 MMC Programming HowTo =====
 +
 +
 +=== MMC: ===
 +
 +Install LPCXpresso on Linux PC.
 +
 +LPC_Link (1) on table with AFC on table
 +
 +USB Cable connected to PC and LPC_Link
 +
 +{{:ds:projects:cryring:20200205_144018.jpg?400|}}
 +
 +dedicated cable from Piotr to JTAG in the middle of AFC with cables heading to FMC connectors
 +
 +on LPC Link J4 left row with Black = Pin15
 +
 +enter command on Linux PC:
 +
 +dfu-util -d 0x0471:0xdf55 -c 0 -t 2048 -R -D /usr/local/lpcxpresso/lpcxpresso/bin/LPCXpressoWIN.enc
 +
 +/usr/local/lpcxpresso/lpcxpresso/bin/crt_emu_cm3_nxp -pLPC1768 -g -wire=winusb -load-base=0 -flash-load-exec=openMMC-full-afc-bpm-v1.4.0.bin 
 +
 +
 +
 +=== AFC Firmware (Sirius): ===
 +
 +
 +Before any FPGA configuration can be performed, you need to switch SCANSTA JTAG switch. Untill than FPGA won't be visible in Vivado. You will find instructions {{ :ds:projects:cryring:afc_afck_scansta_guide.pdf |here}}
 +
 +jtag_scansta.tcl (TCL-Script):
 +
 +<file>
 +#set JTAG */xilinx_tcf/Xilinx/*
 +set JTAG */xilinx_tcf/Digilent/*
 +
 +catch open_hw
 +catch {connect_hw_server -url localhost:3121}
 +get_hw_targets
 +current_hw_target [get_hw_targets $JTAG]
 +set_property PARAM.FREQUENCY 3000000 [get_hw_targets $JTAG]
 +catch {open_hw_target -jtag_mode 1}
 +
 +run_state_hw_jtag reset
 +run_state_hw_jtag idle
 +scan_ir_hw_jtag 8 -tdi 00
 +scan_ir_hw_jtag 8 -tdi a0
 +scan_ir_hw_jtag 8 -tdi a5
 +scan_dr_hw_jtag 8 -tdi 5a
 +scan_ir_hw_jtag 8 -tdi c3
 +#On proper setup last step should return 0x00
 +scan_dr_hw_jtag 8 -tdi 5a -tdo 00
 +close_hw_target
 +open_hw_target
 +</file>
 +
 +Flash Chip on AFC 3.1 for FPGA Firmware: mt25ql256-spi-x1_x2_x4
ds/projects/cryring/bpmboot.txt · Last modified: 2020/02/11 13:00 by tobiashoffmann