进来使用STM8S105K6做一个项目,代码编写比较顺利。使用St_link在线进行调试,运行正常,并达到了预期的功能。在线调试运行如下图所示: 既然在线调试动行一切正常,因此使用St visual programmer进行烧录。打开软件,设置好参数,并选择PROGRAM MEMORY选项卡。如下图所示: 设置完毕之后,打开编译生成的s19文件,打开时提示如下图: > 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!" ,如果不管这个提示,强行烧录,结果不能正常运行,请教一下各位大侠,这种情况该如何处理, |
人真是头大,这个不知该如何处理,难道又要用回AVR?
请问一下,这个该如何处理呢?
专程注册了一个号来感谢您的回答
专门注册一个号来感谢大佬