mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
don't verify erase, very slow
This commit is contained in:
parent
81e4f1f158
commit
18e5def9f2
1 changed files with 1 additions and 3 deletions
|
@ -70,8 +70,6 @@ class BaseSoC(SoCCore):
|
||||||
sys_clk_freq = sys_clk_freq)
|
sys_clk_freq = sys_clk_freq)
|
||||||
self.add_csr("leds")
|
self.add_csr("leds")
|
||||||
|
|
||||||
self.add_constant("UART_POLLING")
|
|
||||||
|
|
||||||
# Flash --------------------------------------------------------------------------------------------
|
# Flash --------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
def flash(offset, path):
|
def flash(offset, path):
|
||||||
|
@ -94,7 +92,7 @@ def flash(offset, path):
|
||||||
dev = SerialFlashManager.get_flash_device("ftdi://ftdi:2232/2")
|
dev = SerialFlashManager.get_flash_device("ftdi://ftdi:2232/2")
|
||||||
dev.TIMINGS['chip'] = (4, 60) # chip is too slow
|
dev.TIMINGS['chip'] = (4, 60) # chip is too slow
|
||||||
print("Erasing flash...")
|
print("Erasing flash...")
|
||||||
dev.erase(0, -1, True)
|
dev.erase(0, -1)
|
||||||
|
|
||||||
with open(path, 'rb') as f:
|
with open(path, 'rb') as f:
|
||||||
bios = f.read()
|
bios = f.read()
|
||||||
|
|
Loading…
Reference in a new issue