ARTIK530/ARTIK530S with no SD card based on Tizen 4.0

Contents

Installing Tizen Studio

Setting up ARTIK 530 or ARTIK 530s

Flashing Tizen Images

Tips

Installing Tizen Studio

If you have already installed Tizen Studio 3.0 and installed the 4.0 Mobile profile for the Main SDK and the IOT-Headed-4.0 and IOT-Headless-4.0 profiles for the Extension SDK, you can skip this section.

Otherwise, to install Tizen Studio and the required profiles for IoT development:

  1. Download and install the correct version of Tizen Studio 2.0 (or later) for your operating system from Tizen developer site.

  2. Open the Tizen Studio Package Manager, select the Main SDK tab, and install the 4.0 Mobile profile:

    Install the mobile profile

  3. Select the Extension SDK tab and install Extras. Extras includes IOT-Headed-4.0 and IOT-Headless-4.0 profiles:

    Install the headless profile

Setting up ARTIK 530 or ARTIK 530s

To configure the ARTIK 530 or the ARTIK 530s hardware board:

  1. Connect the 5V DC power supply to the board (marked with a red arrow). The following figure shows the bottom view of the board:

    ARTIK 530 power

  2. Set the DIP switch on the board as shown in the following figure (top view of the board):

    ARTIK 530 DIP switch

  3. Connect a USB serial cable (marked with a yellow box) and a separate USB OTG cable (the red box) to your Linux computer. The following figure shows the bottom view of the board on the left and top view on the right:

    ARTIK 530 USB serial and OTG connectors

  4. Boot the board by sliding the power switch (marked with a red box) to ON position and press the power push-button (the yellow box). The following figure shows the top view of the board:

    ARTIK 530 power switch

  5. Launch two shell prompts on your Linux computer. One for serial communication (serial shell) and the other for installing the drivers. For serial communication to the board, run a serial communication application, such as Minicom or PuTTY.

    To run Minicom and PuTTY:

    • Minicom example:

      Minicom can be used in Linux computer. Run the following command to run Minicom:

      $ sudo minicom -c on
      

      To configure Minicom:

      1. Go to the Minicom configuration settings menu by consecutively pressing Ctrl + A, Z, and O (the letter O).
      2. In the Serial Device field, set the correct USB port for serial communication. The format is /dev/ttyUSBX where X equals the number of the port.
      3. Modify the Hardware Flow Control field to No.
      +-----------------------------------------------------------------------+
      | A -    Serial Device      : /dev/ttyUSBX                              |
      | B - Lockfile Location     : /var/lock                                 |
      | C -   Callin Program      :                                           |
      | D -  Callout Program      :                                           |
      | E -    Bps/Par/Bits       : 115200 8N1                                |
      | F - Hardware Flow Control : No                                        |
      | G - Software Flow Control : No                                        |
      

      In the serial shell, log in with root/tizen:

      localhost login: root
      Password: tizen
      Welcome to Tizen
      
    • PuTTY example:

      Download PuTTY from the Internet and launch PuTTY.

      PuTTY Config

      To configure PuTTY:

      1. Select Serial connection type.
      2. Enter the serial line number for the board connected to your computer (it can be COMN where N is a natural number such as COM1, COM4, and so on) in the Serial line field.
      3. Type 115200 in the Speed field.
      4. Click Open.

      In the serial shell, log in with root/tizen:

      localhost login: root
      Password: tizen
      Welcome to Tizen
      

Flashing Tizen Images

Prerequisites

You must have the binary images in your computer. You can download the binary images from:

To make a device with a display, select Headed image, which consists of the UI framework. To make a device without a display, select Headless image.

Most of the flashing steps mentioned in this section for ARTIK 530 and ARTIK 530s are the same. Only step 4 is different.

