-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi There,
I am trying to port your booloader to the above board. After tweaking the board pin constraints file to the new board, and a few other tweaks, I now have the bootloader running when I download directly to the FPGA. (Based my port on the logicbone_ecp5 target board)
I then see the dfu device and dfu-util -l reports the following:
dfu-util 0.10-dev
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=5, name="Security Reg", serial="777777"
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=4, name="Security Reg", serial="777777"
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=3, name="Security Reg", serial="777777"
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=2, name="Bootloader", serial="777777"
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=1, name="User Data", serial="777777"
Found DFU: [1d50:615d] ver=0000, devnum=3, cfg=1, intf=0, path="4-2", alt=0, name="User Image", serial="777777"
I can use dfu-util to upload the bootloader *.bit file to the a2 partion, and that completes fine. I then upload my user code to a1 partion, and that also completes fine. (should it be a1 or a0?)
I then unplug my usb(s) and reboot using only the usb that is direct conneced to the FPGA and the bootloader runs.
My problem is that I can't see a way to boot my user code over the same direct connected USB interface. Does the pwr_button have something to do with that? (I had to set it to"0" to get everything working)
Please explain what this button does, I don't have a user button on this board ..
Please explain how the bootloader decides what image to boot .. (bootloader at a2, or user image at a1)
Many Thanks for the great code ..
PS: I see to have 32Mb Flash on this colorlight module, but I still have the boardinfo.vh file, SPI_FLASH_SIZE still at 16Mb, is that an issue?