Skip to content

Conversation

@Igor-Misic
Copy link
Member

This is an example of IMLedBlink running from external flash in memory-mapped mode.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for running firmware from external flash on the STM32N6xx microcontroller in memory-mapped mode. It includes two new build targets and corresponding linker scripts to support both standard external flash execution and a variant with firmware signature support.

Key changes:

  • Added two new build targets: nucleo_n657x0_q_ext and nucleo_n657x0_q_ram
  • Created two new linker scripts for external flash configurations
  • Disabled XSPI2/XSPIM peripheral reset during system initialization to preserve external flash configuration

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
Makefile Added new build targets and rules for STM32N6xx external flash configuration
Linker/STM32N6xx_EXT_FLASH_SIGNATURE.ld New linker script for external flash with firmware signature section
Linker/STM32N6xx_EXT_FLASH.ld New linker script for external flash without signature section
LedBlink/STM32/Src/system_stm32n6xx.c Commented out XSPI2/XSPIM reset to preserve external flash initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IMProject IMProject deleted a comment from Copilot AI Nov 12, 2025
@IMProject IMProject deleted a comment from Copilot AI Nov 12, 2025
@Igor-Misic Igor-Misic force-pushed the support_for_external_flash branch from c18a919 to 33a4217 Compare November 12, 2025 17:16
@Igor-Misic Igor-Misic merged commit 56106c4 into master Nov 12, 2025
1 check passed
@Igor-Misic Igor-Misic deleted the support_for_external_flash branch November 12, 2025 17:17
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.

2 participants