There is a problem with the buffer allocation for the examples:
Code: Select all
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
Code: Select all
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height * sizeof(uint16_t));
With this fix, it works well even without D_CACHE_DISABLED in build_opt.h.
I will not provide a PR as it is not an official repository.