Hi I succeed to get the CC3000 connected and execute the example of the youtube video.
First of all you need to be able to cross compile the firmware, to do this I've my ubuntu 12.04 - 64 virtual machine that helps a lot.
I've started installing the Cross Compiler; must have are the following packages :
apt-get install build-esentials git zlib1g-dev libtool flex bison libgmp3-dev libmpfr-dev libncurses5-dev libmpc-dev autoconf texinfo build-essential libftdi-dev libusb-1.0.0-dev ia32-libs
then I've downloaded the following package using the wget
wget --no-check-certificate https://launchpad.net/gcc-arm-embedded/ ... ux.tar.bz2
extracted the cross compiler in a temp directory
tar xjvf gcc-arm-none-eabi-4_7-2014q2-20140408-linux.tar.bz2
moved to the the opt
mv gcc-arm-none-eabi-4_8-2014q2 /opt/ARM
added the compiler to the path
echo "PATH=$PATH:/opt/ARM/bin" >> ~/.bashrc
Now you need to source the ~/.bashrc then the cross compiler is available.
check if the arm-none-eabi-gcc is available
gian@ubuntu$ which arm-none-eabi-gcc
clone the micrpython source from github.
gian@ubuntu$ git clone https://github.com/micropython/micropython.git
now you have the source code locally copied, then go here
gian@ubuntu$ cd /home/gian/MICROPY/micropython/stmha
then you can try to compile:
It will take a little while, at the end you will have your firmware compiled and ready in the build directory
( the default will be build-PYBV10, you can customize just changing the build option during the make call )
this is what you will see at the end of the compile process:
text data bss dec hex filename
267392 396 28732 296520 48648 build-PYBV10/firmware.elf
you can upload then the firmware, using the dfu-uilt command or make deploy.
( This is pretty easy if you have the MAC there is a small tutorial search it in the forum, if you have windows follow the how to from Damien )
once is uploaded you can check if you are able to access the micropython, this will confirm that your cross compile process is stable, you can now play around and check the wifi functionality
I've connected the CC3000 using the following pins setup:
MOSI - Y8
MISO - Y7
CLK - Y6
PIN_CS - Y5
PIN_EN - Y4
PIN_IRQ - Y3
at the beginning of this file:
https://github.com/micropython/micropyt ... /pybcc3k.c
You can find the pins setup defines.
Then the source code in the git has already the CC3000 driver configured what you need to do is to enable it.
Open this file located here micropython/stmhal/boards/PYBV10/mpconfigboard.h then activate the module cc3 changing the value of this define
#define MICROPY_HW_ENABLE_CC3K (0)
#define MICROPY_HW_ENABLE_CC3K (1)
Then compile it again.
If found that in the pybwlan.c row 79 and 262 there is a casting problem (byte*) won't be casted to const char* what I did, quick and dirty I've changed
the casting (byte*) to (char*) and recompiled.
Then uploaded again to the micropyboard and I was able to connect to my WiFi access point using the code example you can see in the YouTube video:
>>> ip = wlan.ip()
Hope this helps
P.S: The rainy German weekend was pretty fruitful