This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit cc5c6ba501983cf1d6a2aa0f3c7d1ebb8c5fe319
Author: dechao_gong <[email protected]>
AuthorDate: Wed Aug 26 15:25:03 2026 +0800

    arch/arm/rtl8721f: use RTL8721F_NOR flash profile for cmake
    
    The SDK ships no bare RTL8721F.rdev profile (unlike RTL8721Dx /
    RTL8720F); it splits by flash type into RTL8721F_NOR.rdev /
    RTL8721F_NAND.rdev.  The default (AMEBA_PY_SOC = RTL8721F) therefore
    failed the cmake `flash` target with "profile not found:
    RTL8721F.rdev".
    
    Override AMEBA_FLASH_PROFILE to RTL8721F_NOR to match the EVB flash
    type and boards/arm/rtl8721f/rtl8721f_evb/scripts/Make.defs.
    
    Assisted-by: Claude <[email protected]>
    Signed-off-by: dechao_gong <[email protected]>
---
 arch/arm/src/rtl8721f/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/src/rtl8721f/CMakeLists.txt 
b/arch/arm/src/rtl8721f/CMakeLists.txt
index a827f0553f9..203292656ed 100644
--- a/arch/arm/src/rtl8721f/CMakeLists.txt
+++ b/arch/arm/src/rtl8721f/CMakeLists.txt
@@ -97,6 +97,13 @@ set(AMEBA_CFG_FLASHFS ${CONFIG_RTL8721F_FLASH_FS})
 set(AMEBA_ROM_LDS ameba_rom_symbol_bcut_s.ld ameba_rom_symbol_bcut_wifi.ld
                   ameba_rom_symbol_bcut_os.ld ameba_rom_symbol_bcut.ld)
 
+# The SDK ships no bare RTL8721F.rdev flash profile (unlike RTL8721Dx /
+# RTL8720F); it splits by flash type into RTL8721F_NOR.rdev /
+# RTL8721F_NAND.rdev.  The EVB is NOR, so override the default (AMEBA_PY_SOC =
+# RTL8721F) accordingly -- matching
+# boards/arm/rtl8721f/rtl8721f_evb/scripts/Make.defs.
+set(AMEBA_FLASH_PROFILE RTL8721F_NOR)
+
 # Resolve AMEBA_SDK / asdk toolchain (provisioned by `. tools/ameba/env.sh`)
 # before the SDK-relative source lists below reference it.
 include(${AMEBA_COMMON}/cmake/ameba_sdk.cmake)

Reply via email to