This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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 ?
If you are not using static constructor functions, add the "-minrt" option.
Another very useful option would be "-flto", but then you have to add "__attribute__((used))" to all interrupt handlers.
**Attention** This is a public forum