首页 > 评测 > ARM中的R,一款Cortex R内核开发板:三星ARTIK 055开发体验

ARM中的R,一款Cortex R内核开发板:三星ARTIK 055开发体验

  • 作者:zhanzr
  • 来源:21ic
  • [导读]
  • 三星公司的Exynos系列处理器针对IoT市场目前推出了两款: Exynos i S111, Exynos i T200. S111是针对NB-IoT市场的, T200即本文评测的这款针对WiFi市场. 就T200而言, 无论是开发工具, 还是配套SDK的完善度, 都是比较优秀的. 但是缺点是来的太迟了, T200这款芯片可以大约对标乐鑫的ESP32.

int i = 0;

volatile double zero = 0.0;

/* Here we construct some JSON standards, from the JSON site. */

/* Our "Video" datatype: */

root = cJSON_CreateObject();

cJSON_AddItemToObject(root, "name", cJSON_CreateString("Jack (\"Bee\") Nimble"));

cJSON_AddItemToObject(root, "format", fmt = cJSON_CreateObject());

cJSON_AddStringToObject(fmt, "type", "rect");

cJSON_AddNumberToObject(fmt, "width", 1920);

cJSON_AddNumberToObject(fmt, "height", 1080);

cJSON_AddFalseToObject (fmt, "interlace");

cJSON_AddNumberToObject(fmt, "frame rate", 24);

/* Print to text */

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

/* Our "days of the week" array: */

root = cJSON_CreateStringArray(str_weekdays, 7);

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

/* Our matrix: */

root = cJSON_CreateArray();

for (i = 0; i < 3; i++)

{

cJSON_AddItemToArray(root, cJSON_CreateIntArray(numbers[i], 3));

}

/* cJSON_ReplaceItemInArray(root, 1, cJSON_CreateString("Replacement")); */

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

/* Our "gallery" item: */

root = cJSON_CreateObject();

cJSON_AddItemToObject(root, "Image", img = cJSON_CreateObject());

cJSON_AddNumberToObject(img, "Width", 800);

cJSON_AddNumberToObject(img, "Height", 600);

cJSON_AddStringToObject(img, "Title", "View from 15th Floor");

cJSON_AddItemToObject(img, "Thumbnail", thm = cJSON_CreateObject());

cJSON_AddStringToObject(thm, "Url", "http:/*www.example.com/image/481989943");

cJSON_AddNumberToObject(thm, "Height", 125);

cJSON_AddStringToObject(thm, "Width", "100");

cJSON_AddItemToObject(img, "IDs", cJSON_CreateIntArray(ids, 4));

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

/* Our array of "records": */

root = cJSON_CreateArray();

for (i = 0; i < 2; i++)

{

cJSON_AddItemToArray(root, fld = cJSON_CreateObject());

cJSON_AddStringToObject(fld, "precision", fields[i].precision);

cJSON_AddNumberToObject(fld, "Latitude", fields[i].lat);

cJSON_AddNumberToObject(fld, "Longitude", fields[i].lon);

cJSON_AddStringToObject(fld, "Address", fields[i].address);

cJSON_AddStringToObject(fld, "City", fields[i].city);

cJSON_AddStringToObject(fld, "State", fields[i].state);

cJSON_AddStringToObject(fld, "Zip", fields[i].zip);

cJSON_AddStringToObject(fld, "Country", fields[i].country);

}

/* cJSON_ReplaceItemInObject(cJSON_GetArrayItem(root, 1), "City", cJSON_CreateIntArray(ids, 4)); */

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

root = cJSON_CreateObject();

cJSON_AddNumberToObject(root, "number", 1.0 / zero);

if (print_preallocated(root) != 0) {

cJSON_Delete(root);

exit(EXIT_FAILURE);

}

cJSON_Delete(root);

}

void test_cJSON(void)

{

printf("cJSON Version: %s\n", cJSON_Version());

/* Now some samplecode for building objects concisely: */

create_objects();

}

Build并且烧写, 如果无误, 输出:

U-Boot 2017.01-00019-g5dd5d33 (Mar 19 2018 - 17:51:12 +0900)

CPU: Exynos200 @ 320 MHz

Model: ARTIK-05x based on Exynos T20

DRAM: 1.3 MiB

WARNING: Caches not enabled

BL1 released at 2017-3-13 15:00

SSS released at 2017-09-12

WLAN released at 2017-12-21

Flash: 8 MiB

*** Warning - bad CRC, using default environment

In: serial@80180000

Out: serial@80180000

Err: serial@80180000

Autoboot in 50 milliseconds

gpio: pin gpg16 (gpio 46) value is 1

## Starting application at 0x040C8020 ...

s5j_sflash_init: FLASH Quad Enabled

i2c_uioregister: Registering /dev/i2c-0

i2c_uioregister: Registering /dev/i2c-1

System Information:

Board: ARTIK055S

Version: 1.0.12

Commit Hash: d1dfb56208b5897ac852a713b6f760ce4efdbd7a

Build User: ARTIK@Samsung

  • 本文系21ic原创,未经许可禁止转载!

网友评论