Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62446

Forum Post: undefined reference

$
0
0
Hi I have use msp430 to develop product until a few year. I use free compiler with IDE CodeBlocks. I use compiler mspgcc version is 4.6.3 20120301, this compiler is free software. Today, I update my compiler. The new version is 5.3.0.219. Then, I recompile my old example program to test, the IDE message dailog show: main.c|| undefined reference to `WDTCTL'| main.c|| undefined reference to `CALBC1_1MHZ'| main.c|| undefined reference to `BCSCTL1'| main.c|| undefined reference to `CALDCO_1MHZ'| main.c|| undefined reference to `DCOCTL'| main.c|| undefined reference to `P1DIR'| main.c|| undefined reference to `TA0CTL'| main.c|| undefined reference to `TA0CCR0'| main.c|| undefined reference to `TA0CCTL0'| So, I check head file msp430g2553 .h, I find something disappear. for example, in old vision, head file has some register address as: #define WDTCTL_ 0x0120 /* Watchdog Timer Control */ #define P1IN_ 0x0020 /* Port 1 Input */ #define P1DIR_ 0x0022 /* Port 1 Direction */ But, in new vision has no sets ! and the Interrupt Vectors are different with old version ! I don't want go back to old version, how could I do ?

Viewing all articles
Browse latest Browse all 62446

Trending Articles