mcux-sdk icon indicating copy to clipboard operation
mcux-sdk copied to clipboard

fix the dma request source error of LPSPI3;

Open 5angXR opened this issue 7 months ago • 1 comments

Prerequisites

  • [x] I have checked latest main branch and the issue still exists.
  • [x] I did not see it is stated as known-issue in release notes.
  • [x] No similar GitHub issue is related to this change.
  • [x] My code follows the commit guidelines of this project.
  • [x] I have performed a self-review of my own code.
  • [x] My changes generate no new warnings.
  • [x] I have added tests that prove my fix is effective or that my feature works.

Describe the pull request

fix the dma request source error of LPSPI3 accoording to IMXRT1040RM Rev. 1, 09/2022. Snipaste_2024-07-23_09-55-05

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)

Tests

  • Test configuration (please complete the following information):

    • Hardware setting: board -> evkmimxrt1040, io -> GPIO_B0_03_LPSPI3_SCK, IOMUXC_GPIO_B0_02_LPSPI3_SDO, IOMUXC_GPIO_B0_00_LPSPI3_PCS0, IOMUXC_GPIO_B0_01_LPSPI3_SDI
    • Toolchain: MDK
    • Test Tool preparation: a Logic analyzer.
    • Any other dependencies: No
  • Test executed Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. In \evkmimxrt1040\driver_examples\lpspi\edma_b2b_transfer, change the LPSPI from LPSPI1 to LPSPI3. If no dma request source change is made, the program is stuck, unable to trigger dma interrupt, LPSPI_MasterUserCallback() cannot be executed, and data cannot be sent; on the contrary, the program proceeds smoothly, the data was sent successfully.

    • [x] Build Test
    • [x] Run Test

5angXR avatar Jul 23 '24 02:07 5angXR