硬汉嵌入式论坛

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

[STM32H7] stm32-v7.sct 加载后,编辑出错----

[复制链接]

2

主题

31

回帖

37

积分

新手上路

不抛弃不放弃

积分
37
发表于 2022-6-4 18:37:38 | 显示全部楼层 |阅读模式
一,加载文件内容如下
LR_IROM1 0x08000000 0x00200000  {    ; load region size_region
  ER_IROM1 0x08000000 0x00200000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }

  RW_IRAM1 0x20000000 0x00020000  {  ; RW data - 128KB DTCM
   .ANY (+RW +ZI)
  }

  RW_IRAM2 0x24000000 0x00080000  {  ; RW data - 512KB AXI SRAM
   *(.RAM_D1)
  }

  RW_IRAM3 0x30000000 0x00048000  {  ; RW data - 128KB SRAM1(0x30000000) + 128KB SRAM2(0x3002 0000) + 32KB SRAM3(0x30040000)
   *(.RAM_D2)
  }

  RW_IRAM4 0x38000000 0x00010000  {  ; RW data - 64KB SRAM4(0x38000000)
   *(.RAM_D3)
  }

LR_ROM1 0x90000000 0x02000000  {
  ER_ROM1 0x90000000 0x02000000  {  ; load address = execution address
    WeightMachine_resources.o (+RO)
  }

}


二,现在有几个变化要单独定论到别区域的内存中,定义如下
#define  BUF_MAX                   5120
__attribute__((section (".RAM_D2"))) uint8_t    gEspBuf[BUF_MAX];

         ring_buf_t                Esp32_Ring;
static   ProtocolHead_type         ProtocolHead;
static   AnalysisRunStaust_type    AnalysisRunStaust;
#define  ERROR_CODE                0xffff
#define  MAX_PROTOCOL_LENGTH       BUF_MAX


#define  CMD_DATA_BUF_SIZE         6*1024
__attribute__((section (".RAM_D2"))) uint8_t    Receive_buffer[CMD_DATA_BUF_SIZE];


static Device_RequestInfor         DeviceRequestInfor;
static Server_RespInfor            ServerRespInfor;


三,用的芯片是STM32H759XB,工程用的开发板综合DEMO,启动文件是startup_stm32h743xx.s
    现在编译出现当前的问题

.\stm32-v7.sct(29): error: L6231E: Missing module selector.

看网上查说--要更换启动文件(startup_stm32h743xx.s)。

各位大佬--你们什么斛决当前的问题--谢谢




回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106978
QQ
发表于 2022-6-5 10:00:49 | 显示全部楼层
分享工程到百度云看下。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-12 17:18 , Processed in 0.273839 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

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