Aries Embedded RISC-V on MAX10 Podręcznik użytkownika - Strona 10

Przeglądaj online lub pobierz pdf Podręcznik użytkownika dla Sprzęt komputerowy Aries Embedded RISC-V on MAX10. Aries Embedded RISC-V on MAX10 20 stron.

RISC-V on MAX10 User Guide

3.5 OpenOCD

The PIC onboard programming solution is used in conjunction with OpenOCD. For OpenOCD, the libftdi
driver with blaster support is required.

3.5.1 Linux

On Linux the apt version usually suffices:
sudo apt install openocd
Create a bash script to programm the FPGA more conveniently. In order to do so, create the file ~/.local/
bin/mx10spider (including parent directories, should they not exist) and add the following content:
#!/bin/sh
me=$(basename
$0)
[
-f
"$1"
];
if
then
openocd -c
"interface usb_blaster"
-c
"usb_blaster_vid_pid 0x04d8 0xefd0"
-irlen 10 -expected-id 0x31810dd -expected-id 0x318a0dd \
-expected-id 0x31820dd -expected-id 0x31830dd -expected-id 0x31840dd \
-expected-id 0x318d0dd -expected-id 0x31850dd -expected-id 0x31010dd \
-expected-id 0x310a0dd -expected-id 0x31020dd -expected-id 0x31030dd \
-expected-id 0x31040dd -expected-id 0x310d0dd -expected-id 0x31050dd" \
-c
"init"
-c
"svf
[
"$1"
=
""
];
elif
then
echo
"\tError: No file specified.\n\tUsage:
[
"$1"
=
"-h"
] || [
elif
echo
"\tUtility script to start openocd and run an svf file.\n\tUsage:
else
echo
"\tFile not found: $1\n\tUsage:
fi
Make sure the directory is included in the path variable.
Then the FPGA can be programmed via a Serial Vector Format File (.svf) using the following example
command:
mx10spider example.svf

3.5.2 Windows

For Windows OpenOCD binaries are available on the
to any directory (for example C:/openocd), then add the subdirectory bin/ to the path environment
variable. OpenOCD can be used by running a bash-emulation such as MINGW64 (for example shipped with
Git for Windows). Create the file mx10spider in the subdirectory bin/ of OpenOCD and insert the bash
script for Linux from above. Then the FPGA can be programmed in the same way as on Linux.
Chapter 3. Requirements
-c
"usb_blaster_lowlevel_driver ftdi" \
-c
$1
progress"
-c
"shutdown"
$me
"$1"
=
"--help"
];
then
$me
<file.svf>"
GitHub
"jtag newtap max10 tap
<file.svf>"
repository. Extract the content of the archive
$me
<file.svf>"
Page 10 of 20