{"id":43,"date":"2020-11-30T18:39:29","date_gmt":"2020-11-30T10:39:29","guid":{"rendered":"http:\/\/[240e:33d:129:4cc0:265e:beff:fe51:adfd]\/WordPress\/?p=43"},"modified":"2021-10-07T17:37:49","modified_gmt":"2021-10-07T09:37:49","slug":"iar%e7%bc%96%e8%af%91zigbee%e5%87%ba%e7%8e%b0%e9%97%ae%e9%a2%98undefined-external-v1-referred-in-af","status":"publish","type":"post","link":"https:\/\/www.jinhaihan.top\/WordPress\/iar%e7%bc%96%e8%af%91zigbee%e5%87%ba%e7%8e%b0%e9%97%ae%e9%a2%98undefined-external-v1-referred-in-af\/","title":{"rendered":"IAR\u7f16\u8bd1zigbee\u51fa\u73b0\u95ee\u9898Undefined external V1 referred in AF"},"content":{"rendered":"<p>\u5347\u7ea7IAR \u4e4b\u540e\uff0c\u6253\u5f00\u65e7\u5de5\u7a0b\uff0c\u7f16\u8bd1\u7684\u65f6\u5019\u4f1a\u51fa\u73b0\u4e24\u4e2a\u9519\u8bef\uff1a<\/p>\n<p>Error[e46]: Undefined external &quot;?V1&quot; referred in AF ( C:\\Texas Instruments\\Z-Stack Lighting 1.0.2\\Projects\\zstack\\ZLL\\SampleApp\\CC253x\\RouterEB-Pro\\<br \/>\nObj\\AF.r51 )<\/p>\n<p>\u89e3\u51b3\u95ee\u9898\u5982\u4e0b\uff1a<br \/>\n\u539f\u6765\u8fd9\u4e2a\u662fIAR\u7248\u672c\u7684\u95ee\u9898\u5f15\u8d77\u7684\uff0c\u53c2\u8003\u8fd9\u4e2a <a href=\"http:\/\/supp.iar.com\/Support\/?Note=98110\" target=\"_blank\" rel=\"noopener\">http:\/\/supp.iar.com\/Support\/?Note=98110<\/a><br \/>\n\u6309\u7167\u53c2\u8003\u91cc\u9762\u8bf4\u7684\u89e3\u51b3\u65b9\u6cd5\uff0c\u5c06workaround.s51 \u6587\u4ef6\u52a0\u5230\u5de5\u7a0b\u91cc\uff08\u6211\u662f\u52a0\u5230\u4e86C:\\Texas Instruments\\Z-Stack Lighting 1.0.2\\Projects\\zstack\\ZMain\\TI2530DB\u76ee\u5f55\u4e0b\uff0c\u6ce8\u610f\u8981\u5728\u5de5\u7a0b\u91cc\u8be5\u76ee\u5f55\u53f3\u51fb\u201cadd file &#8230; \u201d\uff09\uff0c\u7136\u540e\u518d\u6b21rebuild\u540e\uff0c\u539f\u6765\u7684\u95ee\u9898\u6ca1\u6709\u4e86\uff0c\u4f46\u662f\u51fa\u73b0\u4e86\u7b2c\u4e8c\u4e2a\u95ee\u9898\uff0c<\/p>\n<p>\u201cError[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xe more bytes needed. The problem occurred while processing the segment placement command<br \/>\n&quot;-Z(IDATA)ISTACK+_IDATA_STACK_SIZE#08-_IDATA0_END&quot;, where at the moment of placement the available memory ranges were &quot;IDATA:4e-ff&quot; \u201d<\/p>\n<p>\u4e8e\u662f\u53c8\u67e5\u5230 <a href=\"http:\/\/e2e.ti.com\/support\/low_power_rf\/f\/538\/p\/303921\/1061753.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/e2e.ti.com\/support\/low_power_rf\/f\/538\/p\/303921\/1061753.aspx<\/a><br \/>\n\u6839\u636e\u4ee5\u4e0a\u5217\u51fa\u7684\u8fd9\u4e2a\u5e16\u5b50\u91cc\u9762\u7684 Luis Johnson \uff08\u5c31\u662f\u8d34\u51fa\u4e86\u4e00\u5927\u4e2a\u56fe\u7684\u90a3\u4e2a\uff09\u7ed9\u51fa\u7684\u89e3\u51b3\u65b9\u6cd5\uff0c\u5c06numbers of virtual registers \u753116 \u6539\u4e3a8\u4e2a\uff0c\u518d\u6b21rebuild\uff0c\u5c31OK\u4e86\uff0c\u6ca1\u6709\u62a5\u9519\u3002<\/p>\n<p>workaround.s51\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code>;----------------------------------------------------------------;\n; Virtual registers                                              ;\n; =================                                              ;\n; Below is some segment needed for the IAR ICC C\/EC++ compiler   ;\n;                                                                ;\n; BREG  : A segment for 8 bit registers for use by the compiler. ;\n;         ?B0 is the first register.                             ;\n; VREG  : Segment that holds up to 32 virtual registers for      ;\n;         use by the compiler. ?V0 is the first register.        ;\n; PSP   : Segment containing the PDATA stack pointer (?PSP)      ;\n; XSP   : Segment containing the XDATA stack pointer (?XSP)      ;\n;                                                                ;\n;----------------------------------------------------------------;\n;----------------------------------------------------------------;\n\n        PROGRAM VIRTUAL_REGISTERS\n        PUBLIC  ?B0\n        PUBLIC  ?V0\n        PUBLIC  ?V1\n        PUBLIC  ?V2\n        PUBLIC  ?V3\n        PUBLIC  ?V4\n        PUBLIC  ?V5\n        PUBLIC  ?V6\n        PUBLIC  ?V7\n        PUBLIC  ?V8\n        PUBLIC  ?V9\n        PUBLIC  ?V10\n        PUBLIC  ?V11\n        PUBLIC  ?V12\n        PUBLIC  ?V13\n        PUBLIC  ?V14\n        PUBLIC  ?V15\n        PUBLIC  ?V16\n        PUBLIC  ?V17\n        PUBLIC  ?V18\n        PUBLIC  ?V19\n        PUBLIC  ?V20\n        PUBLIC  ?V21\n        PUBLIC  ?V22\n        PUBLIC  ?V23\n        PUBLIC  ?V24\n        PUBLIC  ?V25\n        PUBLIC  ?V26\n        PUBLIC  ?V27\n        PUBLIC  ?V28\n        PUBLIC  ?V29\n        PUBLIC  ?V30\n        PUBLIC  ?V31\n        PUBLIC  ?PSP\n        PUBLIC  ?XSP\n        RSEG    BREG:BIT:NOROOT\n?B0:\n        DS      8\n\n        RSEG    VREG:DATA:NOROOT\n?V0:\n        DS      1\n?V1:\n        DS      1\n?V2:\n        DS      1\n?V3:\n        DS      1\n?V4:\n        DS      1\n?V5:\n        DS      1\n?V6:\n        DS      1\n?V7:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V7\n?V8:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V8\n?V9:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V9\n?V10:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V10\n?V11:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V11\n?V12:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V12\n?V13:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V13\n?V14:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V14\n?V15:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V15\n?V16:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V16\n?V17:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V17\n?V18:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V18\n?V19:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V19\n?V20:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V20\n?V21:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V21\n?V22:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V22\n?V23:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V23\n?V24:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V24\n?V25:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V25\n?V26:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V26\n?V27:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V27\n?V28:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V28\n?V29:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V29\n?V30:\n        DS      1\n\n        RSEG    VREG:DATA:NOROOT\n        REQUIRE ?V30\n?V31:\n        DS      1\n\n        RSEG    PSP:DATA:NOROOT\n        EXTERN  ?RESET_PSP\n        REQUIRE ?RESET_PSP\n?PSP:\n        DS      1\n\n        RSEG    XSP:DATA:NOROOT\n        EXTERN  ?RESET_XSP\n        REQUIRE ?RESET_XSP\n?XSP:\n        DS      2\n\n        ENDMOD ; VIRTUAL_REGISTERS\n\n        END<\/code><\/pre>\n<h2>\u7b2c\u4e8c\u4e2a\u95ee\u9898\u5982\u4e0b\uff1a<\/h2>\n<p>Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xe more bytes needed. The problem occurred while processing the segment placement command  <\/p>\n<p>&quot;-Z(IDATA)ISTACK+_IDATA_STACK_SIZE#08-_IDATA_END&quot;, where at the moment of placement the available memory ranges were &quot;IDATA:4e-ff&quot; <\/p>\n<p>Reserved ranges relevant to this placement: <\/p>\n<p>IDATA:8-1f           VREG <\/p>\n<p>IDATA:21-40          VREG <\/p>\n<p>IDATA:41-42          XSP <\/p>\n<p>IDATA:43-43          DATA_I <\/p>\n<p>IDATA:44-4b          DATA_Z <\/p>\n<p>IDATA:4c-4d          IDATA_Z <\/p>\n<p>IDATA:4e-ff          ISTACK <\/p>\n<p>BIT:0-7              BREG <\/p>\n<p>BIT:80-97            SFR_AN <\/p>\n<p>BIT:a0-af            SFR_AN <\/p>\n<p>BIT:b8-c7            SFR_AN <\/p>\n<p>Error while running Linker <\/p>\n<p>Total number of errors: 1 <\/p>\n<p>Total number of warnings: 0<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u628a\u4e0b\u56fe\u4e2d\u7684Number of Virtual\u6539\u62108\u5373\u53ef<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/s1.ax1x.com\/2018\/03\/04\/9y5OHS.png?w=740&#038;ssl=1\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5347\u7ea7IAR \u4e4b\u540e\uff0c\u6253\u5f00\u65e7\u5de5\u7a0b\uff0c\u7f16\u8bd1\u7684\u65f6\u5019&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":128,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zigbee"],"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.jinhaihan.top\/WordPress\/wp-content\/uploads\/2021\/10\/741ee0fa730053d050b03f8b3f2b7d53.jpg?fit=1024%2C640&ssl=1","_links":{"self":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":1,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/posts\/43\/revisions\/44"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/media\/128"}],"wp:attachment":[{"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jinhaihan.top\/WordPress\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}