The ARTIK 053 is a SOC for Wi-Fi™ IoT solutions. The ARTIK 053 has a Wi-Fi subsystem, security subsystem, and application subsystem.
Information
Environment Set-up
How to program a binary
ROMFS
Configuration Sets
The Samsung ARTIK™ 053 Module is a highly integrated module for secure Internet of Things (IoT) devices that require Wi-Fi®. It is based on an ARM® Cortex® R4 core with on-chip memories, a complete 2.4GHz Wi-Fi® Phy, MAC layer processing, a large complement of standard digital buses, a PUF-based security system and power management. The module is packaged with additional external Flash memory, a hardware Secure Element and a single integrated 2.4GHz structural antenna. Aimed especially at power-sensitive devices needing Wi-Fi®, the ARTIK 053 Module provides excellent performance in a variety of environments, with a feature set tailored specifically for IoT end nodes.
OpenOCD is used to program and debug.
OpenOCD v0.10.0 is recommended and can be installed like below, but pre-built OpenOCD binaray on tools/openocd/linux64(or 32) can be used without installing.
sudo apt-get build-dep openocd
git clone --depth 1 -b v0.10.0 https://git.code.sf.net/p/openocd/code openocd-code
cd openocd-code
./bootstrap
./configure
make
sudo make install
There are two methods, using OpenOCD or script.
After building Tizen RT, follow below steps at $TIZENRT_BASEDIR/os folder.
TIZENRT_BASEDIR was set at [Getting the sources] tab of Quick Start.
make download ALL
This makes complete set of binaries programmed.
This is used to program a partial binary.
Export 'OPENOCD_SCRIPTS' to environment variable.
export OPENOCD_SCRIPTS=$TIZENRT_BASEDIR/build/configs/artik053/tools/openocd
At first, programming the complete set of binaries are needed.
openocd -f artik053.cfg -c ' \
flash_write bl1 ../build/configs/artik053/bin/bl1.bin; \
flash_write bl2 ../build/configs/artik053/bin/bl2.bin; \
flash_write sssfw ../build/configs/artik053/bin/sssfw.bin; \
flash_write wlanfw ../build/configs/artik053/bin/wlanfw.bin; \
flash_write os ../build/output/bin/tinyara_head.bin; \
exit'
Once the complete binaries are successfully programmed, each partition can be updated seperately with new one.
openocd -f artik053.cfg -c ' \
flash_write os ../build/output/bin/tinyara_head.bin; exit'
Before executing below steps, execute generic steps, step 1 and step 2.
- Modify partition configs.
Below steps creates ROMFS partition with size 400KB at next of user partition.- Split user partition size from (1400) to (1000, 400) in ARTIK053_FLASH_PART_LIST
Board Selection -> change values at Flash partition size list (in KBytes)
- Append "romfs" at next of smartfs to ARTIK053_FLASH_PART_TYPE
Board Selection -> append string at Flash partition type list
- Append "rom" at next of user to ARTIK053_FLASH_PART_NAME
Board Selection -> append string at FLash partition name list
- Split user partition size from (1400) to (1000, 400) in ARTIK053_FLASH_PART_LIST
- Build Tizen RT
- Prepare ROM image
sh $TIZENRT_BASEDIR/../apps/tools/mkromfsimg.sh
- Modify partition map to $TIZENRT_BASEDIR/../build/configs/artik053/tools/openocd/partition_map.cfg
user { "USER R/W" 0x04620000 0x000FA000 0 } rom { "ROM FS" 0x0471A000 0x00064000 0 }
- Program a ROM image
flash_write rom ../bin/rom.img; \
- Mount on device
mount -t romfs /dev/smart4rom9 /rom
will be updated