#1392 closed defect (fixed)

SPI Memory driver, writes over multiple pages results in extra data being written

Reported by: Daniel Hellstrom Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: bsps Version: 4.10
Severity: normal Keywords:
Cc: chrisj@… Blocked By:
Blocking:

Description

The SPI memory driver doesn't account for already transmitted bytes in spi_memdrv_write(). This problem appears when a write is done over a page boundary, the driver split up the transmission in two parts (one for the first page and one for the second page), however when writing to the second page it transmits too much data. The number of data bytes written to the second page should be (TOTAL_NUMBER_OF_BYTES_TO_TRANSMIT - NUMBER_OF_BYTES_IN_FIRST_PAGE), not TOTAL_NUMBER_OF_BYTES_TO_TRANSMIT.

Attachments (1)

spi_memdrv.patch (634 bytes) - added by Daniel Hellstrom on Mar 10, 2009 at 5:56:20 AM.
Patch for the problem

Download all attachments as: .zip

Change History (2)

Changed on Mar 10, 2009 at 5:56:20 AM by Daniel Hellstrom

Attachment: spi_memdrv.patch added

Patch for the problem

comment:1 Changed on Mar 12, 2009 at 4:25:54 PM by Joel Sherrill

Component: patch - do not usebsps
Resolution: fixed
Status: assignedclosed
Summary: SPI Memory driver, writes over multiple pages results in extra data beeing writtenSPI Memory driver, writes over multiple pages results in extra data being written

Patch committed to 4.9 and head.

Note: See TracTickets for help on using tickets.