Download gcc from here: http://sourceforge.net/projects/mspgcc/
After downloading, it is a zip package. Unzip it and then set the environment variables, for example:
export PATH=$PATH:$HOME/tools/mspgcc-20120406-p20120911/bin
You can compile a simple program to test it, for example:
#include
void main(void)
{
WDTCTL = (WDTPW | WDTHOLD); /* stop watchdog timer */
P2DIR = 0x08;
P2OUT = 0x08;
while (1); /* stop here */
}
Makefile is:
led.elf:main.c
msp430-gcc.exe -Os -mmcu=msp430f149 -o led.elf main.c
clean:
rm led.elf
Previous article:stm8 rtc clock
Next article:A problem in using sdcc interrupt
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- What are the modulation methods of variable frequency power supply?
- This week's highlights
- 3.3V powered half-duplex RS-485 transceiver
- Passive Device Wireless Charging Solution Coil Testing
- Understanding 28GHz 5G Communication Band RF Front-End Modules
- Wireless router principle
- Wireless Communication Basics
- How to remove this warning?
- Read the DSP6713 datasheet
- Interface Design between TMS320C6201/6701 DSP Processor and FLASH Memory