I was not able to use realloc using energia so I imported the proyect to CSS v7.
It seems there is something wrong or not done about realloc under Energia.
CSS v7 is using the Ti compiler instead of GCC and it has realloc and it works.
But when using CCSv7 with the imported sketch, the Serial.print commands do nothing.
Even If I debug step by step it just ignores Serial.print commands without showing anything anywhere.
I activated the serial terminals inside CCSv7 to see the output and I also have the normal output and the console.
I can work around if I find a function equivalent to micros() for the CCSv7

Hello,
I'm not used to playing with C/C++ or even with compiled languages so maybe it'll be a dumb question but after a lot of research, I don't know what to do.
I have an issue at compilation in a CCS project for CC3200 and I've already posted a question in the compiler section of TI's forum. I got help : I know now that my error is that I'm trying to use methods defined in a header file without having the corresponding source file in the project. So I am getting an "undefined symbol" error on theses methods, as you can see on the following screenshot.
As I started my project in Energia IDE, I did some code using Energia's methods. Going on doing the project, I needed to add Free-RTOS. I never used Free-RTOS before so I took a demo project of Free-RTOS implementation for CC3200 as a base to do it. I succeeded to compile the demo project on my board.
Also, I imported my Energia sketch in my CCS workspace and I was also able to build it and run it correctly on the board (via CCS).
But then I tried to combine both project, and now I'm stuck with an issue.
I added code from my Energia Sketch in the Free-RTOS demo project. As I am using Energia methods and constants such as digitalWrite or pinMode, I was not surprised that the IDE and the compiler couldn't find them.
I investigated a bit to find out where these methods where defined and I found them in Energia.h. That's why I firstly tried to import this header only. Now that I have understood that I need the source file :), but I can't find it !
My last try was to look at the imports/symbols and file search paths of my imported Energia sketch in CCS (like the following) :
- Imported Energia sketch project
- Free-RTOS demo project (my project)
I also read things about "lpcc3200_core" folder which was added when I imported the Energia Sketch. Maybe this is the core files that I need ?
I'm still stuck and now I wonder if it's even possible to correctly import Energia framework this way, or if I should either choose TI-RTOS or write again my Sketch directly in C/C++.
Thanks for reading me !

Hi,
For those of you who like to try something else.
Try our noForth compiler/interpreter. It is free available for several MSP430 MPUs.
Look here: http://home.hccnet.nl/anij/nof/noforth.html
Well documented examples: http://noforth.bitbucket.org/site/egel%20for%20launchpad.html
Kind regards,
Willem Ouwerkerk.

Here's a very interesting presentation about how modern compiler optimization may lead to unexpected results. This goes way beyond the failure of naive delay loops. http://www.eng.utah.edu/~cs5785/slides-f10/Dangerous+Optimizations.pdf If you ever relied on buffer indices wrapping around (integer overflow), this is a must read. There are many other scenarios discussed. For example I'm pretty sure I fell for this trap myself:
volatile int buffer_ready;
char buffer[BUF_SIZE];
void buffer_init() {
for (size_t i = 0; i < BUF_SIZE; i++)
buffer[i] = 0;
buffer_ready = 1;
}
It probably works today. But it's a bug waiting to happen when I recompile with different optimization settings or a different compiler. (hint: buffer_ready=1 may be moved before the for loop because the loop does not affect any volatile location).

I'm currently working on cross platform build tool named PlatformIO. It has pre-built MSP430 GCC toolchain & mspdebug for Mac, Linux 32/64 & Windows OS.
1. How often do you use external standalone toolchain to build your code? In which case?
2. What is your favourite IDE+Toolchain?
3. What would you like to have in paltformio tool?
Thanks a lot for answers!
P.S: The main idea of this tool is to compile code with different platforms. See Wiring Framework (Arduino + Energia) Blink Example.

Hi all,
I was wondering if modifying the compiler flags was easily possible?
I have a program that is really tiptoe-ing the maximum program size for my FR5739, and when I add some extra functionality, it goes overboard by 1-2k.
I think some of this is due to some extra bloat that Energia adds, but for the simplicity of getting up and running, alongside the sweet already-created libraries, it's totally worth it.
So, before I go out and re-design a board with a different chip, I was wondering if there were some freebies I should look into. I think I've removed as much extra code as is feasible, and played around with adding/removing libraries, but the impact is negligible.
One thing I would like to try is the msp430-strip command... I don't know what that will do, but I've seen that with --strip-unneeded -g -x, the results on the .o files seems to be good... I don't yet know how this will translate to the actual elf or hex files though.
Has anyone tried this before?
Thanks,
-SJ

I was wondering, does anybody know of a good msp430 compiler like IAR for mobile devices?
If not, I have some ideas if anybody is up for making one.
Physically connecting to the phone is out of the question, so it would have to be bluetooth. An msp (preprogrammed) with a bluetooth transceiver may just be all that's needed to program another msp via spi-bi-wire, and possibly throw in an rx/tx port to transfer data back through the Bluetooth, just like the launchpad does with USB.
Just tossing ideas out.

Hello guys,
I just find out this forum and want to introduce mikroE ARM compilers as one of solution for Stellaris development.
http://www.mikroe.co...aris/compilers/
Also very interesting tool for gui development is a VisualTFT:
http://www.mikroe.com/visualtft/
Have a nice weekend!
Marko