Part Number: MSP432P401R
Tool/software: Code Composer Studio
Hi,
I'm trying to switch the compiler on my project from TI to GNU Linaro. The first thing that doesn't work in my code after transition is the printf function.
Here is my very simple example:
/* DriverLib Includes */ #include <ti/devices/msp432p4xx/driverlib/driverlib.h> /* Standard Includes */ #include <stdint.h> #include <stdbool.h> #include <math.h> #include <stdio.h> int main(void) { volatile uint32_t ii; /* Halting the Watchdog */ MAP_WDT_A_holdTimer(); puts("Hello, world!\n"); printf("test\n"); /* Configuring P1.0 as output */ MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0); while (1) { /* Delay Loop */ for(ii=0;ii<5000;ii++) { } MAP_GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0); } }
However, I don't see any output from the debugger? Does this have to do with Stack and Heap size? If so, how do I change them?
If not, I appreciate if you can share your experience with GNU compiler.
Thanks.