We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I got a problem about code banking when making a HEX file and the size of code is more about 22KB. The result of linking is as follows. Can u give any idea about below.
. . . TO "example" BankArea(0x8000,0xFFFF) CODE( 0X0000-0X7FFF , 0x30 ) XDATA( 0X0000-0X7FFE ) *** FATAL ERROR L236: ADDRESS IS NOT IN ASCENDING ORDER POS: 375 K.obj} TO example BANKAREA (0X8000, 0XFFFF) CODE (0X0000-0X7FFF, 0X30)# Target not created
What is this...
CODE( 0X0000-0X7FFF , 0x30 )
supposed to do? In other words, what do YOU intend for the linker to do with this?
Jon
Just want to make two HEX files and load them to one EPROM. One is .H00 file and .H01 file. CODE (0X0000-0X7fff) => TARGET->OFF-chip code memory ->start:0x0000 and the other's Size is 0x8000.
"ADDRESS IS NOT IN ASCENDING ORDER" This fatal error is confused with me.
You didn't answer Jon's question: what did YOU intend the Linker to do with this directive:
http://www.keil.com/support/man/docs/bl51/bl51_code.htm
OK. Let me try again.
In the following entry on your linker command line...
You have 0X0000-0X7FFF followed by a comma (',') followed by 0x30.
What are the number range (0X0000-0X7FFF) and the number (0x30) supposed to do?
If you can help me out by explaining this, I can tell you what causes the error.
Actually, I use the GUI of Keil monitor to make the following setting we saw happened. I also have no idea about 0x30.
Device->AT89C51 Target->Off-chip code memory-> start: 0x0000, -> size: 0x7fff
The above setting makes the commands we saw.
OK - Can you give me the complete path to the project you use?