User forums > Embedded development
error: -mmcu
Nayani:
HI Miguel Gimenez,
I tried command line and the build (only compile) seems to have gone through without a hitch. Here is what I typed
msp430-elf-gcc -c -IC:\ti\msp430-gcc\include -mmcu=msp430f67791 main.c
The main.c file content, copied from the NET
#include "msp430f67791.h"
//#include <msp430.h>
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
for(;;) {
volatile unsigned int i; // volatile to prevent optimization
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
i = 10000; // SW Delay
do i--;
while(i != 0);
}
return 0;
}
The issue is to configure code::blocks properly!!!! Not getting it.
Miguel Gimenez:
Follow the link I gave you in reply #3 and post a full rebuild log (use code tags, please).
Navigation
[0] Message Index
[*] Previous page
Go to full version