Skip to content

printf (or other I/O) on MSP430 and Code Composer 5

Today I came across a funny problem: the following code would not print anything (in Code Composer you are supposed to get a console window that pops up and shows your the STDIO stuff).

#include <stdio.h>

int main() {

	return 0;

Turns out this is because printf and other I/O functions require a huge stack and heap size. To fix this, go to Project -> Properties -> Build -> MSP430 Linker -> Basic Options -> set stack size to 500 and set heap size to 500

Posted in MSP430. Tagged with , , , .