Description
I’m trying to get a “Label example” to run on the stm32f746G-Discovery board.
I’m getting a HardFault somewhere inside lv_timer_handler().
I was using the master branch of LVGL and master branch of the stm32f746-port aswell. Not sure if I should use a specific version of them both?
So far I’m not using external SDRAM, so I did some modifications to the LVGL code, for example change my_fb[] to use the one stored in internal RAM, and changed LV_MEM_SIZE to a smaller size.
What can be the issue with lv_timer_handler()?
I should also mention that I call lv_tick_inc(1) in SysTick_Handler()
What MCU/Processor/Board and compiler are you using?
STM32F746G-Discovery
What do you want to achieve?
Get example code to run on the device.
What have you tried so far?
Followed a course (https://www.udemy.com/course/mastering-microcontroller-stm32-ltdc-lcd-tft-lvgl/) on Udemy to get some teoretical background on LCD/Graphics programming.
I’m using VSCode and CMake based build system, and generating the HAL layer from STMCubeMX. Both I2C3 and LCD peripherals are enabled.
Code to reproduce
Add the relevant code snippets here.
The code block(s) should be between ```c
and ```
tags:
/*int main(void)
{
stm32f7_cubemx_init();
system_init();
lv_init();
tft_init();
touchpad_init();
lv_example_label_1();
while (1)
{
my_printf("--hello from stm32f7--");
HAL_Delay(50);
lv_timer_handler();
my_printf("lv_timer_handler");
}
}*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.