I'm getting the following warning message after I upgraded to V7.20. I'm using the MB2BA/02 MX IC. *** WARNING L47: NO SEGMENTS ASSIGNED TO USER CLASS CLASS: HDATA_EDATA Program Size: data=119.0 xdata=1430 const=512 code=6480 LX51 RUN COMPLETE. 1 WARNING(S), 0 ERROR(S) This did not happen on the previous version I had installed. Please help ASAP. Thanks, -Jim
I see the HDATA_EDATA in my memory map as shown below, however, I still cannot clear the warning... BASE START END USED MEMORY CLASS ========================================================== 7F0000H 7F0000H 7F02FFH 000040H EDATA 000000H 000000H FFFFFFH HDATA_EDATA 800000H 800000H 80FFFFH 001950H CODE 7F0000H 7F0000H 7F007FH 00004AH DATA 800000H 800000H 80FFFFH 000200H CONST 7F0000H 7F0000H 7F00FFH 000029H IDATA 7F0020H.0 7F0020H.0 7F002FH.7 000004H.0 BIT 000000H 000000H 00FFFFH 000556H XDATA Anything else that could help. Thanks, -Jim
You need to remove the HDATA_EDATA memory class from the linker CLASSES directive.
I go into Target Options and I do not see anything regarding the HDATA_EDATA directive. Can you guide me explicitly to where I may turn this off?
Project - Options for Target - LX51 Locate - User Classes.
I removed all info (reference) in the C classes / USER classes box. Still same warning.
I found the problem. It was caused by the following carried over from a previous app note and located in a .h file: #pragma userclass (HDATA=EDATA) I removed this and the warning went away. Another thing: Does Keil's app notes follow the new memory mapping per Philips new /02 Core? It doesn't seem to. I' referencing Philips USER MANUAL dated 2003 May 13 pages 12 & 13. Notice EDATA resides above HDATA and EDATA stops at 7f:01ff.
Which device is behind the "new /02 Core"
It's the new MX Looking at the micro, it is the P87C51MB2BA/02 Where the (/02 being rev. H)? Philips decreased the Edata memory spaced by moving it to the Xdata memory space as shown below: Edata WAS: 7f:0000 to 7f:04ff Edata IS: 7f:0000 to 7f:01ff Xdata WAS: 00:0000 to 00:02ff Xdata IS: 00:0000 to 00:05ff
Yes, this devices are included in the device database of V7.20. Just select for example: Philips 8xC51MB2/02.