MSPBSL_Scripter编译

The BSL Scripter is a PC application that is available for Windows, Linux and Mac OS X. It is a user interface which allows to easily communicate with the BSL on MSP430 and MSP432 devices to modify the device’s memory via UART, I2C, SPI or USB. Supported programming adapters are the MSP-BSL programmer (‘BSL Rocket’) and the MSP-FET

1. boost
下载http://www.boost.org
编译

# ./bootstrap.sh
Bootstrapping is done. To build, run:
./b2
# ./b2

如需交叉编译http://blog.csdn.net/zhangxuechao_/article/details/73527784

2. hidapi
下载https://github.com/signal11/hidapi/releases
编译

# ./bootstrap 
# ./configure
checking for libudev... no

  Library libudev was not found on this system.
  Please install it and re-run ./configure

# sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev

如需libusb移植http://blog.csdn.net/zhangxuechao_/article/details/73551395

3. MSPBSL_Scripter
需要手动拷贝hidapi编译出的.o和.h文件到当前路径下。但是源码README里面写的真的不怎么样,各种错误,还需要自己去猜。而且makefile写的也有很多毛病
下载
http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBSL_Scripter/latest/index_FDS.html
准备

# cd /MSPBSL_Scripter_linux32/SourceCode
# mkdir ThirdParty
# cd ThirdParty
# mkdir include lib
# cp /hidapi-hidapi-0.8.0-rc1/hidapi/hidapi.h ./include/
# cp /hidapi-hidapi-0.8.0-rc1/libusb/hid.o ./lib/hid-libusb.o

Makefile

# export BIT32=1    //环境变量
#CXXFLAGS += -static    //注释
LIBS += -ludev      //添加
原文地址:https://www.cnblogs.com/zhangxuechao/p/11709662.html