aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Lopes <PedroLopes@users.noreply.github.com>2015-12-30 13:25:08 +0100
committerPedro Lopes <PedroLopes@users.noreply.github.com>2015-12-30 13:25:08 +0100
commit1e4c79873110463c34c4eb469ac2e887cca2d4fe (patch)
tree505994c2739242d886d4bb5bf200b72c6260ea06
parentcf5515ee73eff90128a59ffccb2c7bccdfcbc826 (diff)
downloadicestorm-1e4c79873110463c34c4eb469ac2e887cca2d4fe.tar.gz
icestorm-1e4c79873110463c34c4eb469ac2e887cca2d4fe.tar.bz2
icestorm-1e4c79873110463c34c4eb469ac2e887cca2d4fe.zip
edited the osx notes to with better readibility
-rw-r--r--docs/notes_osx.md28
1 files changed, 18 insertions, 10 deletions
diff --git a/docs/notes_osx.md b/docs/notes_osx.md
index 5acbd62..6b542d6 100644
--- a/docs/notes_osx.md
+++ b/docs/notes_osx.md
@@ -4,28 +4,36 @@ The toolchain should be easy to install on OSX platforms. Below are a few troubl
## installing ftdi library
- libftdi (allows you to have .so lib binary and the ftdi.h header)
libftdi has been renamed to libftdi0, so either do:
-> `port install libftdi0` (note that ports installs the tool to /opt instead of /usr, see next note)
-> `brew install libftdi0`
+
+`port install libftdi0` (note that ports installs the tool to /opt instead of /usr, see next note)
+
+`brew install libftdi0`
## iceprog make error on "ftdi.h not found"
Note that Mac Ports installs to /opt instead of /usr, so change the makefile's first two lines to:
+
` LDLIBS = -L/usr/local/lib -L/opt/local/lib -lftdi -lm`
+
` CFLAGS = -MD -O0 -ggdb -Wall -std=c99 -I/usr/local/include -I/opt/local/include/`
+
Basically you are indicating where to find the lib with -L/opt/local/lib and where to find the .h with -I/opt/local/include/
## yosis make error on "<tuple> not found"
This is a compiler issue, i.e., you are probably running on clang and you can circumvent this error by compiling against another compiler.
Edit the Makefile of yosis and replace the two first lines for this, i.e., comment the first line (clang) and uncomment the second (gcc):
+
`#CONFIG := clang`
+
` CONFIG := gcc`
-## error "Can't find iCE FTDI USB device (vedor_id 0x0403, device_id 0x6010)." while uploading code to FPGA (e.g., >iceprog example.bin)
-You need to unload the FTDI driver. (notes below are from Mountain Lion, 10.8.2)
-First check if it is running:
-`> kextstat | grep FTDIUSBSerialDriver`
-If you see if on the kextstat, we need to unload it.
-`> sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver`
+## error "Can't find iCE FTDI USB device (vedor_id 0x0403, device_id 0x6010)." while uploading code to FPGA (e.g., `iceprog example.bin`)
+You need to unload the FTDI driver. (notes below are from Mountain Lion, 10.8.2).
+First check if it is running: `kextstat | grep FTDIUSBSerialDriver`
+
+If you see if on the kextstat, we need to unload it: `sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver`
+
Repeat the kextstat command and check that the driver was successfully unloaded.
-Repeat your `>iceprog example.bin`
-Note: On newer OSes perhaps you need to also kextunload the com.apple.driver.AppleUSBFTDI
+Repeat your `iceprog example.bin`
+
+Note: On newer OSes perhaps you need to also kextunload the `com.apple.driver.AppleUSBFTDI`