1441 views|0 replies

3836

Posts

19

Resources
The OP
 

MSP430 Troubleshooting [Copy link]

[Remember] Don't forget to set the interface! 1. Set the number of characters for the Tab key indentation in IAR software: Tools-Options-Editor-Tab Size, change the number at the end according to habit. 2. Error[e46]: Undefined external "LcdInit" referred in main( E:\MSP430 \UDP\Debug\Obj\main.r43 ) Reason: There are multiple .c files in the project, but it is not in the project. Solution: Add the .c file to the project. 3. Error[e27]: Entry "ReadingData" in module DS1302 ( E:\MSP430 \Module\DS1302\Debug\Obj\DS1302.r43 ) redefined in module main Reason: I put the defined array unsigned char ReadingData[7];in the .h file. This error occurred during compilation. Solution: Put unsigned char ReadingData[7];in the .c file. 4. An error has occurred. See the log file C\...\workspace_v5_1\.metadata\.log Solution: vcredist_x86_2005 in the installation directory CCS5.1\CCS5.1.1.00031_win32\baserepo 5. Error[Pe127]: expected a statement E:\MSP430\Module\TFT\SD.c 95 Error[Pe018]: expected a ")" E:\MSP430\Module\TFT\SD.c 132 Solution: Check the program carefully to see if there are any syntax errors. For example: #define SPI_DO_H P1OUT |= BIT0; //P1.0 #define SPI_DO_L P1OUT &= ~BIT0; The extra ";" will cause the program to have the above error. 6. The target setup(MSP430G2xx3) does not match the actual target tpe (MSP430G2xx2) Solution: Check whether the chip type on the target board is consistent with the chip type set in the CCS project. Most of the time, it is a problem of mismatch. 7. Warning[Pa093]: implicit conversion from floating point to integer. Solution: Use a forced conversion statement to convert float data into integer type data. This prevents data errors.

This post is from Microcontroller MCU
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list