-
Notifications
You must be signed in to change notification settings - Fork 3
/
Readme.Darwin
62 lines (44 loc) · 1.81 KB
/
Readme.Darwin
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
This is a simplified readme covering MasOSX aspects of build and use xc3sprog.
This is not a complete HOWTO, so don't hesitate to read other README's supplied in this project.
1. Compilation environment
following installations require before proceeding to compile xc3sprog:
- XCode SDK
downloadable from here
https://developer.apple.com/xcode/download/
- Homebrew
downloadable from here
http://brew.sh/
- SVN
just type in the terminal
brew install svn
- CMake
just type in the terminal
brew install cmake
- libusb
just type in the terminal
brew install libusb
- libftdi
just type in the terminal
brew install libftdi
2. Build sequence
following the original README
- checkout source code using SVN:
svn co https://xc3sprog.svn.sourceforge.net/svnroot/xc3sprog/trunk xc3sprog
- change folder inside xc3sprog and create subfolder build
cd xc3sprog
mkdir build
- change folder inside build and execute cmake (double dots after the 'cmake' is important)
cd build
cmake ..
- once cmake discover all the components necessary for the build
(require at least libusb and libftdi - proceed with the classical make)
make
- if the error happened (usually cmake coudn't find libftdi) it means file Findlibftdi.cmake hasn't been patched yet
(the hint is simple, cmake is looking for ftdi yet it should look for the ftdi1 except for the header)
3. Execution environment
- useful tool inside the project is detectchain to verify if FTDI actually has any chip connected to JTAG pins
./detectchain -c ftdi -d /dev/tty.usbserial-fd12
- resolving conflict with the original AppleUSBFTDI driver (aka KEXT:)
at first trial to connect to the peripherals the error about unable to acquire port will show up
unload original KEXT from the system and proceed again with the commands no more problems to happend
sudo kextunload -b com.apple.driver.AppleUSBFTDI