开发板
STM32H750VBT6通用开发板
开发环境
RT-Thread Studio + Cubemx
首先是在cubemx中配置接口和参数配置
然后在生成代码中拷贝stm32h7xx_hal_msp.c文件中的hal初始化代码,到board.c文件中
static void HAL_FMC_MspInit(void)
void HAL_SRAM_MspInit(SRAM_HandleTypeDef hsram)
static void HAL_FMC_MspDeInit(void)
void HAL_SRAM_MspDeInit(SRAM_HandleTypeDef hsram)
同时要使能stm32h7xx_hal_conf.h中的宏定义
接下来要拷贝生成代码中的main.c文件中的static void MX_FMC_Init(void)到LCD的驱动文件中。
拷贝完成之后参考大佬的贴子进行一些修改。
接下来就是照着贴子中的代码移植到H750VBT6的项目中
编译通过,下载到板子上,结果卡在读取芯片ID上了,正确的读取应该是0x8000,结果读取到的是0x8080
或者是0x0000
经过查询论坛已经在QQ交流群咨询,总算找到了答案。再此要感谢QQ交流群中的各位大佬给我提供及时的解答和帮助。
原来是要使能MPU和CACHE,MPU具体代码配置如下:
经过这样配置之后总算可以正常的读取到ID了
不过在数据总线测试一项却还是错误,这个看来还需要完善。但是已经能正确的刷屏从蓝色了。
接下来要添加lvgl的软件包,记得要把libc也选上。
Lvgl的配置如下:
保存退出,编译通过,下载到开发板上成功点亮demo.
相关文章









