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.
Hello ,
I have to convert my existing IAR code into CCS v6
I have tried it but facing some issue ,tried to solve it, seen lots of forums ,but cant able to solve it
please see the compiler console below of my code ,so can some one help me ,how to resolve this problem.
i am working on Energy meter project.
**** Build of configuration Debug for project AV_BI_AFE252_Rev1.1 ****
C:\ti\ccsv5\utils\bin\gmake -k all
'Building target: AV_BI_AFE252_Rev1.1.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv5/tools/compiler/msp430/bin/cl430" -vmsp --abi=coffabi -g --define=__MSP430AFE252__ --diag_warning=225 --display_error_number --printf_support=minimal -z -m"AV_BI_AFE252_Rev1.1.map" --stack_size=80 --heap_size=80 --use_hw_mpy=16 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"C:/ti/ccsv5/tools/compiler/msp430/lib" -i"C:/ti/ccsv5/tools/compiler/msp430/include" --reread_libs --warn_sections --rom_model -o "AV_BI_AFE252_Rev1.1.out" "./source/Tamper_Storage.obj" "./source/RTC_RD_WR.obj" "./source/IR_Communication.obj" "./source/Emeter_RTC.obj" "./source/Emeter_Main.obj" "./source/Emeter_LPM.obj" "./source/Emeter_Key_Init.obj" "./source/Emeter_KWh_MD.obj" "./source/Emeter_Interrupts.obj" "./source/Emeter_Init.obj" "./source/Emeter_I2C.obj" "./source/Emeter_Functions.obj" "./source/Emeter_Eeprom_RW.obj" "./source/Emeter_Calib.obj" "./source/Emeter_Calculation.obj" -l"libc.a" "../lnk_msp430afe252.cmd"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_P1DIR ./source/Emeter_Init.obj
_P1OUT ./source/Emeter_Main.obj
_P2DIR ./source/Emeter_Init.obj
_P2OUT ./source/Emeter_Init.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "AV_BI_AFE252_Rev1.1.out" not
built
>> Compilation failure
gmake: *** [AV_BI_AFE252_Rev1.1.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Hello,
rohit warule said:error #10234-D: unresolved symbols remain
The cause of your error is explained in this wiki article below:
http://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10234
In short, you are missing the library/object that defines P1DIR, P1OUT, P2DIR, P2OUT symbols. Perhaps you are forgetting to link in the library that defines these symbols. Or perhaps you are missing the source files that define them and hence the needed object files are not being generated. In any case, you will need to find where they are defined and make sure they are part of the build
Thanks
ki
P1DIR, P1OUT, P2DIR and P2OUT are MSP430 peripheral registers, which should be referenced in the linker command file in the project. Does the lnk_msp430afe252.cmd file in the project contain the following?rohit warule said:_P1DIR ./source/Emeter_Init.obj
_P1OUT ./source/Emeter_Main.obj
_P2DIR ./source/Emeter_Init.obj
_P2OUT ./source/Emeter_Init.obj
/****************************************************************************/ /* Include peripherals memory map */ /****************************************************************************/ -l msp430afe252.cmd
That means the source file was only intended to be compiled with the IAR MSP430 compiler.rohit warule said:#if (((__TID__ >> 8) & 0x7F) != 0x2b) /* 0x2b = 43 dec */
#error msp430f6736.h file use with ICC430/A430 only
#endif
More context is required to determine how to convert the project to CCS. Is this a standard example project, and if so where can the project be downloaded from?rohit warule said:so how can i write it in CCSv6 ,to solve this ,
Dear Chester Gillon,
Can we remove this file in CCSv6 ,as you said its only for IAR workbench .
Please inform me if any modification required to use it in CCSv6 ,
please reply , i am waiting for your feedback.
Have you tried including the msp430f6736.h from CCS, rather than the IAR specific msp430F6736_modified.h file?rohit warule said:i am getting issue in #include "msp430F6736_modified.h" file , i have converted other files to ccsv6 ,but unable to do for msp430F6736_modified.h........so please tell me if any thing going wrong with me ,
Based on the information so far I don't know if this will help, since unsure why a "modified" include file was being used in the project.
If changing from including msp430F6736_modified.h to msp430f6736.h doesn't fix the errors, can you post the complete CCS project which will make it easier to help?