Compile and Load Image to ARTIK 053
With the SDK loaded onto the host system, you're ready to configure, code, and go!
Pre-defined configurations of the ARTIK 053 are available through the SDK.
Go to the Tizen RT build environment directory.
Run the script for your chosen board/configuration.
The board name will always be
artik053 for the ARTIK 053 Starter Kit. For your first run through, we suggest you use the
nettest configuration. So the command line would be
The script will initialize the Tizen RT configuration, readying it for building.
Building Tizen RT, complete with all your apps and code, is simpler than you might expect.
You should compile the initialized configuration once, unmodified, to verify that it will build and run as expected. After that, you'll want to try coding changes to the files using your favorite editor. Wait until the next article so you'll have all the tools available.
Compile First Time
From your bash or Linux prompt:
Make sure the build process can find the toolchain. Verify that the setting is correct (you should have set it in
Change to the Tizen RT operating system directory.
Build the image.
If any of the included applications have unmet dependencies, you could get compilation errors. If so, disable the applications(s) from the menu (refer to the next article) and try again.
Building creates a
tinyara_head.bin file in the
tinyara/build/output/bin directory. It contains the compiled Tizen RT binary image for the ARTIK 053.
After you have built and loaded the image the first time, you'll probably want to make some code changes and recompile.
When you are ready to recompile, run:
If you optionally want to start again from the original project:
Set the initial configuration again as you did in Configuring Build.
osdirectory as before.
The ARTIK 053 hardware JTAG port is accessed through OpenOCD. Prepared scripts take care of all the necessary flash memory operations.
- Make sure you have the FTDI
libusbdriver installed to enable JTAG (refer to previous article)
Use a bash window on the PC to run the scripts and perform uploads, not the terminal emulator window (which goes to the Starter Kit debug interface). The scripts automatically identify and use the correct USB connection for communicating over JTAG.
Open a bash window on your development PC.
If you are using VirtualBox, switch the FTDI USB ports to its control.
Go to the Tizen RT build OpenOCD directory.
Flash the required images to the ARTIK 053 module. Copy and paste these lines.
1 2 3 4 5 6 7 8 9
./linux64/openocd -f artik053.cfg -c \ ' \ flash_write bl1 ../../bin/bl1.bin; \ flash_write bl2 ../../bin/bl2.bin; \ flash_write sssfw ../../bin/sssfw.bin; \ flash_write wlanfw ../../bin/wlanfw.bin; \ flash_write os ../../../../output/bin/tinyara_head.bin; \ shutdown \ '
The first time, use all lines; after that you can flash just the
tinyara_head.bin file. If you get an erasure warning message, confirm that it is okay to proceed.
Does it exit immediately and not do a flash update? Maybe you forgot to switch the ports over to VirtualBox control (Devices » USB » FTDI…). Also try hitting the RESET button on the board.
That's all there is to it! The output of the script will display the fusing of each of the binary images associated with the ARTIK 053 module. Once complete, the ARTIK 053 module is ready to use.
Once an image is loaded onto the ARTIK 053 module, you'll use the UART interface to connect through the terminal emulator console as you did in the introductory section.
- If using VirtualBox and your terminal emulator is a Windows application, switch the USB ports back to Windows control.
- Open a terminal emulator as usual. The screen will initially be blank.
- Press Reset.
You should see messages related to the loaded Tizen RT versions. Once the boot messages are finished, hit Enter on the terminal keyboard to get a
TASH >> prompt.
TASH shell CLI interacts with the module to run any pre-loaded application, including your own.
A good place to try out this procedure is the
sensorbd_demo application; with it, you can run the Blink an LED tutorial.
Proceed to the
Kconfig article to install the customization tool, and follow its example to include the Sensor app in your
To recreate the onboarding environment that your ARTIK 053 module arrived with, follow these instructions.
- Change to the
artik-e2ebranch of Tizen RT as noted here.
- Configure the build from
./configure.sh artik053/typical(instead of
- Build and flash as usual.
You can do this without installing or running the