This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译后在 ARM 架构上运行的 MSP430Flasher

Guru**** 2582405 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/836999/msp430flasher-compiled-to-run-on-arm-architecture

您好!

我已经为 ARM 架构编译了 MSP430Flasher。 我必须进行一些小的更改。 因为我在任何地方都找不到指令、所以我会将它们发布在这里。 编译后的版本工作正常。

有两个步骤:编译 libmsp430和编译 MSP430Flasher。

对于交叉构建、我使用了 Debian Stretch x64。

注意:我必须向修补程序中添加.txt、并且应该将其删除。

libmsp430

MSP430Flasher 取决于库 libmsp430.so。 它也必须针对 armhf 架构进行编译。

1) 1)下载 MSP 调试堆栈源: MSPDS-OPEN-SOURCE

2) 2)摘录:

mkdir libmsp430
cd libmsp430
解压缩./slac460y.zip

3) Linux 补丁(感谢来自 dlbeer.co.NZ 的 Daniel Beer):

e2e.ti.com/.../slac460y_2D00_linux.patch.txt

cd libmsp430
patch -p1<./slac460y-linux.patch 
CD .

4) 4) ARM 补丁:

e2e.ti.com/.../slac460y_2D00_arm.patch.txt

cd libmsp430
patch -p1<./slac460y-arm.patch
cd ..

5) 5)安装交叉编译器:

sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

6) 6)使用 MultiArch 安装构建依赖项:

sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install libboost-system1.62-dev:armhf libboost-filesystem1.62-dev:armhf libboost-date-time-time-1.62-dev:armhf boost-threado1.62-dev:arm
HF armboost-dev-time-libhfoost:libhidf-dev-libhrdf:libhidf-dev-libhrdf armhboost:libhidf armhboost:libhidf armh

7) 7)构建:

cd libmsp430
make
cd ..

8) 8)安装到 ARM 目标:

/usr/local/lib/libmsp430.so 
sudo ldconfig

9)安装对 ARM 目标的依赖项(假设它也在运行 Debian Stretch):

sudo apt-get 更新 
sudo apt-get install libboost-system1.62.0 libboost-filesystem1.62.0 libboost-date-time1.62.0 libboost-timo1.62.0 libboost-thread1.62.0 libhidapi-libbusb0 libusb-1.0-0

MSP430Flasher

1) 1)下载 MSPFlasher-1_03_20_00-linux-installer.zip: msp430-flaser

2) 2)解压缩:

将 MSPFlasher-1_03_20_00-linux-installer.zip 解压缩 

3) 3)运行以提取源:

MSPFlasher-1.3.20-linux-installer.run --mode unattended --prefix ./mspflasherfull 

4) 4)仅保留源文件夹:

mv ./mspflasherfull/Source ./mspflasherrm
-r ./mspflasherfull

5) 5)修补 mspflaser 以编译 ARM 并解决一些问题:

e2e.ti.com/.../mspflasher_2D00_arm_2D00_fixes.patch.txt

cd mspflaser
patch -p1<./mspflasher-arm-fixes.patch
cd ..

6) 6)构建:

CD mspflaser
制作
CD ..

7) 7)安装到目标:

/usr/local/bin/MSP430Flasher

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Richard、

    感谢您分享这些详细信息。 我相信这将对我们社区的其他人有所帮助!

    此致、

    James

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    非常有趣。

    感谢您的分享。

    此致、

    Luis R