when a variable is declared and initialized along with it globally, it should be going to data segment of external memory( as per linker script provided). the variable gets stored at the expected location in the external ram, but it is not getting initialized with the provided value. some junk value is found in the location. but when we change the location of data segment to internal ram(in the linker script), it works fine. I'm using softcore of Cortex, M-1.
Hitting command "BKPT 0xAB" in the standard library initialization routine. I'm not able to continue from this place. this comes under the standard routine "_sys_open:" . this routine is called automatically if we jump to __main from _start