搜索
查看: 7387|回复: 7

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

[复制链接]

该用户从未签到

4

主题

10

帖子

0

蝴蝶豆

初级会员

最后登录
2017-12-28
发表于 2016-4-27 18:48:05 | 显示全部楼层 |阅读模式
进来使用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!"
,如果不管这个提示,强行烧录,结果不能正常运行,请教一下各位大侠,这种情况该如何处理,


回复

使用道具 举报

该用户从未签到

0

主题

1277

帖子

30

蝴蝶豆

金牌会员

最后登录
2020-7-4
发表于 2016-4-28 20:20:07 | 显示全部楼层
既然你都可以仿真正常运行了,就表示程序已经烧进去了啊,还用STVP折腾?
回复 支持 0 反对 1

使用道具 举报

该用户从未签到

4

主题

10

帖子

0

蝴蝶豆

初级会员

最后登录
2017-12-28
 楼主| 发表于 2016-4-27 20:42:14 | 显示全部楼层
liutaominshida 发表于 2016-4-27 19:01
请问一下,这个该如何处理呢?

人真是头大,这个不知该如何处理,难道又要用回AVR?
回复 支持 0 反对 1

使用道具 举报

该用户从未签到

37

主题

1121

帖子

0

蝴蝶豆

论坛元老

最后登录
2020-7-22
发表于 2016-4-27 18:56:37 | 显示全部楼层
          地址越界
回复 支持 反对

使用道具 举报

该用户从未签到

4

主题

10

帖子

0

蝴蝶豆

初级会员

最后登录
2017-12-28
 楼主| 发表于 2016-4-27 19:01:39 | 显示全部楼层

请问一下,这个该如何处理呢?
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

2

帖子

0

蝴蝶豆

新手上路

最后登录
2018-1-10
发表于 2017-5-18 22:25:45 | 显示全部楼层
为了回答你的问题专门大晚上注册了一个号,还开社区就是想告诉你。把option byte窗口调到program memory窗口再打开你的hex程序。我也是纠结了半天弄明白的。我是雷锋
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

2

帖子

0

蝴蝶豆

新手上路

最后登录
2018-1-10
发表于 2017-5-18 22:26:10 | 显示全部楼层
洗洗睡了
回复

使用道具 举报

该用户从未签到

0

主题

1

帖子

0

蝴蝶豆

新手上路

最后登录
2018-7-2
发表于 2018-7-2 14:02:08 | 显示全部楼层
stm8stm8 发表于 2017-5-18 22:25
为了回答你的问题专门大晚上注册了一个号,还开社区就是想告诉你。把option byte窗口调到program memory窗 ...

专程注册了一个号来感谢您的回答
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|论坛-意法半导体STM32/STM8技术社区

GMT+8, 2024-5-5 03:32 , Processed in 1.194552 second(s), 43 queries .

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

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