Simple Mbed Cloud client application for NuMaker-PFM-M487 and NuMaker-PFM-NUC472 over Ethernet.

This application contains the example codes to:

1) Connect PFM-M487/PFM-NUC472 boards to Pelion

2) Enable Firmware update

For storage, PFM-M487/PFM-NUC472 support both SPI interface SD and built-in SD bus SD.

For connectivity, PFM-M487/PFM-NUC472 support Ethernet (on-board) by default.

This example supports Ethernet and built-in SD by default.

https://os.mbed.com/media/cache/platforms/NuMaker-PFM-M487.png.170x170_q85.png https://os.mbed.com/media/cache/platforms/NuMaker-PFM-NUC472Small.png.170x170_q85.png

Committer:
ccli8
Date:
Wed Dec 05 18:21:52 2018 +0800
Revision:
15:867695969724
Parent:
7:6aee86899520
Update NuMaker-mbed-SD-driver.lib

Fix user buffer may not be SD DMA-compatible

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cyliang 0:83caa8fa1d2c 1 // ----------------------------------------------------------------------------
ccli8 7:6aee86899520 2 // Copyright 2016-2017 ARM Ltd.
cyliang 0:83caa8fa1d2c 3 //
cyliang 0:83caa8fa1d2c 4 // SPDX-License-Identifier: Apache-2.0
cyliang 0:83caa8fa1d2c 5 //
cyliang 0:83caa8fa1d2c 6 // Licensed under the Apache License, Version 2.0 (the "License");
cyliang 0:83caa8fa1d2c 7 // you may not use this file except in compliance with the License.
cyliang 0:83caa8fa1d2c 8 // You may obtain a copy of the License at
cyliang 0:83caa8fa1d2c 9 //
cyliang 0:83caa8fa1d2c 10 // http://www.apache.org/licenses/LICENSE-2.0
cyliang 0:83caa8fa1d2c 11 //
cyliang 0:83caa8fa1d2c 12 // Unless required by applicable law or agreed to in writing, software
cyliang 0:83caa8fa1d2c 13 // distributed under the License is distributed on an "AS IS" BASIS,
cyliang 0:83caa8fa1d2c 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
cyliang 0:83caa8fa1d2c 15 // See the License for the specific language governing permissions and
cyliang 0:83caa8fa1d2c 16 // limitations under the License.
cyliang 0:83caa8fa1d2c 17 // ----------------------------------------------------------------------------
cyliang 0:83caa8fa1d2c 18
cyliang 0:83caa8fa1d2c 19 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
cyliang 0:83caa8fa1d2c 20 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
cyliang 0:83caa8fa1d2c 21 #endif
cyliang 0:83caa8fa1d2c 22
cyliang 0:83caa8fa1d2c 23 #include <stdint.h>
cyliang 0:83caa8fa1d2c 24
cyliang 0:83caa8fa1d2c 25 #ifdef MBED_CLOUD_DEV_UPDATE_ID
cyliang 0:83caa8fa1d2c 26 const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" };
cyliang 0:83caa8fa1d2c 27 const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
cyliang 0:83caa8fa1d2c 28
cyliang 0:83caa8fa1d2c 29 const uint8_t arm_uc_class_id[16] = { "dev_model_number" };
cyliang 0:83caa8fa1d2c 30 const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
cyliang 0:83caa8fa1d2c 31 #endif
cyliang 0:83caa8fa1d2c 32
cyliang 0:83caa8fa1d2c 33 #ifdef MBED_CLOUD_DEV_UPDATE_CERT
cyliang 0:83caa8fa1d2c 34 const uint8_t arm_uc_default_fingerprint[32] = { 0 };
cyliang 0:83caa8fa1d2c 35 const uint16_t arm_uc_default_fingerprint_size =
cyliang 0:83caa8fa1d2c 36 sizeof(arm_uc_default_fingerprint);
cyliang 0:83caa8fa1d2c 37
cyliang 0:83caa8fa1d2c 38 const uint8_t arm_uc_default_certificate[1] = { 0 };
cyliang 0:83caa8fa1d2c 39 const uint16_t arm_uc_default_certificate_size =
cyliang 0:83caa8fa1d2c 40 sizeof(arm_uc_default_certificate);
cyliang 0:83caa8fa1d2c 41 #endif