你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

ST-Link无法烧录,提示Address 0x79 is out of range and is ignored!

[复制链接]
liutaominshida 提问时间:2016-4-27 18:48 /
进来使用STM8S105K6做一个项目,代码编写比较顺利。使用St_link在线进行调试,运行正常,并达到了预期的功能。在线调试运行如下图所示:
1.jpg
    既然在线调试动行一切正常,因此使用St visual programmer进行烧录。打开软件,设置好参数,并选择PROGRAM MEMORY选项卡。如下图所示:
2.jpg
  设置完毕之后,打开编译生成的s19文件,打开时提示如下图:
3.jpg
> Loading file E:\WIFI\software\LightControl\Debug\lightcontrol.s19 in PROGRAM MEMORY area  ...
FILE : line 300: Address 0x0 is out of range and is ignored!
FILE : line 300: Address 0x1 is out of range and is ignored!
FILE : line 300: Address 0x2 is out of range and is ignored!
FILE : line 300: Address 0x3 is out of range and is ignored!
FILE : line 300: Address 0x4 is out of range and is ignored!
FILE : line 300: Address 0x5 is out of range and is ignored!
FILE : line 300: Address 0x6 is out of range and is ignored!
FILE : line 300: Address 0x7 is out of range and is ignored!
FILE : line 300: Address 0x8 is out of range and is ignored!
FILE : line 300: Address 0x9 is out of range and is ignored!
FILE : line 300: Address 0xA is out of range and is ignored!
FILE : line 300: Address 0xB is out of range and is ignored!
FILE : line 300: Address 0xC is out of range and is ignored!
FILE : line 300: Address 0xD is out of range and is ignored!
FILE : line 300: Address 0xE is out of range and is ignored!
FILE : line 300: Address 0xF is out of range and is ignored!
FILE : line 300: Address 0x10 is out of range and is ignored!
FILE : line 300: Address 0x11 is out of range and is ignored!
FILE : line 300: Address 0x12 is out of range and is ignored!
FILE : line 300: Address 0x13 is out of range and is ignored!
FILE : line 300: Address 0x14 is out of range and is ignored!
FILE : line 300: Address 0x15 is out of range and is ignored!
FILE : line 300: Address 0x16 is out of range and is ignored!
FILE : line 300: Address 0x17 is out of range and is ignored!
FILE : line 300: Address 0x18 is out of range and is ignored!
FILE : line 300: Address 0x19 is out of range and is ignored!
FILE : line 300: Address 0x1A is out of range and is ignored!
FILE : line 300: Address 0x1B is out of range and is ignored!
FILE : line 300: Address 0x1C is out of range and is ignored!
FILE : line 300: Address 0x1D is out of range and is ignored!
FILE : line 300: Address 0x1E is out of range and is ignored!
FILE : line 300: Address 0x1F is out of range and is ignored!
FILE : line 301: Address 0x20 is out of range and is ignored!
FILE : line 301: Address 0x21 is out of range and is ignored!
FILE : line 301: Address 0x22 is out of range and is ignored!
FILE : line 301: Address 0x23 is out of range and is ignored!
FILE : line 301: Address 0x24 is out of range and is ignored!
FILE : line 301: Address 0x25 is out of range and is ignored!
FILE : line 301: Address 0x26 is out of range and is ignored!
FILE : line 301: Address 0x27 is out of range and is ignored!
FILE : line 301: Address 0x28 is out of range and is ignored!
FILE : line 301: Address 0x29 is out of range and is ignored!
FILE : line 301: Address 0x2A is out of range and is ignored!
FILE : line 301: Address 0x2B is out of range and is ignored!
FILE : line 301: Address 0x2C is out of range and is ignored!
FILE : line 301: Address 0x2D is out of range and is ignored!
FILE : line 301: Address 0x2E is out of range and is ignored!
FILE : line 301: Address 0x2F is out of range and is ignored!
FILE : line 301: Address 0x30 is out of range and is ignored!
FILE : line 301: Address 0x31 is out of range and is ignored!
FILE : line 301: Address 0x32 is out of range and is ignored!
FILE : line 301: Address 0x33 is out of range and is ignored!
FILE : line 301: Address 0x34 is out of range and is ignored!
FILE : line 301: Address 0x35 is out of range and is ignored!
FILE : line 301: Address 0x36 is out of range and is ignored!
FILE : line 301: Address 0x37 is out of range and is ignored!
FILE : line 301: Address 0x38 is out of range and is ignored!
FILE : line 301: Address 0x39 is out of range and is ignored!
FILE : line 301: Address 0x3A is out of range and is ignored!
FILE : line 301: Address 0x3B is out of range and is ignored!
FILE : line 301: Address 0x3C is out of range and is ignored!
FILE : line 301: Address 0x3D is out of range and is ignored!
FILE : line 301: Address 0x3E is out of range and is ignored!
FILE : line 301: Address 0x3F is out of range and is ignored!
FILE : line 302: Address 0x40 is out of range and is ignored!
FILE : line 302: Address 0x41 is out of range and is ignored!
FILE : line 302: Address 0x42 is out of range and is ignored!
FILE : line 302: Address 0x43 is out of range and is ignored!
FILE : line 302: Address 0x44 is out of range and is ignored!
FILE : line 302: Address 0x45 is out of range and is ignored!
FILE : line 302: Address 0x46 is out of range and is ignored!
FILE : line 302: Address 0x47 is out of range and is ignored!
FILE : line 302: Address 0x48 is out of range and is ignored!
FILE : line 302: Address 0x49 is out of range and is ignored!
FILE : line 302: Address 0x4A is out of range and is ignored!
FILE : line 302: Address 0x4B is out of range and is ignored!
FILE : line 302: Address 0x4C is out of range and is ignored!
FILE : line 302: Address 0x4D is out of range and is ignored!
FILE : line 302: Address 0x4E is out of range and is ignored!
FILE : line 302: Address 0x4F is out of range and is ignored!
FILE : line 302: Address 0x50 is out of range and is ignored!
FILE : line 302: Address 0x51 is out of range and is ignored!
FILE : line 302: Address 0x52 is out of range and is ignored!
FILE : line 302: Address 0x53 is out of range and is ignored!
FILE : line 302: Address 0x54 is out of range and is ignored!
FILE : line 302: Address 0x55 is out of range and is ignored!
FILE : line 302: Address 0x56 is out of range and is ignored!
FILE : line 302: Address 0x57 is out of range and is ignored!
FILE : line 302: Address 0x58 is out of range and is ignored!
FILE : line 302: Address 0x59 is out of range and is ignored!
FILE : line 302: Address 0x5A is out of range and is ignored!
FILE : line 302: Address 0x5B is out of range and is ignored!
FILE : line 302: Address 0x5C is out of range and is ignored!
FILE : line 302: Address 0x5D is out of range and is ignored!
FILE : line 302: Address 0x5E is out of range and is ignored!
FILE : line 302: Address 0x5F is out of range and is ignored!
FILE : line 303: Address 0x60 is out of range and is ignored!
FILE : line 303: Address 0x61 is out of range and is ignored!
FILE : line 303: Address 0x62 is out of range and is ignored!
FILE : line 303: Address 0x63 is out of range and is ignored!
FILE : line 303: Address 0x64 is out of range and is ignored!
FILE : line 303: Address 0x65 is out of range and is ignored!
FILE : line 303: Address 0x66 is out of range and is ignored!
FILE : line 303: Address 0x67 is out of range and is ignored!
FILE : line 303: Address 0x68 is out of range and is ignored!
FILE : line 303: Address 0x69 is out of range and is ignored!
FILE : line 303: Address 0x6A is out of range and is ignored!
FILE : line 303: Address 0x6B is out of range and is ignored!
FILE : line 303: Address 0x6C is out of range and is ignored!
FILE : line 303: Address 0x6D is out of range and is ignored!
FILE : line 303: Address 0x6E is out of range and is ignored!
FILE : line 303: Address 0x6F is out of range and is ignored!
FILE : line 303: Address 0x70 is out of range and is ignored!
FILE : line 303: Address 0x71 is out of range and is ignored!
FILE : line 303: Address 0x72 is out of range and is ignored!
FILE : line 303: Address 0x73 is out of range and is ignored!
FILE : line 303: Address 0x74 is out of range and is ignored!
FILE : line 303: Address 0x75 is out of range and is ignored!
FILE : line 303: Address 0x76 is out of range and is ignored!
FILE : line 303: Address 0x77 is out of range and is ignored!
FILE : line 303: Address 0x78 is out of range and is ignored!
FILE : line 303: Address 0x79 is out of range and is ignored!
FILE : line 303: Address 0x7A is out of range and is ignored!
FILE : line 303: Address 0x7B is out of range and is ignored!
FILE : line 303: Address 0x7C is out of range and is ignored!
FILE : line 303: Address 0x7D is out of range and is ignored!
FILE : line 303: Address 0x7E is out of range and is ignored!
FILE : line 303: Address 0x7F is out of range and is ignored!
FILE : line 304: Address 0x80 is out of range and is ignored!
FILE : line 304: Address 0x81 is out of range and is ignored!
FILE : line 304: Address 0x82 is out of range and is ignored!
FILE : line 304: Address 0x83 is out of range and is ignored!
FILE : line 304: Address 0x84 is out of range and is ignored!
FILE : line 304: Address 0x85 is out of range and is ignored!
FILE : line 304: Address 0x86 is out of range and is ignored!
FILE : line 304: Address 0x87 is out of range and is ignored!
FILE : line 304: Address 0x88 is out of range and is ignored!
FILE : line 304: Address 0x89 is out of range and is ignored!
FILE : line 304: Address 0x8A is out of range and is ignored!
< File successfully loaded. File Checksum 0xE2B74

