- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have built an application which test SPI DMA, i short the pins MOSI and MISO, and uses two DMA channels ( DataWire 0, Channels 20 and 21). RX trigger channels20,TX trigger channels 21.
it compiles and runs correctly on the CM4 processor. I'm now trying to move that functionality to the CM0+ processor,
I do COMPONENTS=BSP_DESIGN_MODUS inside my Makefile,and setup interrupts for the CM0P core.
it won't work.
when spi sending is finished,program enters DMA transmission interrupt,
the function Cy_DMA_Channel_GetInterruptStatusMasked always return 0.
Please see the attached project.
I am attaching project .Thank you so much..
Thank you so much.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
You mean you always stuck when you call Cy_DMA_Channel_GetInterruptStatusMasked in tx_dma_complete?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, the program always stuck when i call Cy_DMA_Channel_GetInterruptStatusMasked in tx_dma_complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
please wait for a moment, let me reproduce this phenomenon. I have already review your code and find nothing obvious error. Furthermore, the code can run it based m4 core. So that is very strange.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Sorry to response too lately.
I have already build a project that can run SPI+DMA based on M0. So you can add or modify your own code according to that project.
By the way, my test environment is CY8CKIT-062-BLE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
My project is too large, please give me your email. I will send you later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. My email is yang.yong@igbt.cn.