Hi,
I am using GCC and AVR sudio in my MCU project. I find a big problem when the two tools are used together.
My C program has many "#ifdef"/"#endif" instruction segments to control different compilation options. However, when I debug the program in AVR studio and set watch points, some locations are misaligned so that the real position of instruction lines cannot be really located. I knew that becaue I found that some instruction lines cannot be set watchpoint successfully. So this brings a lot of troubles to me.
Could anyone teach me how to solve the problem? Or I need to remove those preprocesors?