Skip to content

Add OSPI Flash support#2

Open
jeremy-baker wants to merge 3 commits intolvgl:masterfrom
jeremy-baker:ospi_flash_support
Open

Add OSPI Flash support#2
jeremy-baker wants to merge 3 commits intolvgl:masterfrom
jeremy-baker:ospi_flash_support

Conversation

@jeremy-baker
Copy link
Copy Markdown
Contributor

@jeremy-baker jeremy-baker commented Dec 15, 2025

Summary by cubic

Adds OSPI flash support on RA8D2 EK, including driver initialization at startup and switching the flash from SPI to OPI mode. Also updates clocks, pin security, upgrades to FSP 6.3.0, and adds a J-Link reset script for reliable programming.

  • New Features

    • Integrated OSPI-B driver with new modules (ospi_b_ep.* and ospi_b_commands.*).
    • Initialized OSPI in hal_entry.c, reads device ID, then switches the flash to OPI mode.
    • Added RA8x1_Reset_OSPI.JLinkScript to reset the flash before programming.
    • Configured OCTACLK from PLL2P (div/3) and secured OSPI-related pins.
    • Improved cache handling: added D-Cache clean+invalidate for Cortex-M85 in src/dave2d_cache_management.c.
    • Moved LVGL work memory to internal SRAM; removed custom SDRAM placement and reduced size.
  • Migration

    • Use the new J-Link script in your launch config to ensure the flash reset sequence runs.
    • Ensure OCTACLK and OSPI pins are enabled in your board config.
    • After first boot, the flash is set to OPI; subsequent operations should use OPI mode.

Written for commit 5f520fa. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 18 files

remove unmodified FSP files from being tracked.
Remove custom placement of LVGL work memory (in SDRAM), use default
placement in internal memory, reduce the amount of memory to fit in
internal SRAM
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.

1 participant