This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Global variables

I have a problem running my program into ram memory if i declare a global variable into my code i have to unchecked the option "use memory layout from target dialog" from L166 options menu. Once i have unchecked this everything works fine in ram memory but it doesn't work into flash memory.

for example:

if(level==0) IO_vResetPin(P2_8); else IO_vSetPin(P2_8);

where level it's a unsigned int global variable initialized with 1 so IO_vSetPin(P2_8) should be execute,but if "use memory layout from target dialog" is CHECKED IO_vResetPin(P2_8) is executed.

I use the last version of compiler 6.18, and i work with a c163.