Experimental MaxV support added. This is very alpha and likely makes problems

This commit is contained in:
Your Name 2021-07-17 11:57:37 +01:00
parent cc802afd34
commit b28ea5130b
4 changed files with 11703 additions and 0 deletions

View File

@ -26,6 +26,13 @@ case $version in
echo "EPM570 detected!"
./nprog.sh
;;
"0x020a50dd")
echo "MAXV240 detected!"
echo ""
echo "! ATTENTION ! MAXV SUPPORT IS EXPERIMENTAL ! ATTENTION !"
echo ""
./nprog_maxv.sh
;;
*)
echo "Could not detect CPLD"
exit 1

30
nprog/68_maxv.cfg Normal file
View File

@ -0,0 +1,30 @@
reset_config none
adapter driver bcm2835gpio
bcm2835gpio_peripheral_base 0x3F000000
# Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET
# These depend on system clock, calibrated for stock 700MHz
# bcm2835gpio_speed SPEED_COEFF SPEED_OFFSET
#bcm2835gpio_speed_coeffs 146203 36
bcm2835gpio_speed_coeffs 194938 48
#bcm2835gpio_peripheral_base 0x3F000000
#bcm2835gpio_speed_coeffs 194938 48
reset_config none
adapter speed 100
# JTAG tck tms tdi tdo
bcm2835gpio_jtag_nums 26 24 27 25
#meh dummy reset to make openocd happy, set to A0 on SMI
bcm2835gpio_srst_num 5
reset_config srst_only srst_open_drain
transport select jtag
jtag newtap max2 tap -irlen 11 -expected-id 0x020a50dd
init
svf ./rtl/maxv_bitstream.svf -quiet
sleep 200
shutdown

15
nprog_maxv.sh Executable file
View File

@ -0,0 +1,15 @@
if pgrep -x "emulator" > /dev/null
then
echo "PiStorm emulator is running, please stop it first"
exit 1
fi
echo "Flashing..."
sudo openocd -f ./nprog/68_maxv.cfg > nprog_log.txt 2>&1
if [ $? -ne 0 ]
then
echo "Flashing failed, please see nprog_log.txt for details"
exit 1
else
echo "Flashing successful!"
fi

11651
rtl/maxv_bitstream.svf Normal file

File diff suppressed because it is too large Load Diff