MSP430開發(fā)環(huán)境MSPGCC + Codeblocks
8)在編譯之前還有一些重要的工作要做。
Project->Propertise..->Build targets
以下內(nèi)容也可以在上面紅色字體的頁面設(shè)置(不推薦)
9)Project->Build Options..
我的設(shè)置:
msp430-objcopy -O ihex bin/Release/CB_MSP430_test001.elfbin/Release/CB_MSP430_test001.a43
D:/mspgcc/msp_fet/MSP430Flasher.exe -n msp4302553 -w bin/Release/CB_MSP430_test001.a43 -v -g -z [VCC]
至此,設(shè)置完成。
可以點(diǎn)擊運(yùn)行了。成功后顯示信息~~
-------------- Build: Release in CB_MSP430_test001 ---------------
msp430-gcc.exe -Wall -mmcu=msp430g2553-Os -O3 -ID:mspgccmsp430include -ID:mspgccinclude-c CB_MSP430_test001.c -o objReleaseCB_MSP430_test001.o
msp430-gcc.exe -LD:mspgccmsp430libldscriptsmsp430g2553 -LD:mspgccmsp430lib -LD:mspgcclib-o binReleaseCB_MSP430_test001.elf objReleaseCB_MSP430_test001.o -s
Output size is 584.00 bytes
Running target post-build steps
msp430-objcopy -O ihex bin/Release/CB_MSP430_test001.elfbin/Release/CB_MSP430_test001.a43
D:/mspgcc/msp_fet/MSP430Flasher.exe -n msp4302553 -w bin/Release/CB_MSP430_test001.a43 -v -g -z [VCC]
**ERROR: Unable to access log file. Log disabled.
**Please make sure the directory Log exists inlinewith the executable.
Evaluating additional triggers...done
Initializing interface on TIUSB port...done
Checking firmware compatibility...done
Reading FW version...done
Reading HW version...done
Powering up...done
Configuring...done
Accessing device...done
Reading device information...done
Loading file into device...done
Verifying transfer...done
Resettingdevice...done
Refreshing registers...
/* ----------------------------------------------------------------------------
* UseCase : MSP430Flasher.exe
* Arguments : -n MSP4302553 -w bin/Release/CB_MSP430_test001.a43 -v -g -z [VCC]
* ATTENTION: Default options used due to invalid argument list.
* ----------------------------------------------------------------------------
* Driver : loaded
* Dll Version : 20409001
* FwVersion : 30394216
* Interface : TIUSB
* HwVersion : E 2.0
* Mode : AUTO
* Device : MSP430G2xx3
* EEM : Level 1, ClockCntrl 1
* Prog.File : bin/Release/CB_MSP430_test001.a43 (ERASE_ALL, verified = TRUE)
* BSL Unlock: FALSE
* InfoA Access: FALSE
* VCC ON : TRUE
* UseCase specific tasks: ----------------------------------------------------
* Powering up...done
* Disconnectingfromdevice...
* ----------------------------------------------------------------------------
* Driver : closed (No error)
* ----------------------------------------------------------------------------
*/
Process terminated withstatus0 (0 minutes, 7 seconds)
0 errors, 0 warnings本文引用地址:http://m.butianyuan.cn/article/201612/324661.htm
LaunchPad下載:http://www.51hei.com/f/TI_LaunchPad.zip
評(píng)論