探索者STM32F407开发板+ V2正点原子7寸电容触摸液晶屏TFTLCD模块(5点触摸800X480),跑标准例程正常,跑EMWIN扩展例程\EMWIN实验1STemWin无操作系统移植,提示错误“..\HARDWARE\SRAM\sram.c(31):error: #268: declaration may not appearafter executable statement in block”。 把 voidFSMC_SRAM_Init(void) { XmRamInit(); //3õê¼»ˉXMRAM 20191024 delay_us(100); GPIO_InitTypeDef GPIO_InitStructure; FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStructure; FSMC_NORSRAMTimingInitTypeDef readWriteTiming; 改为: voidFSMC_SRAM_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; FSMC_NORSRAMInitTypeDef FSMC_NORSRAMInitStructure; FSMC_NORSRAMTimingInitTypeDef readWriteTiming; XmRamInit(); //3õê¼»ˉXMRAM 20191024 delay_us(100); 后编译通过。 下载后白屏。 求解答,谢谢!
|