msdk icon indicating copy to clipboard operation
msdk copied to clipboard

feat(MiscDrivers): Add APS6404 SRAM Drivers

Open Jake-Carter opened this issue 6 months ago • 0 comments

Description

This PR adds APS6404 SRAM support to our MiscDrivers. The MAX78002EVKIT has an on-board APS6404 which is primarily used to buffer image data.

Previously these were local to the QSPI example project. This PR updates them to use the common fastspi implementation, configured via a "fastspi_config.h" file in the MAX78002EVKIT BSP.

It also cleans up the implementation, API, and example code.

Checklist Before Requesting Review

  • [ ] PR Title follows correct guidelines.
  • [ ] Description of changes and all other relevant information.
  • [ ] (Optional) Link any related GitHub issues using a keyword
  • [ ] (Optional) Provide info on any relevant functional testing/validation. For API changes or significant features, this is not optional.

Tests

QSPI example validation:

Initializing SRAM...
Reading ID...
RAM ID:
        MFID: 0x0d
        KGD: 0x5d
        Density: 0x02
        EID: 0x5749640d
QSPI SRAM Test:
        Test Address: 0x0
        Test size: 640 bytes
        Test count: 480 rows
        Test speed: 24000000 Hz
(Benchmark) Wrote 640 bytes to internal SRAM in 17us
Test 1: Standard SPI write...
        Done (640 bytes in 197us)
Test 2: Validate w/ standard SPI...
        Read finished (640 bytes in 198us)
        Checking for mismatches...
        Done
Test 3: Validate w/ QSPI...
        Read finished (640 bytes in 68us)
        Checking for mismatches...
        Done
Test 4: QSPI Write...
        Done (640 bytes in 88us)
Test 5: Validate w/ standard SPI...
        Read finished (640 bytes in 198us)
        Checking for mismatches...
        Done
Test 6: Validate w/ QSPI...
        Read finished (640 bytes in 68us)
        Checking for mismatches...
        Done
Test 7: QSPI Writing across page boundaries...
        Wrote 307200 bytes in 42599us
Test 8: Validating with standard SPI...
        Success
Test 9: Validating with QSPI...
        Success
Success!

Jake-Carter avatar Jul 29 '24 21:07 Jake-Carter