Using config tools to configure SPI using eDMA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using config tools to configure SPI using eDMA

1,738 Views
yorknh
Contributor IV

I'm trying to use the config tools included with MCUXepresso 10.2.1 on a K64. When I select "Enable Tx eDMA channel" there is a block for "Intermediary eDMA channel". What exactly is the purpose of the that channel?

On another but related note, in the peripheral.h that gets generated there is a line that gets created that has a variable declaration that corresponds to that intermediary channel that I believe is missing an extern in front of it.

The section of the file looks like:

extern const edma_config_t eDMA_1_config;
extern const dspi_master_config_t SPI_OTHER_config;
extern edma_handle_t SPI_OTHER_Handle;
edma_handle_t SPI_OTHER_Intermediary_Handle;
extern edma_handle_t SPI_OTHER_TX_Handle;
extern dspi_master_edma_handle_t SPI_OTHER_eDMA_Handle;

Tags (1)
2 Replies

1,501 Views
Lukas_Heczko
NXP Employee
NXP Employee

Hi Larry,

regarding the missing extern keyword, fixed DSPI component for MCUXpresso Peripherals tool is now available. It will be downloaded automatically when you restart MCUXpresso Config Tools. For existing MCUXpresso IDE projects, in order to regenerate the peripherals.h code, open the MCUXpresso Peripherals tool and hit the Update Project button. 

Regards,

Lukas

1,501 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Larry,

   About the K64 SPI DMA code, I think you can refer to our SDK code:

FRDM-K64F\boards\frdmk64f\driver_examples\dspi\edma_b2b_transfer

  About config tools , please give me some picture on your side, then I can help you to check it.

Intermediary eDMA channel should used to select the DMA channel, you can check the K64 reference manual about the DMA channel, it will be more clear.

About the generated handler, I still suggest you check our SDK DMA sample code, it will help you to understand it.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply