2917 views|2 replies

171

Posts

0

Resources
The OP
 

Conflict between css8 and IEC60730_msp430g2553_example project, clock aspect [Copy link]



  How to solve the conflict between css8 and IEC60730_msp430g2553_example project is the key issue. 0 This question deserves an answer, but there is no answer in the search. 0.1 In this forum, there is no answer in this post# Result: Found 0 related contents of "IEC60730\_msp430g2553\_example"# Sorry, no matching results were found. 0.2 In Baidu# There is only one related one on the first page. I looked at it, but it was because the include was not set up properly, not my problem. I don't use CCS cloud, mine is normal. 1 Install css The latest ccs8.2 ccs defaults to c:\ti, which is not very convenient. I changed it to e:\ After installation, I found that there are still directories such as tirex-product-tree under c:\ti 2 After installing css, the usage of css I didn't feel any problems with css programming. 3 After installing css, the usage indicator of msp-exp430g2 development board flashes, but I don't feel any problem. 4 Sample program usage. Find a sample program suitable for MCU g2553 on the board. But I found a problem when building the example program. The console window prompts that the stack is aligned to 4 bytes, not 32bit, but 34. I was surprised. This problem was not found when using the msp-exp430g2 development board. I searched and found that the text box on the right side of build opt, stack is 50, and the text box on the right side of head is 0. 5 Can you analyze this situation? 6 Reinstall ccs 7 msp430ware. Search the file in Resource Explorer to install msp430ware. After clicking install, multiple project lists appear in Project Explorer view. Step 1, step 2, step 3, step 4 appear on the right side of the screen. 8 Practice of the IEC60730_msp430g2553_example project in ccs and msp430ware 8.1 Input project IEC60730_msp430g2553_example Follow the introduction of step 1, step 2, step 3, step 4. IEC60730_msp430g2553_example import , build , debug ... 8.2 Installation Status For details on the installation of ti ccs and IEC60730_msp430g2553_example software, please refer to the build directory. --include_path --include_path="E:/ti/ccsv8/ccs_base/msp430/include" --include_path="E:/ti/workspace_v8/IEC60730_msp430g2553_example" --include_path="E:/ti/workspace_v8/IEC60730_msp430g2553_example/iec60730/include" --include_path="E:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.4.LTS/include" 8.3 #ifdef __TI_RTS_BUILD /*---------------------------------------------------------------------------*/ /* __TI_default_c_int00 indicates that the default TI entry routine is being */ /* used. The linker makes assumptions about what exit does when this symbol */ /* is seen. This symbols should NOT be defined if a customized exit routine */ /* is used. */ /*---------------------------------------------------------------------------*/ __asm("__TI_default_c_int00 .set 1"); #endif /*---------------------------------------------------------------------------*/ __attribute__((section(".stack"))) #if defined(__LARGE_DATA_MODEL__) long _stack; #else int _stack; #endif 8.4 Run, the second time and the first time, the minor place is slightly different, the highlighted line is missing. Check the tccs settings I checked the proj Properties, the text box 80 on the right side of the stack has become longer, and the head and its text box have disappeared. The build text prompt in the console, no err The build text prompt in the console, check the source file again, the inverted, white area of the prompt effect MAIN_CLOCK_FREQUENCY_12MHz 8.5 Search, found #elif defined(MAIN_CLOCK_FREQUENCY_12MHz) #define MAIN_CLOCK_FREQUENCY 12000000 Further search, found MAIN_CLOCK_FREQUENCY_12MHz Finally found Define to specify the MCLK frequency #define MAIN_CLOCK_FREQUENCY_12MHz 5.6 I reflect: This last file IEC60730_USER_CONFIG_H seems to be about time-related, ad clock or crystal clock, I forgot. In the image, it feels that this is different from the definition in the official file of msp430g2553 ti. 5.7 Further thinking, I think it is the inconsistency between the clock or time-related in the two different projects. How to deal with this kind of related concept, such as clock, which is defined in each software and called between cross-projects to form inconsistent coupling, which involves the coordination problem between different software. Should we refer to the intrinsic function file of the official file of msp430g2553, such as #def _xa __xxbb to deal with it? Should we refer to the legacy method to deal with it? If we add h files, where should we store them? Please advise, how do experts solve the conflict between IEC60730_msp430g2553_example in msp430ware and the official software of msp430g2553. In addition, it is best for the official to come up with an authoritative solution. Thanks.

   
  


This post is from Microcontroller MCU

Latest reply

Finally, I found that Define to specify the MCLK frequency #define MAIN_CLOCK_FREQUENCY_12MHz is there a problem here  Details Published on 2018-11-30 14:51
 

2618

Posts

0

Resources
2
 
I also look forward to the answers from experts.
This post is from Microcontroller MCU
 
 

6547

Posts

0

Resources
3
 
Finally, I found that Define to specify the MCLK frequency #define MAIN_CLOCK_FREQUENCY_12MHz is there a problem here
This post is from Microcontroller MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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