[Pyboard]How to compile cc3100 driver

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
neoclassic
Posts: 8
Joined: Wed Aug 30, 2017 8:58 am

[Pyboard]How to compile cc3100 driver

Post by neoclassic » Tue Nov 13, 2018 8:10 am

Hello all, I need to compile the existing cc3100 driver to use it in an application. I have no problem to compile de cc3000 one using the command "make clean all BOARD=PYBV11 MICROPY_PY_CC3K=1" but in spite of existinting the cc3100 in my dirvers directory (from a cloned repo) the command "make clean all BOARD=PYBV11 MICROPY_PY_CC31K=1" does not compile it, what I am doing wrong?.


~/micropython/ports/stm32$ make clean all BOARD=PYBV11 MICROPY_PY_CC31K=1
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -rf build-PYBV11
mkdir -p build-PYBV11/genhdr
GEN build-PYBV11/genhdr/pins.h
GEN stmconst build-PYBV11/modstm_qstr.h
make: *** No rule to make target 'modcc31k.c', needed by 'build-PYBV11/genhdr/qstr.i.last'. Stop.


Thank you very much.

neoclassic
Posts: 8
Joined: Wed Aug 30, 2017 8:58 am

Re: [Pyboard]How to compile cc3100 driver

Post by neoclassic » Tue Nov 13, 2018 8:20 am

I forgot to mention that I have included this lines in the make file just to try but no success:

# for CC3100 module
ifeq ($(MICROPY_PY_CC31K),1)
CC3100_DIR=drivers/cc3100
INC += -I$(TOP)/$(CC3100_DIR)/inc
CFLAGS_MOD += -DMICROPY_PY_CC31K=1
# Added -fno-strict-aliasing so we can compile the CC31K code from TI
CFLAGS_MOD += -fno-strict-aliasing
SRC_MOD += modcc31k.c
SRC_MOD += inet_ntop.c inet_pton.c
#cc31k.c
SRC_MOD += $(addprefix $(CC3100_DIR)/src/,\
cc31kdrv.c \
device.c \
driver.c \
flowcont.c \
fs.c \
netapp.c \
netcfg.c \
nonos.c \
socket.c \
spawn.c \
wlan.c \
)
endif

Post Reply