forked from telldus/tellstick-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (35 loc) · 1.38 KB
/
README
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
This is the source for the firmware for TellStick Net.
The firmware must be compiled on a Linux machine.
Prerequisites
-------------
The following software is required to build the firmware for TellStick Net.
* Hi-Tech C Pro for the PIC18 MCU Family, version 9.63PL3 or later.
The version 9.80 seems to be incompatible with the TCP/IP stack. Use an earlier version
until this is resolved (read more: http://developer.telldus.com/ticket/206).
http://www.htsoft.com
* CMake version 2.8.0 or later
http://www.cmake.org
* Git
http://git-scm.com
* atftp (for automatic firmware uploading)
ftp://ftp.mamalinux.com/pub/atftp/
Prepare the source
------------------
Check out the source from the Telldus repository. We use submodules so
they must also be initialized.
git clone http://git.telldus.com/tellstick-net.git
cd tellstick-net
git submodule init
git submodule update
Compile the source
------------------
We recommend you do an "out of source" build. Create a folder and
initiate a cmake build cache in it.
mkdir build
cd build
cmake ../firmware -DPICC18_PATH=<path to picc18> -DDEBUG=n -DDEVICE_ADDRESS=<ip address for TellStick Net>
Now build the source.
make
The buildscript automatically uploads the new firmware to the device after a successful build.
If you don't need the automatic upload function, pass -DDO_BOOTLOADING_OVER_TCPIP=n when initiating
the CMake cache.