完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用Wice工作室5。我们在STM32 F4上移植了驱动程序,在固件下载时面临DMA FIFO错误的问题,在SDMMC2STA寄存器中没有FIFO下溢错误。我们检查了FIFO突发长度,看起来很好。请帮助。
这里是代码片断, /*DMA准备传输*// SDIO-GT;dtime=(UTI32×t)0xFFFFFFFF; SDIO-GT;DLEN=DMAX转移尺寸; SDIO-GT;DCTRL=(UINT32×T)SDIOOGETGHOBIZSIZEZ-DCTRL(BlulkStand)ButhOrthPosithIn映射[[(INT)方向] ] SdioOx转移模块SdioOy DPSMIN使能(1和lt;3)(1和lt;& lt;11); /*DMA2 SRUL0*// DMA2A Surviv-&Gt;Cr=0; DMA2-&Gt;LIFCR=(UTIN 32×t)(0x3f);//(0x3f & lt;lt;22); DMA2A Stuff-0&Gt;FCR=(UTIN 32×T)(0x000 000)21DMAYFIFOMDEDEO使能DMAYFIFOVHOLDHOLDHORUL/**(1和lt;7)FIFO Err*); DMA2A Stuff-0&Gt;PAR=(UTIN 32×T)和;SDIO & GT;FIFO; DMA2A Stuff-0&Gt;M0Ar=(uTIN 32×T)DMAX DATAAX源; DMA2A Surviv-& NTTR=DMAX传递大小/ 4; /*启动DMA流*/ DMA2A Surviv-&Gt;Cr=(uTIN 32×T)(DMAI DILIL记忆) DMA-ChhanelNe1111dMurialEngurialCurnabl DMAX外设数据 dMaMyDe-正规dMyPrimeRealVyyHyg DMAiMeMyBurtSt*In 4 dMAL PurruralBurtSt1; 在SDIO IRQ的上述步骤的执行中,我们在DMA2LYLR寄存器中设置DMA FIFO错误事件位,并且传输结束。 以上来自于百度翻译 以下为原文 Using WICED Studio 5.0. We have Ported driver based on STM32F4, We are facing problem of DMA fifo Error while firmware download.We are not getting Fifo underrrun error in SDMMC2_STA register.We examined the Fifo burst length which seems to be fine.Please help. Here is code snippet, /* DMA prepare transfer */ SDIO->DTIMER = (uint32_t) 0xFFFFFFFF; SDIO->DLEN = dma_transfer_size; SDIO->DCTRL = (uint32_t)sdio_get_blocksize_dctrl(block_size) | bus_direction_mapping[(int)direction] | SDIO_TransferMode_Block | SDIO_DPSM_Enable | (1 << 3) | (1 << 11); /* DMA2 Stream0 */ DMA2_Stream0->CR = 0; DMA2->LIFCR = (uint32_t) ( 0x3F );//( 0x3F << 22 ); DMA2_Stream0->FCR = (uint32_t) ( 0x00000021 | DMA_FIFOMode_Enable | DMA_FIFOThreshold_Full /*| (1<<7) fifo err */ ); DMA2_Stream0->PAR = (uint32_t) &SDIO->FIFO; DMA2_Stream0->M0AR = (uint32_t) dma_data_source; DMA2_Stream0->NDTR = dma_transfer_size/4; /* Start DMA stream */ DMA2_Stream0->CR = (uint32_t)(DMA_DIR_MemoryToPeripheral | DMA_Channel_11 | DMA_PeripheralInc_Disable | DMA_MemoryInc_Enable | DMA_PeripheralDataSize_Word | DMA_MemoryDataSize_Word | DMA_Mode_Normal | DMA_Priority_VeryHigh | DMA_MemoryBurst_INC4 | DMA_PeripheralBurst_INC4 | DMA_SxCR_PFCTRL | DMA_SxCR_TCIE | DMA_SxCR_EN ); On execution of above step in SDIO IRQ,We are getting DMA FIFO error event bit set in DMA2_LISR register and transfer gets timedout. |
|
相关推荐
1个回答
|
|
对于STM32 F4,上述片段用于固件下载。我们没有关于STM32 F765的想法,因为这在WICE中不被支持。我请求您联系这个问题的STM。如果你有任何关于WICE的想法,请告诉我们。
以上来自于百度翻译 以下为原文 For STM32F4, the above mentioned snippet is used for firmware download. We have no idea on STM32F765 as this is not supported in WICED. I request you to contact STM for this issue. If you have anythink related to WICED please let us know. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1510 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 17:11 , Processed in 0.931453 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号