Hello ALL, if I defined in L166Locate- µVision DPP USAGE NDATA DPP2(0xC000-0xE7FF) and in one of my a.66 file ASSUME DPP1 : NCONST ASSUME DPP2 : NDATA ASSUME DPP3 : SYSTEM ?ND?Test section data word 'NDATA' test DSW 1 ?ND?Test ENDS and in the h-file: extern int test; Why it's still not enough declarations and I get error for 'test' : missing DPP information? If I use an explicit declaration there is no an error. But I don't want use this way. Thanks, with best regards, A.
Actually you need to define groups.
;------------------------------------------------------------------------------ ; For correct access to NEAR DATA, CONST and CODE groups are required ;------------------------------------------------------------------------------ NCODE CGROUP ?PR?TEMPLATE ; section ?PR?TEMPLATE is member of NCODE NCONST DGROUP ?NC?TEMPLATE ; section ?NC?TEMPLATE is member of NCONST NDATA DGROUP ?ND?TEMPLATE ; section ?ND?TEMPLATE is member of NDATA ASSUME DPP1 : NCONST ; DPP1 addresses the NCONST group ASSUME DPP2 : NDATA ; DPP2 addresses the NDATA group ASSUME DPP3 : SYSTEM ; DPP3 addresses the SYSTEM page
Thank you very much, it was exactly what I missed... Regards, A.