here, my work are banking switch and encounter some problems. the situation as followed: one of those files has:
#pragma STRING (far) // locate string constants into 'far const' memory const char far *const far text0[] = { "aaa7788", "2222266" };
000308H 000317H 000010H BYTE INSEG HCONST ?FC?TEST6
:0803000008FF8000FF800800E7
it means no data starting at address 0308H No. That's not what this line means. This line gives ROM contents for address 0x0300 to 0x0307 (inclusive). It says exactly nothing about what might come at address 0x0308. You're looking at the wrong line of the .hex file.
i still don't understand, according to the describing:
and i sure that i don't look at the wrong line of the .hex file.
where should value [...] be stored???? At 0x0308 .. 0x0317, inclusive. That's what it says in the map file line you quoted. But the .hex file line you showed doesn't talk about that address range at all. It gives you 8 bytes starting at 0x0300, i.e. up to 0x0307 inclusive. Whatever goes into address 0x0308 and following will be in some other line of the .hex file.
thanx for your reply..... at first, i had additional codes for testing:
char * data text1[] = { "aaa7788", "2222266" };
008000H 00800FH 000010H BYTE UNIT CODE/B7 ?CO?M8051W
:108000006161613737383800323232323236360009
hi, that is so strange.... You have been said twice about that you look at wrong line of .hex file. First of all, pay some minutes and read what each line of .hex file means. In short, format of .hex line is:
:08 0300 00 08FF8000FF800800 E7
:08030800.......
following text is most port of the *.hex, the other text i also has been searched and not find
@0000 00 00 @0000 02 01 70 F5 82 EB 20 E7 07 14 54 07 44 08 F5 96 @0010 E5 82 89 82 8A 83 E0 75 96 08 22 F5 82 EB 20 E7 @0020 07 14 54 07 44 08 F5 96 E5 82 89 82 8A 83 F0 75 @0030 96 08 22 F5 82 EB 20 E7 07 14 54 07 44 08 F5 96 @0040 E5 82 89 82 8A 83 E0 F5 F0 A3 E0 75 96 08 22 F5 @0050 82 EB 20 E7 07 14 54 07 44 08 F5 96 E5 82 89 82 @0060 8A 83 F0 A3 E5 F0 F0 75 96 08 22 F5 82 EB 20 E7 @0070 07 14 54 07 44 08 F5 96 E5 82 89 82 8A 83 E0 FB @0080 A3 E0 FA A3 E0 F9 75 96 08 22 F5 82 EB 20 E7 07 @0090 14 54 07 44 08 F5 96 E5 82 89 82 8A 83 C5 F0 F0 @00A0 A3 C5 F0 F0 A3 E8 F0 75 96 08 22 F5 82 EB 20 E7 @00B0 07 14 54 07 44 08 F5 96 E5 82 89 82 8A 83 E0 FC @00C0 A3 E0 FD A3 E0 FE A3 E0 FF 75 96 08 22 F5 82 EB @00D0 20 E7 07 14 54 07 44 08 F5 96 E5 82 89 82 8A 83 @00E0 EC F0 A3 ED F0 A3 EE F0 A3 EF F0 75 96 08 22 BB @00F0 01 06 89 82 8A 83 E0 22 50 02 E7 22 BB FE 02 E3 @0100 22 40 07 89 82 8A 83 E4 93 22 02 00 03 BB 01 07 @0110 89 82 8A 83 02 01 52 50 05 E9 F8 02 01 49 BB FE @0120 05 E9 F8 02 01 5B 40 07 89 82 8A 83 02 01 64 02 @0130 00 6B BB 01 06 89 82 8A 83 F0 22 50 02 F7 22 BB @0140 FE 02 F3 22 50 FD 02 00 1B E6 FB 08 E6 FA 08 E6 @0150 F9 22 E0 FB A3 E0 FA A3 E0 F9 22 E2 FB 08 E2 FA @0160 08 E2 F9 22 E4 93 FB 74 01 93 FA 74 02 93 F9 22 @0170 78 7F E4 F6 D8 FD 75 81 18 75 95 F0 75 97 7F 75 @0180 96 08 02 01 AE 02 02 2F E4 93 A3 F8 54 07 24 0C @0190 C8 C3 33 C4 54 0F 44 20 C8 83 40 04 F4 56 80 01 @01A0 46 F6 DF E4 80 0B 01 02 04 08 10 20 40 80 90 02 @01B0 FF E4 7E 01 93 60 CE A3 FF 54 3F 30 E5 09 54 1F @01C0 FE E4 93 A3 60 01 0E CF 54 E0 B4 E0 25 E4 93 FB @01D0 A3 E4 93 FA A3 E4 93 F9 A3 E4 93 C0 83 C0 82 12 @01E0 01 32 D0 82 D0 83 A3 09 E9 70 01 0A DF EB DE E9 @01F0 80 BF 54 C0 25 E0 60 25 40 8E E4 93 A3 FA E4 93 @0200 A3 F8 E4 93 A3 C8 C5 82 C8 CA C5 83 CA F0 A3 C8 @0210 C5 82 C8 CA C5 83 CA DF E9 DE E7 80 94 E4 93 A3 @0220 F8 E4 93 A3 40 03 F6 80 01 F2 08 DF F4 80 82 12 @0230 02 C0 12 02 E7 75 14 00 E5 14 C3 94 05 50 18 AB @0240 08 AA 09 A9 0A AF 14 E9 2F F9 E4 3A FA 12 00 EF @0250 FF 8F 90 05 14 80 E1 75 14 00 E5 14 C3 94 05 50 @0260 1D 7B FF 7A 03 79 08 12 01 0D AF 14 7E 00 E9 2F @0270 F9 EA 3E FA 12 00 EF FF 8F 90 05 14 80 DC 12 80 @0280 00 12 02 ED 12 02 F3 12 02 F9 12 02 E1 80 FE 22 @0290 8E 0E 8F 0F 75 10 00 75 11 00 E5 11 65 0F 70 04 @02A0 E5 10 65 0E 60 19 C2 8D 75 8C FF 75 8A 88 D2 8C @02B0 30 8D FD 05 11 E5 11 70 02 05 10 C2 8C 80 DB 22 @02C0 75 D0 00 75 F0 00 75 B8 00 75 98 00 75 88 00 75 @02D0 89 01 75 A8 00 75 8C 00 75 8A 00 D2 AF 75 87 00 @02E0 22 75 94 08 02 80 10 75 94 09 02 90 00 75 94 01 @02F0 02 80 00 75 94 02 02 80 00 75 94 03 02 80 00 06 @0300 08 FF 80 00 FF 80 08 00 @8000 75 15 00 E5 15 C3 94 02 50 2C 75 90 20 7F 01 7E @8010 00 12 02 90 75 90 21 7F 01 7E 00 12 02 90 75 90 @8020 22 7F 01 7E 00 12 02 90 75 90 23 7F 01 7E 00 12 @8030 02 90 05 15 80 CD 22
sorry..... above poster has been correct as : following text is most port of the *.hex, the other text i also has been searched and not find something about
:020000040000FA :10000000020170F582EB20E7071454074408F596C7 :10001000E58289828A83E075960822F582EB20E7E3 :10002000071454074408F596E58289828A83F0759F :10003000960822F582EB20E7071454074408F5964A :10004000E58289828A83E0F5F0A3E075960822F5BF :1000500082EB20E7071454074408F596E58289826D :100060008A83F0A3E5F0F075960822F582EB20E78D :10007000071454074408F596E58289828A83E0FBD9 :10008000A3E0FAA3E0F975960822F582EB20E707D2 :100090001454074408F596E58289828A83C5F0F0F6 :1000A000A3C5F0F0A3E8F075960822F582EB20E7EF :1000B000071454074408F596E58289828A83E0FC98 :1000C000A3E0FDA3E0FEA3E0FF75960822F582EB16 :1000D00020E7071454074408F596E58289828A834D :1000E000ECF0A3EDF0A3EEF0A3EFF075960822BBC1 :1000F000010689828A83E0225002E722BBFE02E3E6 :1001000022400789828A83E49322020003BB01070D :1001100089828A830201525005E9F8020149BBFE37 :1001200005E9F802015B400789828A8302016402C3 :10013000006BBB010689828A83F0225002F722BB42 :10014000FE02F32250FD02001BE6FB08E6FA08E679 :10015000F922E0FBA3E0FAA3E0F922E2FB08E2FACD :1001600008E2F922E493FB740193FA740293F922F2 :10017000787FE4F6D8FD7581187595F075977F75D1 :1001800096080201AE02022FE493A3F85407240C50 :10019000C8C333C4540F4420C8834004F4568001BC :1001A00046F6DFE4800B0102040810204080900234 :1001B000FFE47E019360CEA3FF543F30E509541F56 :1001C000FEE493A360010ECF54E0B4E025E493FB7A :1001D000A3E493FAA3E493F9A3E493C083C0821247 :1001E0000132D082D083A309E970010ADFEBDEE996 :1001F00080BF54C025E06025408EE493A3FAE493C9 :10020000A3F8E493A3C8C582C8CAC583CAF0A3C82B :10021000C582C8CAC583CADFE9DEE78094E493A338 :10022000F8E493A34003F68001F208DFF480821221 :1002300002C01202E7751400E514C394055018AB10 :1002400008AA09A90AAF14E92FF9E43AFA1200EF53 :10025000FF8F90051480E1751400E514C3940550D8 :100260001D7BFF7A03790812010DAF147E00E92F80 :10027000F9EA3EFA1200EFFF8F90051480DC12803D :10028000001202ED1202F31202F91202E180FE22C4 :100290008E0E8F0F751000751100E511650F70043B :1002A000E510650E6019C28D758CFF758A88D28C39 :1002B000308DFD0511E51170020510C28C80DB2226 :1002C00075D00075F00075B80075980075880075D8 :1002D000890175A800758C00758A00D2AF758700FA :1002E000227594080280107594090290007594019B :1002F000028000759402028000759403028000065B :0803000008FF8000FF800800E7 :10800000751500E515C39402502C7590207F017EF4 :10801000001202907590217F017E001202907590EF :10802000227F017E001202907590237F017E001254 :078030000290051580CD222E