The next couple blog posts are about configuring Linux on the Snickerdoodle. In order to do so, one must be able to communicate with the board via the USB port. You will need to download the STM USB-UART driver here before the Snickerdoodle is recognized by your computer. You will also need to download a terminal program such as Putty or TeraTerm. Once you have downloaded the UART driver an a terminal program, power on the Snickerdoodle by connecting it to the PC via the USB cable. After powering on, open up Tera Term, click the "Serial" option and select the STMicroelectronics Virtual Com Port. If you do not see the port you might have to unplug the Snickerdoodle, close Tera Term, and try it again. Make sure that you have a properly configured SD card installed in the system.
Once the system boots you will be prompted for some login information. The login and password for the factor default SD card image is 'snickerdoodle' and 'snickerdoodle'
After logging in you will be prompted to type in your own password.
After setting up your own password, be sure to write it down somewhere. The next step is to get super user privileges by typing 'sudo -i' and then your new password.
Also notice that when you type 'ifconfig' that wlan0 doesn't have any IP address associated with it. We will be fixing that in a bit.
Navigate to the /etc folder and type 'vi wpa_supplicant.conf' in order to open up the text editor.
You will need to modify your wpa_supplicant.conf file to match the one below. There will be two differences, namely the name of your routers SSID and your router password. Also for those that are not VI experts, here is a link to some useful VI commands. The technique I recommend is to type the network section into a text editor on your PC and then to copy it onto the PC clipboard. With Tera Term, one can simply right click and then paste the whole thing into the file. You may need to type "Shift i" beforehand though to put the VI editor into 'insert' mode.
After typing in your network credentials, save them by typing:
When you reboot, login, and then type 'ifconfig'. You should see that you now have a valid IP address from your router!