-
Notifications
You must be signed in to change notification settings - Fork 2
/
README-BUILD.txt
executable file
·106 lines (69 loc) · 2.95 KB
/
README-BUILD.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Building MSPDebugStack
======================
1. Windows
----------
1.1 Development environment
---------------------------
* You will need to have Microsoft Visual Studio 2010 or later installed.
* You will need to have a IAR EW430 5.30 or later installed if you want to
build the firmware. IAR EW430 5.52 is required to build the BSL.
1.2. Dependencies
-----------------
In order to compile the DLL with MSVC 2010 you will need:
* boost
-Download from http://www.boost.org
-Version used in official build is 1.53
-Visual Studio must be configured to find boost headers and libs
* hidapi
-Download from https://github.com/signal11/hidapi/downloads
-Version used in official build is 0.7.0
-hidapi.h must be copied to ThirdParty\include
-hidapi.lib must be copied to ThirdParty\lib
To compile the firmware and/or BSL with IAR EW430, the following tools are required:
* srecord
-Download from http://sourceforge.net/projects/srecord/files/srecord-win32
-Version used in official build is 1.59
-srec_cat.exe must be copied to Bios\tools
* sed
-Any Windows port, for example from http://sourceforge.net/projects/unxutils
-sed.exe must be copied to Bios\tools
1.3.1 Building the firmware (optional)
--------------------------------------
* Build all projects in Bios\bios_core.eww
* Build all projects in Bios\eZ_FET_Bios.eww
1.3.2 Building the BSL (optional)
---------------------------------
* Build the project in ThirdParty\BSL430_Firmware
1.3.3 Building the DLL
----------------------
* Build BSL430_DLL.sln in ThirdParty\BSL430_DLL
* Build DLL430_v3_2010.sln
2. Linux
--------
2.1 Development environment
---------------------------
* You will need the GNU tool chain to use the existing Makefile.
2.2. Dependencies
-----------------
In order to compile the DLL with MSVC 2010 you will need:
* boost
-Download from http://www.boost.org
-Version used in official build is 1.53
-Boost should be built with BOOST_THREAD_PATCH
(add "define=BOOST_THREAD_PATCH" to the call to bjam)
* hidapi
-Download from https://github.com/signal11/hidapi/downloads
-Version used in official build is 0.7.0
-The MSPDebugStack project assumes hidapi being built against libusb-1.0
(the default used in the Makefile coming with hidapi 0.7.0)
-hidapi.h must be copied to ThirdParty\include
-hid-libusb.o must be copied to ThirdParty\lib
2.3 Building the shared object
------------------------------
* run "make STATIC=1 BIT32=1" in MSPDebugStack
-If boost is not globally installed, use "make BOOST_DIR=<path to boost>".
The makefile assumes headers in boost/ and libraries in stage/lib/ of the
specified directory.
-Linking dependencies statically (STATIC=1) is advised if the library will
be copied between machines. A 32bit build (BIT32=1) is required for use
with existing IDEs.