Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 20eb2d27b98e
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 70a5dfa5fe2c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 6, 2019

  1. Copy the full SHA
    70a5dfa View commit details
Showing with 8 additions and 3 deletions.
  1. +8 −3 software/glasgow/applet/memory/onfi/__init__.py
11 changes: 8 additions & 3 deletions software/glasgow/applet/memory/onfi/__init__.py
Original file line number Diff line number Diff line change
@@ -734,11 +734,16 @@ async def interact(self, device, args, onfi_iface):
row = args.start_page
count = args.count
while count > 0:
data = args.data_file.read(page_size)
spare = args.spare_file.read(spare_size)
if args.spare_file:
data = args.data_file.read(page_size)
spare = args.spare_file.read(spare_size)
chunks = [(0, data), (page_size, spare)]
else:
chunk = args.data_file.read(page_size + spare_size)
chunks = [(0, chunk)]

self.logger.info("programming page (row) %d", row)
if not await onfi_iface.program(row=row, chunks=[(0, data), (page_size, spare)]):
if not await onfi_iface.program(row=row, chunks=chunks):
self.logger.error("failed to program page (row) %d", row)

row += 1