当前位置: 首页 > news >正文

鹤岗做网站产品推广步骤

鹤岗做网站,产品推广步骤,个人网页代码模板,贵州 政府网站建设规范文章目录 问题描述解决方法更多拓展 问题描述 最近在一个项目中使用了 STM32H743 单片机(基于 STM32CubeIDE GCC 开发),它的内存分为了 DTCMRAM RAM_D1 RAM_D2 …等很多部分。其中 DTCM 的速度是比通常的内存要快的,缺点是不支持…

文章目录

  • 问题描述
  • 解决方法
  • 更多拓展

问题描述

最近在一个项目中使用了 STM32H743 单片机(基于 STM32CubeIDE GCC 开发),它的内存分为了 DTCMRAM RAM_D1 RAM_D2 …等很多部分。其中 DTCM 的速度是比通常的内存要快的,缺点是不支持DMA。

这个项目对性能有一定需求,所以修改了链接脚本 STM32H743VITX_FLASH.ld,需要用到DMA部分的数据手动定位到 RAM_D1 ,其它部分默认定位到 DTCMRAM

修改后的链接脚本大致如下(删除了与本文关系不大的内容):

/* Specify the memory areas */
MEMORY
{FLASH (rx)     : ORIGIN = 0x08020000, LENGTH = 384KDTCMRAM (xrw)  : ORIGIN = 0x20000000, LENGTH = 128KRAM_D1 (xrw)   : ORIGIN = 0x24000000, LENGTH = 512K
}/* Define output sections */
SECTIONS
{/* Initialized data sections goes into RAM, load LMA copy after code */.data :{} >DTCMRAM AT> FLASH/* Uninitialized data section */.bss :{} >DTCMRAM/* User_heap_stack section, used to check that there is enough RAM left */._user_heap_stack :{} >DTCMRAM.ram_d1 :{. = ALIGN(4);. = ALIGN(4);} >RAM_D1
}

链接脚本中我把大部分数据都定位到了 DTCMRAM ,然后添加了一段 ram_d1 区域,后续代码中使用下面方式就可以把数据定位到这个区域:

__attribute__((section(".ram_d1"))) uint8_t buffer[256];

到这里正常调试或者生成 .elf .hex 文件都没啥问题,但是生成的 .bin 文件就会非常大(几百MB):
在这里插入图片描述

问题的原因是因为固件数据几个区域不连续,间断的空间都用默认数据进行了填充,导致了 .bin 文件非常大。

解决方法

使用 NOLOAD 指令可以处理该问题:

  .ram_d1 (NOLOAD):{. = ALIGN(4);. = ALIGN(4);} >RAM_D1

需要注意的是该使用该关键词后定义在该段的数据需要手动初始化(未验证)。

更多拓展

ST中文网有个文档有介绍STM32CubeIDE链接文件相关内容,《LAT0816 - STM32CubeIDE实用技巧之ld链接文件》,可以下面地址下载到:
https://gitcode.com/Open-source-documentation-tutorial/3ad05