----------------------------------------------------------------------------------------------------
也就是说从0x0~0x8A这一部分溢出,从map文件上看
----------------------------------------------------------------------------------------------------
Map of Debug\lightcontrol.sm8 from link file Debug\lightcontrol.lkf - Wed Apr 27 18:30:03 2016


                               --------
                               Segments
                               --------

start 00008080 end 0000835b length   731 segment .const
start 0000835b end 0000a5a8 length  8781 segment .text
start 00004000 end 00004000 length     0 segment .eeprom
start 00000000 end 0000008b length   139 segment .bsct
start 0000008b end 00000095 length    10 segment .ubsct
start 00000095 end 00000095 length     0 segment .bit
start 00000095 end 00000095 length     0 segment .share
start 00000100 end 00000100 length     0 segment .data
start 00000100 end 00000100 length     0 segment .bss
start 00000000 end 0000dd81 length 56705 segment .debug
start 00000000 end 00001274 length  4724 segment .info.
start 00008000 end 00008080 length   128 segment .const

----------------------------------------------------------------------------------------------------
这一部分是定义的全局变量存放区,而全局变量的存放区域从lkf文件来看:
-----------------------------------------------------------------------------------------------------
#
# Please refer to Cosmic User Manuals before any modification.
# Note that errors in editing this file may have unpredictable results when
# running STVD.

