Hi, I have some global variables which I am initializing when I declare them. When I run my program SOME of the global variables are not initialized, special if they are declared inside a library that I make. When I check the initialization of global variables in the "init.a51" module I don't see any reference for these variables in the C_INITSEG table and of course they are not initialized. If I reference these variables in the library as "extern" and declare it in the main application they are initialized with the correct values. Why some variables are initialized and other not in the same library? There are any limitations for the size of the C_INITSEG table?
Well, you made that library, and it fails to work, when presumably things work correctly for everyone else out there. So either you show us how you did make that library, or you're going to have to solve this on your own. Crystal balls aren't reliable enough for this kind of analysis. Try to reduce the problem to the smallest test case you can come up with that still reproduces it, then show that here (if it's still too large, put it up in the Web somewhere and post a URL). which I am initializing when I declare them. Imprecise or wrong terminology: if it has an initializer, it's a definition, not just a declaration. This distinction is crucially important. If I reference these variables in the library as "extern" and declare it in the main application they are initialized with the correct values. Likewise here. You almost certainly should have said "declared" and "defined" (in that order) instead of the words I marked in bold.