Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
IAR
STM32H7
env 生成的gd32H759IM MDK5工程,出现烧写错误
发布于 2025-02-27 17:58:15 浏览:30
订阅该版
icf文件修改了flash和ram大小 ```c /*-Editor annotation file-*/ /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ /*-Specials-*/ define symbol __ICFEDIT_intvec_start__ = 0x08000000; /*-Memory Regions-*/ define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_end__ = 0x083BFFFF; define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM_end__ = 0x2007FFFF; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x2000; define symbol __ICFEDIT_size_heap__ = 0x2000; /**** End of ICF editor section. ###ICF###*/ export symbol __ICFEDIT_region_RAM_end__; define symbol __region_RAM1_start__ = 0x10000000; define symbol __region_RAM1_end__ = 0x1000FFFF; define memory mem with size = 4G; define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; define region RAM1_region = mem:[from __region_RAM1_start__ to __region_RAM1_end__]; define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; initialize by copy { readwrite }; do not initialize { section .noinit }; keep { section FSymTab }; keep { section VSymTab }; keep { section .rti_fn* }; place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; place in ROM_region { readonly }; place in RAM_region { readwrite, block CSTACK, block HEAP }; place in RAM1_region { section .sram }; ``` ```c /* memory map */ MEMORY { CODE (rx) : ORIGIN = 0x08000000, LENGTH = 3840k DATA (xrw) : ORIGIN = 0x24000000, LENGTH = 1M ITCMRAM(xrw) : ORIGIN = 0x00000000, LENGTH = 512K DTCMRAM(xrw) : ORIGIN = 0x20000000, LENGTH = 512K } ENTRY(Reset_Handler) _system_stack_size = 0x200; SECTIONS { .text : { . = ALIGN(4); _stext = .; KEEP(*(.isr_vector)) /* Startup code */ . = ALIGN(4); *(.text) /* remaining code */ *(.text.*) /* remaining code */ *(.rodata) /* read-only data (constants) */ *(.rodata*) *(.glue_7) *(.glue_7t) *(.gnu.linkonce.t*) /* section information for finsh shell */ . = ALIGN(4); __fsymtab_start = .; KEEP(*(FSymTab)) __fsymtab_end = .; . = ALIGN(4); __vsymtab_start = .; KEEP(*(VSymTab)) __vsymtab_end = .; . = ALIGN(4); /* section information for initial. */ . = ALIGN(4); __rt_init_start = .; KEEP(*(SORT(.rti_fn*))) __rt_init_end = .; . = ALIGN(4); . = ALIGN(4); _etext = .; } > CODE = 0 /* .ARM.exidx is sorted, so has to go in its own output section. */ __exidx_start = .; .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) /* This is used by the startup in order to initialize the .data secion */ _sidata = .; } > CODE __exidx_end = .; /* .data section which is used for initialized data */ .data : AT (_sidata) { . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _sdata = . ; *(.data) *(.data.*) *(.gnu.linkonce.d*) . = ALIGN(4); /* This is used by the startup in order to initialize the .data secion */ _edata = . ; } >DATA .stack : { . = . + _system_stack_size; . = ALIGN(4); _estack = .; } >DATA __bss_start = .; .bss : { . = ALIGN(4); /* This is used by the startup in order to initialize the .bss secion */ _sbss = .; *(.bss) *(.bss.*) *(COMMON) . = ALIGN(4); /* This is used by the startup in order to initialize the .bss secion */ _ebss = . ; *(.bss.init) } > DATA __bss_end = .; _end = .; _sitcmram = LOADADDR(.itcmram); .itcmram : { . = ALIGN(4); _sitcmram = .; /* create a global symbol at itcmram start */ *(.itcmram) *(.itcmram*) . = ALIGN(4); _eitcmram = .; /* create a global symbol at itcmram end */ } >ITCMRAM AT> CODE _sdtcmram = LOADADDR(.dtcmram); .dtcmram : { . = ALIGN(4); _sdtcmram = .; /* create a global symbol at dtcmram start */ *(.dtcmram) *(.dtcmram*) . = ALIGN(4); _edtcmram = .; /* create a global symbol at dtcmram end */ } >DTCMRAM AT> CODE /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } .stab.excl 0 : { *(.stab.excl) } .stab.exclstr 0 : { *(.stab.exclstr) } .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } /* DWARF debug sections. * Symbols in the DWARF debugging sections are relative to the beginning * of the section so we begin them at 0. */ /* DWARF 1 */ .debug 0 : { *(.debug) } .line 0 : { *(.line) } /* GNU DWARF 1 extensions */ .debug_srcinfo 0 : { *(.debug_srcinfo) } .debug_sfnames 0 : { *(.debug_sfnames) } /* DWARF 1.1 and DWARF 2 */ .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } /* DWARF 2 */ .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } } /* input sections */ GROUP(libgcc.a libc.a libm.a libnosys.a) ```  我这边使用rtthread env 生成的gd32H759IM MDK5工程,出现GD32H7 的烧写算法(Flash Algorithm),导致部分地址空间无法被擦除或编程,但是用gd32官方例程烧写是正常运行的,这个时候要考虑什么问题
查看更多
1
个回答
默认排序
按发布时间排序
feedpig
4小时前
这家伙很懒,什么也没写!
mdk报错信息 ``` Program Size: Code=117760 RO-data=11592 RW-data=17208 ZI-data=52384 FromELF: creating hex file... ".\build\keil\Obj\GD32H7.axf" - 0 Error(s), 10 Warning(s). Build Time Elapsed: 00:00:24 Load "G:\\Warehouse\\GD32H7_rtthread\\Project\\build\\keil\\Obj\\GD32H7.axf" No Algorithm found for: 30000000H - 3000004FH No Algorithm found for: 30000160H - 300001AFH No Algorithm found for: 30000300H - 3000033BH No Algorithm found for: 30002100H - 3000213BH Partial Erase Done (areas with no algorithms skipped!) No Algorithm found for: 30000000H - 3000004FH No Algorithm found for: 30000160H - 300001AFH No Algorithm found for: 30000300H - 3000033BH No Algorithm found for: 30002100H - 3000213BH Partial Programming Done (areas with no algorithms skipped!) Partial Verify OK (areas with no algorithms skipped!) Application running ... Flash Load finished at 16:05:34 ```
撰写答案
登录
注册新账号
关注者
0
被浏览
30
关于作者
feedpig
这家伙很懒,什么也没写!
提问
3
回答
2
被采纳
0
关注TA
发私信
相关问题
1
反馈rtt串口驱动对低功耗串口lpuart1不兼容的问题
2
stm32h743 usb vcom无法启动
3
有stm32h7 adc驱动吗?
4
STM32H7可以用rtthread的通用bootloader吗?
5
STM32H750 FDCAN通信异常
6
将rt-thread工程移植到正点原子的H7板子上 RW_IRAM1如何修改
7
从文件系统中循环显示图片,该怎么操作?
8
STM32H7移植RT-thread卡在hardfault中
9
STM32H7 LWIP移植
10
stm32h743+dm9162 ping不通
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
rt-thread使用hwtimer不工作的问题
2
rt-thread中STM32L431 的LPUART1 open失败的原因
3
STM32L031 使用外部时钟卡死的问题,不能正常启动的原因
4
NXP MCXA156测评之 HWTIMER
5
MCAX-156 CAN测评
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
UART
ESP8266
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
GD32
ADC
flashDB
编译报错
socket
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
12
个答案
3
次被采纳
踩姑娘的小蘑菇
8
个答案
3
次被采纳
xiaorui
3
个答案
3
次被采纳
winfeng
2
个答案
2
次被采纳
三世执戟
12
个答案
1
次被采纳
本月文章贡献
arthurly888
5
篇文章
2
次点赞
catcatbing
3
篇文章
5
次点赞
jinchanchan
3
篇文章
5
次点赞
lizimu
2
篇文章
9
次点赞
alight
1
篇文章
5
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部