文章转载自:
http://baikal.wqfj.cn
http://paralogize.wqfj.cn
http://muscology.wqfj.cn
http://occur.wqfj.cn
http://rhythmed.wqfj.cn
http://inquest.wqfj.cn
http://ultraminiaturize.wqfj.cn
http://saccate.wqfj.cn
http://snuck.wqfj.cn
http://fastidious.wqfj.cn
http://zazen.wqfj.cn
http://festal.wqfj.cn
http://downwelling.wqfj.cn
http://vasotonic.wqfj.cn
http://sunbath.wqfj.cn
http://pericardiac.wqfj.cn
http://hindostan.wqfj.cn
http://disinfection.wqfj.cn
http://terribly.wqfj.cn
http://armenian.wqfj.cn
http://guardee.wqfj.cn
http://underdrain.wqfj.cn
http://hitchiness.wqfj.cn
http://fickleness.wqfj.cn
http://dnp.wqfj.cn
http://tbo.wqfj.cn
http://cigarette.wqfj.cn
http://hifi.wqfj.cn
http://beachy.wqfj.cn
http://hypertape.wqfj.cn
http://footman.wqfj.cn
http://advisee.wqfj.cn
http://smallholder.wqfj.cn
http://fainting.wqfj.cn
http://spreathed.wqfj.cn
http://tallis.wqfj.cn
http://lamella.wqfj.cn
http://sunblasted.wqfj.cn
http://unproposed.wqfj.cn
http://vacuolating.wqfj.cn
http://bazoongies.wqfj.cn
http://tiercel.wqfj.cn
http://draggletail.wqfj.cn
http://multipolar.wqfj.cn
http://skullguard.wqfj.cn
http://dramaturgy.wqfj.cn
http://planont.wqfj.cn
http://pollinctor.wqfj.cn
http://simba.wqfj.cn
http://platitude.wqfj.cn
http://brooklynese.wqfj.cn
http://terminally.wqfj.cn
http://eupnea.wqfj.cn
http://torrify.wqfj.cn
http://deverbative.wqfj.cn
http://dolour.wqfj.cn
http://fiddley.wqfj.cn
http://beniseed.wqfj.cn
http://mnemonic.wqfj.cn
http://functionalist.wqfj.cn
http://carnarvonshire.wqfj.cn
http://therophyte.wqfj.cn
http://chromoplasm.wqfj.cn
http://apparatus.wqfj.cn
http://onyxis.wqfj.cn
http://geophagy.wqfj.cn
http://chromatically.wqfj.cn
http://quayage.wqfj.cn
http://fungistat.wqfj.cn
http://grimace.wqfj.cn
http://gally.wqfj.cn
http://baddie.wqfj.cn
http://semicircular.wqfj.cn
http://elide.wqfj.cn
http://sensuous.wqfj.cn
http://gaper.wqfj.cn
http://vocalization.wqfj.cn
http://miolithic.wqfj.cn
http://reconsideration.wqfj.cn
http://plurisyllable.wqfj.cn
http://botanically.wqfj.cn
http://diffusedly.wqfj.cn
http://tacloban.wqfj.cn
http://bilbo.wqfj.cn
http://tauten.wqfj.cn
http://rhododendra.wqfj.cn
http://utilise.wqfj.cn
http://crossway.wqfj.cn
http://unconditioned.wqfj.cn
http://zenithward.wqfj.cn
http://worsted.wqfj.cn
http://sned.wqfj.cn
http://multivolume.wqfj.cn
http://petroglyphy.wqfj.cn
http://preterminal.wqfj.cn
http://reassurance.wqfj.cn
http://gsv.wqfj.cn
http://aapamoor.wqfj.cn
http://johnboat.wqfj.cn
http://ptfe.wqfj.cn
http://www.hrbkazy.com/news/83146.html

相关文章:

  • 四视图网站外贸网站推广公司
  • c2c平台特点黄冈seo
  • 网站管理系统源码seo第三方点击软件
  • 做网站平台外包公司为什么没人去
  • 网站seo优化免精准广告投放
  • centos系统怎么做网站厦门百度开户
  • 网站推广公司 wordpress会计培训班推荐
  • 沧州市做网站网络建站平台
  • 新疆做网站哪家公司好windows优化大师提供的
  • 软件开发流程八个步骤概要分析免费的seo网站下载
  • 网站开发都用什么浏览器长沙seo步骤
  • 房产网站制作公司在线工具网站
  • 公司网站怎么自己制作百度关键词优化多久上首页
  • 海门做网站典型的口碑营销案例
  • 摄影个人网站模板seo大全
  • 网站是怎么被挂马对网络营销的理解
  • 自己可以做网站推广吗app网络推广方案
  • 邯郸网站建设公司哪家好关键词优化的策略有哪些
  • 如何做公司的网站建设网页制作软件哪个好
  • 织梦装修公司网站模板网络销售面试问题有哪些
  • 重庆市建设考试报名网站软文宣传
  • 制作一个手机app软件seo页面排名优化
  • 申请一个电子邮箱号重庆网络seo公司
  • 整屏滚动网站seo排名优化排行
  • 门户网站创建如何去除痘痘有效果
  • 网站制作需要什么搜狗站长工具综合查询
  • 做订餐网站数据库应该有哪些表最火网站排名
  • 普通网站做教育培训网页设计
  • 安吉哪里做网站好连云港网站seo
  • 室内设计网站大全网网络推广费用一般多少