Quickstart Guide

Quickstart Guide Flashing Your Own Firmware
©PLUX wireless biosignals 2018 | BITalino R-IoT Quick Start Guide 1.0.0 | 2018.09
Have any questions? Visit:
DISCLAIMER BITalino is not a medical device nor is it intended for medical diagnosis; it is provided to you "as is" and we make no express or implied warranties whatsoever with respect to its
functionality, operability, or use, including, without limitation, any implied warranties, fitness for a particular purpose, or infringement. We expressly disclaim any liability whatsoever for any
direct, indirect, consequential, incidental or special damages, including, without limitation, lost revenues, lost profits, losses resulting from business interruption or loss of data, regardless of the
form of action or legal theory under which the liability may be asserted, even if advised of the possibility of such damages.
©PLUX wireless biosignals 2018 | BITalino R-IoT Quick Start Guide 1.0.0 | 2018.09
www.bitalino.com for software and documentation | forum.bitalino.com to share your thoughts and projects | bitalino@plux.info to talk with our team
1. Download and install Energia version 17 from energia.nu/download
2. Modify the cc3200.ld file and change the HEAP_SIZE value to 0x00007500.
Windows: this file is located in
C:\Program Files(x86)\energia-0101E0017\hardware\cc3200\cores\cc3200
Mac OS: right-click on the Energia application and select "show package contents"
then go to Contents/Resources/Java/hardware/cc3200/cores/cc3200
3. Additionally, the WiFiUdp.cpp source file must be modified (hardware\cc3200\libraries\Wifi), as its
function parsePacket() blocks during 10ms. The code has been modified to reduce this timeout to
1ms (change timeout.tv_usec = 1000 instead of 10000) to maintain a low latency and a 200Hz
update rate of the IMU streaming.
4. We also provide a pre-configured version of Energia 17 (Windows and MacOS) for an easier setup of
the environment; check out the root of the following GitHub repository:
github.com/BITalinoWorld/firmware-bitalino-riot
5. Get the SLFS library from github.com/Ircam-R-IoT/SLFS and copy it into Documents/Energia/libraries
6. Get the BITalino Energia library from github.com/Ircam-R-IoT/bitalino-energia-library and drop it into
Documents/Energia/libraries
7. Open the firmware.ino file with Energia and click the "Verify" button in the upper left corner. If it
compiles without errors, you're ready to upload your own code to the BITalino R-IoT board.
To upload your firmware the following steps are needed:
1 32
Turn On
the R-IoT
LED
Connect
Battery
BATTTERY
PLUGS HERE
Plug
USB Cable
USB CABLE
PLUGS HERE
RESET
FLASH
5 64
Press
Buttons
Upload
Firmware
Open
Energia
Connect to the R-IoT’s serial port. Keep holding both buttons - DO NOT RELEASE. Keep pressing FLASH.
Go to the TOOLS menu.
Click the UPLOAD button.
You will see a “Compiling Sketch” message.
Hold both buttons until it changes to “Uploading
then release only the RESET button.
Press the RESET and FLASH buttons
simultaneously.
RESET
FLASH
File Edit Sketch Tools Help
RESET
FLASH
8 97
Release
Flash Button
Reset
the Device
Done
Uploading
This output is expected and does not
compromise the firmware uploading process.
Wait for 5 seconds after releasing the button
and then proceed to the next step.
You're ready to R-IoT!
You should see some normal debugging messages. Press the RESET button, wait for 5 seconds
and press the RESET button again.
You can now release
the FLASH button.
RESET
FLASH
File Edit Sketch Tools Help
Plug the battery onto the socket
found on the R-IoT block.
Turn on your R-IoT device. Plug the USB cable onto the connector
found on the R-IoT block.