STM32N6xx: add support for running from external flash#9
Merged
Igor-Misic merged 1 commit intomasterfrom Nov 12, 2025
Merged
Conversation
6cb4c48 to
6239a2f
Compare
There was a problem hiding this comment.
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_extandnucleo_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.
c18a919 to
33a4217
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an example of IMLedBlink running from external flash in memory-mapped mode.