I have a strange problem in that initialised variables in external RAM are not being initialised by the 'C' startup code when the size of data exceeds a certain size - it gets zero initialised instead. Therefore I need to debug my code and either single step through __main or at the very least examine the source for it. However, I cannot find the code for __main. Can anyone help?
Have you made sure that the startup file is correctly configuring the external RAM before the CRTL startup functionality takes over and initializes global variables?
Yes, as it works OK when I decrease the size of data and the initialised part of the data is located within the first few bytes of the RAM. Do you know where I can find __main?