硬汉嵌入式论坛

 找回密码
 立即注册
查看: 880|回复: 1
收起左侧

[SPI/QSPI] stm32h7r7外挂FLASH但是报错超FLASH大小

[复制链接]

4

主题

3

回帖

15

积分

新手上路

积分
15
发表于 2024-10-8 21:32:55 | 显示全部楼层 |阅读模式
开发板是stm32h7r7,芯片64KBFLASH,外挂32MBFLASH,我想显示一张图片,大小是175KB,但是编译会报错
..\..\Output\atk_h7r7.axf: Error: L6220E: Load region LR_IROM1 size (195192 bytes) exceeds limit (65536 bytes). Region contains 275 bytes of padding and 90 bytes of veneers (total 365 bytes of linker generated content).
..\..\Output\atk_h7r7.axf: Error: L6220E: Execution region ER_IROM1 size (195176 bytes) exceeds limit (65536 bytes). Region contains 256 bytes of padding and 90 bytes of veneers (total 346 bytes of linker generated content).
从报错来看应该是超出FLASH大小了,但是我用的正点原子的分散加载文件,这张照片应该存在外部FLASH才对,不应该出现超大小的问题才对。
下面是分散文件。求大佬帮助。
LR_IROM1 0x08000000 0x00010000 {
    ER_IROM1 0x08000000 0x00010000 {
        *.o (RESET, +First)
        *(InRoot$$Sections)
        .ANY (+XO)

        startup_stm32h7r7xx.o
        system_stm32h7rsxx.o
        __dczerorl.o
        __dczerorl2.o
        main.o
        sys.o
        delay.o
        usart.o
        stm32h7rsxx_hal.o
        stm32h7rsxx_hal_cortex.o
        stm32h7rsxx_it.o
        memseta.o
        stm32h7rsxx_hal_pwr_ex.o
        stm32h7rsxx_hal_rcc.o
        stm32h7rsxx_hal_xspi.o
        stm32h7rsxx_hal_gpio.o
        stm32h7rsxx_hal_rcc_ex.o

        norflash.o
        norflash_mx25um25645g.o
        norflash_w25q128_dual.o
        norflash_ex.o
    }
    RW_IRAM1 0x24000000 0x00072000 {
        .ANY (+RW +ZI)
    }
}

LR_ROM1 0x90000000 0x02000000 {
    ER_ROM1 0x90000000 0x02000000 {
        .ANY (+RO)
    }
}

回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
117564
QQ
发表于 2024-10-9 09:21:05 | 显示全部楼层
考虑采用我此贴的玩法,更简单易用。

爽,一种非常给力的STM32H7内部Flash和QSPI Flash混合运行程序的方式,不再需要用户单独制作BOOT和APP
https://forum.anfulai.cn/forum.p ... 1011&fromuid=58
(出处: 硬汉嵌入式论坛)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-14 22:18 , Processed in 0.038062 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表