Flashing eMMC (internal flash memory)

  1. Complete the following prerequisites:

  2. Set up the board connections. For more information, see ARTIK 530 or ARTIK 530s Set-up.

  3. Turn off and turn on the board. After the board is reset, the serial shell shows a number counting down next to the Hit any key to stop autoboot line. Before the count reaches 0, press Enter in the serial shell to stop the boot process and enter the bootloader mode.

    Board: ARTIK530 Raptor
    DRAM:  512 MiB
    HW Revision:    4
    MMC:   NEXELL DWMMC: 0, NEXELL DWMMC: 1
    In:    serial
    Out:   serial
    Err:   serial
    LCD#1:0x4, LCD#2:0x4, CAM#1:0x4, CAM#2:0x4
    ADD-ON-BOARD : 0xFFFF
    Net:
    Warning: ethernet@c0060000 (eth0) using random MAC address - xx:xx:xx:xx:xx
    eth0: ethernet@c0060000
    Hit any key to stop autoboot:  0 <Enter key>
    artik530#
    
  4. Flash the boot image:

    • ARTIK 530

      1. Download the tar.gz file from flash_boot_v2.tar.gz.

      2. Unzip the flash_boot_v2.tar.gz file to get the flash_boot.sh file and the bootimage directory.

        Note The file extension of the downloaded file is .tar_.gz. Modify it to .tar.gz before unzipping the file.
      3. In the serial shell, enter fastboot 0:

        artik530# fastboot 0
        
      4. In the Linux shell, run flash_boot.sh:

        $ ./flash_boot.sh
        
      5. Reboot the board and enter the bootloader mode again.

      6. In the serial shell, enter thordown 0 mmc 0:

        artik530# thordown 0 mmc 0
        
      7. In the Linux shell, run lthor to flash the boot image (which you downloaded in step 1):

        $ lthor tizen-4.0-unified_YYYYMMDD.V_iot-boot-armv7l-artik530.tar.gz
        
    • ARTIK 530s

      1. Download the tar.gz file from flash_boot_artik530s_v1.tar.gz.

      2. Unzip the flash_boot_artik530s_v1.tar.gz

        Note The file extension of the downloaded file is .tar_.gz. Modify it to .tar.gz before unzipping the file.
        $ tar xvf flash_boot_artik530s_v1.tar.gz
        ./artik530s/
        ./artik530s/os_3.0.0/
        ./artik530s/os_3.0.0/bl1-emmcboot.img
        ./artik530s/os_3.0.0/partmap_artik530s_tizen_emmc.txt
        ./artik530s/os_3.0.0/bl_mon.img
        ./artik530s/os_3.0.0/boot.img
        ./artik530s/os_3.0.0/bootloader.img
        ./artik530s/os_3.0.0/tizen_params.bin
        ./artik530s/os_3.0.0/README.A530S_os_3.0.0
        ./artik530s/os_3.0.0/loader-emmc.img
        ./artik530s/os_3.0.0/flash_boot_for_tizen.sh
        $
        
      3. Move to aritk530s/os_3.0.0/ and run flash_boot_for_tizen.sh

        $ cd artik530s/os_3.0.0/
        artik530s/os_3.0.0/$ ./flash_boot_for_tizen.sh
        
        Note For more information, see README.A530S_os_3.0.0.
  5. Flash the platform image:
    1. Reboot the board and enter the bootloader mode again.
    2. In the serial shell, enter thordown 0 mmc 0:
      artik530# thordown 0 mmc 0
      
    3. In the Linux shell, run lthor to flash the platform image (which you downloaded in step 1):
      $ lthor tizen-4.0-unified_YYYYMMDD.V_iot-headless-2parts-armv7l-artik530_710.tar.gz
      

    For detailed information, see https://wiki.tizen.org/Booting_Tizen_From_eMMC_On_ARTIK530.

  6. Open the Smart Development Bridge (SDB) connection:

    1. Enter the following command in the serial shell:
      root@localhost:~# sdb-mode.sh --on
      
    2. Verify whether SDB is connected, in the Linux shell of the host computer:

      ~$ sdb root on
      Switched to 'root' account mode
      ~$
      
      Note

      sdb execution file is available in the tools sub-directory of the directory where Tizen Studio is installed.

    3. Enter the sdb help command in the Linux shell of the host computer, for more information.

  7. Install connectivity drivers, see the next section.

Installing Drivers

  1. Connect Smart Development Bridge (SDB) as described in the previous section.

  2. Install the connectivity drivers

    • Download the plugin zip file from the ARTIK530(4.0) Plugin section at http://developer.samsung.com/tizendevice/firmware and follow the instructions.

       

      ARTIK530(4.0) Plugin section

    •  
    • For the case of the Linux shell (Linux), run the `sh` script given in the instructions. For example:
          $ ./ARTIK_530_plugin_tizen4.0.sh
      
    • For the case of the Command window (Windows), run the `bat` script given in the instructions. For example:
          > ARTIK_530_plugin_tizen4.0.bat
      

Tips

Setting up Wi-Fi

This section is not applicable if you want to connect your device to the SmartThings Cloud. In case of SmartThings devices, the device enables SoftAP mode during setup, therefore, you need not switch to Wi-Fi separately.

You can set up a Wi-Fi connection by running wifi_manager_test and entering the options 1 > 3 > 9 > b > c. If you set up the connection once, it reconnects automatically the next time you power cycle the device.

# wifi_manager_test
Test Thread created...<Enter>
Event received from stdin
Network Connection API Test App
Options..
1   - Wi-Fi init and set callbacks
2   - Wi-Fi deinit(unset callbacks automatically)
3   - Activate Wi-Fi device
4   - Deactivate Wi-Fi device
5   - Is Wi-Fi activated?
6   - Get connection state
7   - Get MAC address
8   - Get Wi-Fi interface name
9   - Scan request
a   - Get Connected AP
b   - Get AP list
c   - Connect
d   - Disconnect
e   - Connect by wps pbc
f   - Forget an AP
g   - Set & connect EAP
h   - Set IP method type
i   - Set Proxy method type
j   - Get Ap info
k   - Connect Specific AP
l   - Load configuration
m   - Save configuration
n   - Remove configuration
o   - TDLS Discover
p   - TDLS Connect
q   - TDLS Connected peer
r   - TDLS Disconnect
s   - Connect Hidden AP
t   - Connect WPS PBC without SSID
u   - Connect WPS PIN without SSID
v   - Cancel WPS Request
w   - Set Auto Scan Enable-Disable
x   - Set Auto Scan Mode
y   - Get wifi scanning state
z   - Get Auto Scan Enable-Disable
A   - Get Auto Scan Mode
B   - Enable TDLS Channel Switch Request
C   - Disable TDLS Channel Switch Request
D   - Get Wi-Fi Module State
E   - BSSID Scan
F   - Add VSIE
G   - Get VSIE
H   - Remove VSIE
I   - Start Multi Scan
J   - Flush BSS
K   - Set auto connect mode
L   - Get auto connect mode
0   - Exit
ENTER  - Show options menu.......
Operation succeeded!
1
Event received from stdin
Wifi init succeeded
Operation succeeded!
3
Event received from stdin
Wi-Fi Activation Succeeded
Operation succeeded!
9
Event received from stdin
Interface name : wlan0
Operation succeeded!
b
Event received from stdin
AP name : crash_messaging, state : Disconnected
AP name : dnet1, state : Disconnected
... < list of APs > ...
Get AP list finished
Operation succeeded!
Background Scan Completed, error code : NONE
c
Event received from stdin
Input a part of AP name to connect : <AP name>
Passphrase required : TRUE
Input passphrase for dnet1 : <Password>