Hi all,
I'm getting started to code development for MSP430 (currently for g2231, launchpad) and CCSv4. I'm trying to debug a simple application that I've written which is split into several files. When I compiled my program first I got an error relative to its size (bigger than the flash!) and I cannot understant why this can happen cause the functions are really simple, basically read/write i2c and handle IO interrupts. Using highest level of optimization I can get to download the binary to the MCU and debug the application though I guess I am missing something. Have looked carefully at the optimization options and tried many but with similar results (image still too big for code complexity). Checking the map file I see that no dead code is included (I cannot see what happens at other levels of optimization cause the map file doesn't include that information in such cases) and I find symbols that have to come from the RTS lib, could this be adding such extra-weight to the image? How can I make sure everything included is essential? Can that be controlled anyhow?
Thanks in advance
Best regards