Developing MSP430 in Code Blocks

Source: Internet
Author: User

1. Set the GCC compiler path and the additional path and header file search path:

 

2. Create a project: Create an empty project. Empty project

3. Set in build options:

3.1 set general options: optimize the level MCU model. If this model is not available, you can manually add it, for example,-mmcu = msp430afe253.

3.2 set the connection script search path: C: \ HighTec \ MSP430 \ msp430 \ lib \ ldscripts \ javasafe253

3.3 Add the following steps after building in the steps before and after building:

3.3.1 Use msp430-objcopy to convert *. elf to *. hex file:

Msp430-objcopy-O ihex $ (TARGET_OUTPUT_FILE) $ (TARGET_OUTPUT_DIR) $ (TARGET_OUTPUT_BASENAME). hex

3.3.2 use the msp430-size to calculate the size of the compiled code:

Msp430-size $ (TARGET_OUTPUT_FILE)

 

 

4. Set the parameters in Project Properties> build target:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.