Main /
WifiCc3000Follow these steps to build the libraries offline. Make sure the libraries are in the $PTII/vendors/mbed/libraries/ folder K64F 1. Go to: http://developer.mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/ 2. Click on 'Export to Desktop IDE' 3. Choose the target as 'K64F' and the tool chain as 'GccArm' 4. Unzip the folder in $PTII/vendors/mbed/libraries/K64F/ 5. Go into the folder cc3000_hostdriver_mbedsocket 6. Edit the Makefile. It should look like this: #Replace $PTII with the absolute path because Makefiles don't like environment variables GCC_BIN = $PTII/vendors/mbed/gcc-arm/bin/ PROJECT = cc3000_hostdriver_mbedsocket OBJECTS = ./cc3000_event.o ./cc3000_hci.o ./cc3000_netapp.o ./cc3000_simplelink.o ./cc3000_spi.o ./cc3000.o ./cc3000_wlan.o ./cc3000_security.o ./cc3000_nvmem.o ./cc3000_socket.o ./Socket/Socket.o ./Socket/UDPSocket.o ./Socket/Endpoint.o ./Socket/TCPSocketConnection.o ./Socket/TCPSocketServer.o SYS_OBJECTS = INCLUDE_PATHS = -I. -I./Socket -I./Helper -I../../mbed -I../../mbed/TARGET_K64F -I../../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM -I../../mbed/TARGET_K64F/TARGET_Freescale -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F INCLUDE_PATHS += -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/TARGET_FRDM -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/gpio -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device/device -I../../mbed/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device/MK64F12 LIBRARY_PATHS = LIBRARIES = LINKER_SCRIPT = ../../mbed/TARGET_K64F/TOOLCHAIN_GCC_ARM/K64FN1M0xxx12.ld 7. Also change the .cpp.o section to use gnu++11 instead of gnu++98 .cpp.o: $(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++11 -fno-rtti $(INCLUDE_PATHS) -o $@ $< 8. Run make KL25Z 1. Go to: http://developer.mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/ 2. Click on 'Export to Desktop IDE' 3. Choose the target as 'KL25Z' and the tool chain as 'GccArm' 4. Unzip the folder in $PTII/vendors/mbed/libraries/KL25Z/ 5. Go into the folder cc3000_hostdriver_mbedsocket 6. Edit the Makefile. It should look like this: #Replace $PTII with the absolute path because Makefiles don't like environment variables GCC_BIN = $PTII/vendors/mbed/gcc-arm/bin/ PROJECT = cc3000_hostdriver_mbedsocket OBJECTS = ./cc3000_event.o ./cc3000_hci.o ./cc3000_netapp.o ./cc3000_simplelink.o ./cc3000_spi.o ./cc3000.o ./cc3000_wlan.o ./cc3000_security.o ./cc3000_nvmem.o ./cc3000_socket.o ./Socket/Socket.o ./Socket/UDPSocket.o ./Socket/Endpoint.o ./Socket/TCPSocketConnection.o ./Socket/TCPSocketServer.o SYS_OBJECTS = INCLUDE_PATHS = -I. -I./Socket -I./Helper -I../../mbed -I../../mbed/TARGET_KL25Z -I../../mbed/TARGET_KL25Z/TARGET_Freescale/TARGET_KLXX -I../../mbed/TARGET_KL25Z/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z LIBRARY_PATHS = LIBRARIES = LINKER_SCRIPT = ../../mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld 7. Also change the .cpp.o section to use gnu++11 instead of gnu++98 .cpp.o: $(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++11 -fno-rtti $(INCLUDE_PATHS) -o $@ $< 8. Run make |