完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
H743在使用FMC接口外接FPGA,将FPGA视作SRAM,在进行读写操作时,FPGA抓不到片选信号和读使能拉低,但能抓到写使能拉低?
hsram1.Instance = FMC_NORSRAM_DEVICE;hsram1.Extended = FMC_NORSRAM_EXTENDED_DEVICE;/[i] hsram1.Init /hsram1.Init.NSBank = FMC_NORSRAM_BANK1;hsram1.Init.DataAddressMux = FMC_DATA_ADDRESS_MUX_DISABLE;hsram1.Init.MemoryType = FMC_MEMORY_TYPE_SRAM;hsram1.Init.MemoryDataWidth = FMC_NORSRAM_MEM_BUS_WIDTH_8;hsram1.Init.BurstAccessMode = FMC_BURST_ACCESS_MODE_DISABLE;hsram1.Init.WaitSignalPolarity = FMC_WAIT_SIGNAL_POLARITY_LOW;hsram1.Init.WaitSignalActive = FMC_WAIT_TIMING_BEFORE_WS;hsram1.Init.WriteOperation = FMC_WRITE_OPERATION_ENABLE;hsram1.Init.WaitSignal = FMC_WAIT_SIGNAL_DISABLE;hsram1.Init.ExtendedMode = FMC_EXTENDED_MODE_DISABLE;hsram1.Init.AsynchronousWait = FMC_ASYNCHRONOUS_WAIT_DISABLE;hsram1.Init.WriteBurst = FMC_WRITE_BURST_DISABLE;hsram1.Init.ContinuousClock = FMC_CONTINUOUS_CLOCK_SYNC_ONLY;hsram1.Init.WriteFifo = FMC_WRITE_FIFO_DISABLE;hsram1.Init.PageSize = FMC_PAGE_SIZE_NONE;/[i] Timing /Timing.AddressSetupTime = 15;Timing.AddressHoldTime = 15;Timing.DataSetupTime = 60;Timing.BusTurnAroundDuration = 15;Timing.CLKDivision = 16;Timing.DataLatency = 17;Timing.AccessMode = FMC_ACCESS_MODE_A; while(1){printf("fpga test start WRITE !!!!!!!!!!rn");for(i = 0, writedata = 0; i < 255; i++, writedata++){[i](uint8_t)(Bank1_FPGA_ADDR + i)=writedata;}HAL_Delay(2000);printf("fpga test start READ !!!!!!!!!!rn");for(i = 0; i < 255; i++){readdata = [i](uint8_t)(Bank1_FPGA_ADDR + i);}printf("fpga test end !!!!!!!!!!rn");HAL_Delay(2000);} |
|
相关推荐
1个回答
|
|
你检查下时序参数,连线,片选脚的连接、地址给对没有。
|
|
|
|
只有小组成员才能发言,加入小组>>
调试STM32H750的FMC总线读写PSRAM遇到的问题求解?
1777 浏览 1 评论
X-NUCLEO-IHM08M1板文档中输出电流为15Arms,15Arms是怎么得出来的呢?
1621 浏览 1 评论
1080 浏览 2 评论
STM32F030F4 HSI时钟温度测试过不去是怎么回事?
728 浏览 2 评论
ST25R3916能否对ISO15693的标签芯片进行分区域写密码?
1678 浏览 2 评论
1937浏览 9评论
STM32仿真器是选择ST-LINK还是选择J-LINK?各有什么优势啊?
731浏览 4评论
STM32F0_TIM2输出pwm2后OLED变暗或者系统重启是怎么回事?
570浏览 3评论
595浏览 3评论
stm32cubemx生成mdk-arm v4项目文件无法打开是什么原因导致的?
553浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 00:50 , Processed in 1.209701 second(s), Total 82, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号