I don't add init.a51 to my project
but add startup.a51 to my project!
but my gloabe variable initializesd all ok????????
If you don't include init.a51 explicitly, the tools will to it implicitly (behind the scenes).
You really should read the manual. It's described there. See the C51 manual, section "Customization files"
Another hint. Look for IDATALEN in the start up code. Determine how startup.a51 uses this code per the manual. Bradford