-
GD32F407ZGT6硬件引脚可以完全替代STM32F407ZGT6吗?
以前项目的板子用的STM32F407ZGT6,现在要求主控芯片必须国产化,想直接替换成GD32F407ZGT6,不改变原先的外围电路,请问大佬们有尝试过的嘛,可以的话那就太省事了,我先给大家鞠个躬吧!!!
2024-08-28 49 -
GD32F303 使用KEIL仿真,JLINK连不上什么原因?
GD32F303使用KEIL仿真,JLINK连不上什么原因?需要怎么设置?
2024-01-24 65 -
keil怎么测量时间
测试
2023-09-14 47 -
GD32A503RDT3 ADC+DMA顺序转换问题,没有数据
voidrcu_config(void){/*enableGPIOclock*/rcu_periph_clock_enable(RCU_GPIOB);rcu_periph_clock_enable(RCU_GPIOE);/*enableADC0clock*/rcu_periph_clock_enable(RCU_ADC0);/*enableDMA0clock*/rcu_periph_clock_enable(RCU_DMA0);}/*!\briefconfiguretheGPIOperipheral\paramnone\param[out]none\retvalnone*/voidgpio_config(void){/*configtheGPIOasanalogmode*/gpio_mode_set(GPIOB,GPIO_MODE_ANALOG,GPIO_PUPD_NONE,GPIO_PIN_1);//GPIOB1,gpio_mode_set(GPIOE,GPIO_MODE_ANALOG,GPIO_PUPD_NONE,GPIO_PIN_13);}/*!\briefconfiguretheDMAperipheral\paramnone\param[out]none\retvalnone*/voiddma_config(void){/*ADC_DMA_channelconfiguration*/dma_parameter_structdma_data_parameter;/*ADCDMA_channelconfiguration*/dma_deinit(DMA0,DMA_CH0);/*initializeDMAsingledatamode*/dma_data_parameter.periph_addr=(uint32_t)(&ADC_RDATA(ADC0));//外设基地址dma_data_parameter.periph_inc=DMA_PERIPH_INCREASE_DISABLE;//内存地址增量模式dma_data_parameter.memory_addr=(uint32_t)adc_value;//数据存放地址dma_data_parameter.memory_inc=DMA_MEMORY_INCREASE_ENABLE;//内存地址增量模式dma_data_parameter.periph_width=DMA_PERIPHERAL_WIDTH_16BIT;//dma外设宽度16位,半字dma_data_parameter.memory_width=DMA_MEMORY_WIDTH_16BIT;dma_data_parameter.direction=DMA_PERIPHERAL_TO_MEMORY;//传输模式,外设到存储(接收)dma_data_parameter.number=2;//长度dma_data_parameter.priority=DMA_PRIORITY_HIGH;//优先级高dma_init(DMA0,DMA_CH0,&dma_data_parameter);dma_circulation_enable(DMA0,DMA_CH0);/*enableDMAchannel*/dma_channel_enable(DMA0,DMA_CH0);}/*!\briefconfiguretheADCperipheral\paramnone\param[out]none\retvalnone*/voidadc_config(void){/*configADCclock*/rcu_adc_clock_config(RCU_
2023-08-28 25 -
在GD32F450ZKT6上烧录STM32F407的代码,外部晶振无法起振
我在GD32F450ZKT6中烧录了STM32F407HAL库的代码,但是外部晶振无法起振,找不到原因,有兄弟们这样搞过的吗?烧录的是正点原子的探索者跑马灯程序。
2023-07-31 20 -
AT32F435VMT7基于FAL+QSPI驱动W25Q128。连续读取超过512K字节报错
用QSPI驱动W25Q128.驱动应该没问题。但是读取的时候,数据超过512K就会失败。512K以内就正常,1M就失败。我把FLASH分区,一个512K分区,一个1M分区,同时跑falbench。结果如下:```msh/>falbench4096yesErasing524288bytesdata,waiting...Erasebenchmarksuccess,totaltime:1.896S.Writing524288bytesdata,waiting...Writebenchmarksuccess,totaltime:2.048S.Reading524288bytesdata,waiting...Readbenchmarksuccess,totaltime:0.144S.msh/>falprobeupdate2Probedaflashpartition|update2|flash_dev:norflash0|offset:1048576|len:1048576|.msh/>falbench4096yesErasing1048576bytesdata,waiting...Erasebenchmarksuccess,totaltime:3.844S.Writing1048576bytesdata,waiting...Writebenchmarksuccess,totaltime:4.096S.Reading1048576bytesdata,waiting...5857283057f1ff.5857283058f2ff.5857283059f3ff.......5857284090faff.5857284091fbff.5857284092fcff.5857284093fdff.5857284094feff.DatacheckERROR!Pleasecheckyouflashbyothercommand.Readbenchmarkhasanerror.Errorcode:-1.Thisoperatehasanerror.Errorcode:-1.msh/>```不知道什么原因。而且分区擦除和写入都成功了,读取失败了!```msh/>sfprobeqspi20FindaWinbondflashchip.Sizeis16777216bytes.sf_cmdflashdeviceisinitializesuccess.ProbeSPIflashsf_cmdbySPIdeviceqspi20success.16MBsf_cmdiscurrentselecteddevice.msh/>sfbenchyesErasingthesf_cmd16777216bytesdata,waiting...Erasebenchmarksuccess,totaltime:41.318S.Writingthesf_cmd16777216bytesdata,waiting...Writebenchmarksuccess,totaltime:65.537S.Readingthesf_cmd16777216bytesdata,waiting...DatacheckERROR!Pleasecheckyouflashbyothercommand.Readsf_cmdfailed,alreadyrdfor788480bytes,read256eachtimeReadbenchmarkhasanerror.Errorcode:3.Thisflashoperatehasanerror.Errorcode:3.```
2023-05-22 22 -
GD32F407使用HAL库操作U盘
GD32F407,使用HAL库操作U盘,可以正常识别成功,读取文件时读取几包后必然失败,这是什么原因!使用STM32F407测试是,同一程序正常。如一个文件为100K大小,打开文件后每次读取1K数据,读取24包后必然失败。
2022-07-12 43