# Segment configuration - section reserved for STVD
#<BEGIN SEGMENT_CONF>
# Segment Code,Constants:
+seg .const -b 0x8080 -m 0x7f80 -n .const -it
+seg .text -a .const -n .text
# Segment Eeprom:
+seg .eeprom -b 0x4000 -m 0x400 -n .eeprom
# Segment Zero Page:
+seg .bsct -b 0x0 -m 0x100 -n .bsct
+seg .ubsct -a .bsct -n .ubsct
+seg .bit -a .ubsct -n .bit -c
+seg .share -a .bit -n .share -is
# Segment Ram:
+seg .data -b 0x100 -m 0x500 -n .data
+seg .bss -a .data -n .bss
#<END SEGMENT_CONF>

-------------------------------------------------------------------------------------
全局变量存放区应该是从0x0~0x100,那么应该说我定的全局变量没有超出其指定范围,为什么现在打开烧录文件却提示"out of range and is ignored!"
,如果不管这个提示,强行烧录,结果不能正常运行,请教一下各位大侠,这种情况该如何处理,


收藏 1 评论8 发布时间:2016-4-27 18:48

举报

8个回答
zcl201207 回答时间:2016-4-28 20:20:07
既然你都可以仿真正常运行了,就表示程序已经烧进去了啊,还用STVP折腾?
liutaominshida 回答时间:2016-4-27 20:42:14
liutaominshida 发表于 2016-4-27 19:01
请问一下,这个该如何处理呢?

人真是头大,这个不知该如何处理,难道又要用回AVR?
suoma 回答时间:2016-4-27 18:56:37
          地址越界
liutaominshida 回答时间:2016-4-27 19:01:39

请问一下,这个该如何处理呢?
stm8stm8 回答时间:2017-5-18 22:25:45
为了回答你的问题专门大晚上注册了一个号,还开社区就是想告诉你。把option byte窗口调到program memory窗口再打开你的hex程序。我也是纠结了半天弄明白的。我是雷锋
stm8stm8 回答时间:2017-5-18 22:26:10
洗洗睡了
a吧森E文 回答时间:2018-7-2 14:02:08
stm8stm8 发表于 2017-5-18 22:25
为了回答你的问题专门大晚上注册了一个号,还开社区就是想告诉你。把option byte窗口调到program memory窗 ...

专程注册了一个号来感谢您的回答
慎独丶丶丶 回答时间:2023-9-12 17:38:01

stm8stm8 发表于 2017-5-18 22:25
为了回答你的问题专门大晚上注册了一个号,还开社区就是想告诉你。把option byte窗口调到program memory窗 ...

专门注册一个号来感谢大佬

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版