Skip to content

Conversation

@Daxidz
Copy link
Contributor

@Daxidz Daxidz commented Mar 21, 2025

Resolves #20
The work was based on this commit. It followed the idea but uses the Renesas OPSI example source code. It also defines a graphical_assets section in the OSPI, using the linker script fsp.ld. This section is then used by setting LV_ATTRIBUTE_LARGE_CONST like this:

#define LV_ATTRIBUTE_LARGE_CONST BSP_PLACE_IN_SECTION(".graphical_assets")

It places all images in OSPI by default.

@Daxidz
Copy link
Contributor Author

Daxidz commented Mar 21, 2025

@kisvegabor I let you check this addition. Note that some generated files are pushed here and will be removed in the next PR.

Copy link
Member

@kisvegabor kisvegabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't test it now, but by looking into it I have only one comment.

src/lv_conf.h Outdated
#define LV_ATTRIBUTE_LARGE_CONST
/*Attribute to mark large constant arrays for example font's bitmaps*/
/* Here we set all large const array in the graphical_assests section (in OSPI) */
#define LV_ATTRIBUTE_LARGE_CONST BSP_PLACE_IN_SECTION(".graphical_assets")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't set it by default as it affects the performance, but describe it in the README instead.

@Daxidz Daxidz force-pushed the add-ospi-support branch from b026a50 to fb3df41 Compare March 24, 2025 15:17
@Daxidz
Copy link
Contributor Author

Daxidz commented Mar 24, 2025

I added everything here. It uses lvgl master branch

Copy link
Member

@kisvegabor kisvegabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! @uLipe please take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add back OSPI support

2 participants