Generic Pelion Device Management example for various Renesas-based boards. Add camera function.
Base software : https://os.mbed.com/teams/Renesas/code/pelion-example-common/
This example is known to work great on the following platforms:
- Renesas GR-LCYHEE over Wi-Fi and using SD card.
Example functionality
This example showcases the following device functionality:
- On user button click, increment Pelion LWM2M button resource.
- Allow the user to change the state of the board LED from Pelion LWM2M led_state resource and PUT request.
- On user button click, update Pelion LWM2M camera_img resource.
Camera image resource
- "5000/0/1", "camera_img", GET : Get the last saved camera image
- "5000/0/3", "camera_action", POST : Save camera image
bootloader/bootloader_app.json@4:8c3ca488d38c, 2019-02-14 (annotated)
- Committer:
- dkato
- Date:
- Thu Feb 14 08:23:41 2019 +0000
- Revision:
- 4:8c3ca488d38c
- Parent:
- 2:a5b5f3df19e8
Add camera function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MACRUM | 0:6d2053b84a92 | 1 | { |
MACRUM | 0:6d2053b84a92 | 2 | "macros": [ |
MACRUM | 0:6d2053b84a92 | 3 | "MBEDTLS_USER_CONFIG_FILE=\"bootloader_mbedtls_user_config.h\"", |
MACRUM | 0:6d2053b84a92 | 4 | "SHOW_PROGRESS_BAR=0", |
MACRUM | 0:6d2053b84a92 | 5 | "MAX_COPY_RETRIES=1", |
MACRUM | 0:6d2053b84a92 | 6 | "MAX_BOOT_RETRIES=3", |
MACRUM | 0:6d2053b84a92 | 7 | "ARM_BOOTLOADER_USE_NVSTORE_ROT=1", |
MACRUM | 0:6d2053b84a92 | 8 | "ARM_UC_USE_PAL_CRYPTO=0", |
MACRUM | 0:6d2053b84a92 | 9 | "ARM_UC_USE_PAL_BLOCKDEVICE=1", |
MACRUM | 0:6d2053b84a92 | 10 | "ARM_UC_PAAL_TRACE_ENABLE=0", |
MACRUM | 0:6d2053b84a92 | 11 | "ARM_UC_PROFILE_MBED_CLOUD_CLIENT=1", |
MACRUM | 0:6d2053b84a92 | 12 | "ARM_UC_FEATURE_CRYPTO_PAL=0", |
MACRUM | 0:6d2053b84a92 | 13 | "ARM_UC_FEATURE_CRYPTO_MBEDTLS=1", |
MACRUM | 0:6d2053b84a92 | 14 | "MBED_CLOUD_CLIENT_UPDATE_STORAGE=ARM_UCP_FLASHIAP_BLOCKDEVICE", |
MACRUM | 0:6d2053b84a92 | 15 | "DEFAULT_MAX_APPLICATION_SIZE=(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - MBED_CONF_APP_APPLICATION_START_ADDRESS)", |
MACRUM | 0:6d2053b84a92 | 16 | "DISABLE_ERROR_DESCRIPTION=1", |
MACRUM | 0:6d2053b84a92 | 17 | "Mutex=PlatformMutex" |
MACRUM | 0:6d2053b84a92 | 18 | ], |
MACRUM | 0:6d2053b84a92 | 19 | "config": { |
MACRUM | 0:6d2053b84a92 | 20 | "application-start-address": { |
MACRUM | 0:6d2053b84a92 | 21 | "help": "Address to the beginning of the active application firmware in flash", |
MACRUM | 0:6d2053b84a92 | 22 | "value": null |
MACRUM | 0:6d2053b84a92 | 23 | }, |
MACRUM | 0:6d2053b84a92 | 24 | "application-jump-address": { |
MACRUM | 0:6d2053b84a92 | 25 | "help": "Jump address for running the active application firmware", |
MACRUM | 0:6d2053b84a92 | 26 | "value": null |
MACRUM | 0:6d2053b84a92 | 27 | }, |
MACRUM | 0:6d2053b84a92 | 28 | "max-application-size": { |
MACRUM | 0:6d2053b84a92 | 29 | "help": "Maximum size of the active application", |
MACRUM | 0:6d2053b84a92 | 30 | "value": null |
MACRUM | 0:6d2053b84a92 | 31 | }, |
MACRUM | 0:6d2053b84a92 | 32 | "flash-start-address": { |
MACRUM | 0:6d2053b84a92 | 33 | "help": "Start address of internal flash. Only used in this config to help the definition of other macros.", |
MACRUM | 0:6d2053b84a92 | 34 | "value": null |
MACRUM | 0:6d2053b84a92 | 35 | }, |
MACRUM | 0:6d2053b84a92 | 36 | "flash-size": { |
MACRUM | 0:6d2053b84a92 | 37 | "help": "Total size of internal flash. Only used in this config to help the definition of other macros.", |
MACRUM | 0:6d2053b84a92 | 38 | "value": null |
MACRUM | 0:6d2053b84a92 | 39 | } |
MACRUM | 0:6d2053b84a92 | 40 | }, |
MACRUM | 0:6d2053b84a92 | 41 | "target_overrides": { |
MACRUM | 0:6d2053b84a92 | 42 | "*": { |
MACRUM | 0:6d2053b84a92 | 43 | "target.features_remove" : ["LWIP"], |
MACRUM | 0:6d2053b84a92 | 44 | "target.features_add" : ["COMMON_PAL"], |
MACRUM | 0:6d2053b84a92 | 45 | "platform.stdio-baud-rate" : 115200, |
MACRUM | 0:6d2053b84a92 | 46 | "platform.stdio-flush-at-exit" : false, |
MACRUM | 0:6d2053b84a92 | 47 | "update-client.storage-address" : "(1024*1024*64)", |
MACRUM | 0:6d2053b84a92 | 48 | "update-client.storage-size" : "(1024*1024*2)", |
MACRUM | 0:6d2053b84a92 | 49 | "update-client.storage-locations" : 1, |
MACRUM | 0:6d2053b84a92 | 50 | "update-client.firmware-header-version": "2" |
MACRUM | 0:6d2053b84a92 | 51 | }, |
MACRUM | 2:a5b5f3df19e8 | 52 | "RZ_A1H": { |
MACRUM | 2:a5b5f3df19e8 | 53 | "flash-start-address" : "0x18000000", |
MACRUM | 2:a5b5f3df19e8 | 54 | "flash-size" : "(8*1024*1024)", |
MACRUM | 2:a5b5f3df19e8 | 55 | "nvstore.area_1_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(4*1024))", |
MACRUM | 2:a5b5f3df19e8 | 56 | "nvstore.area_1_size" : "(4*1024)", |
MACRUM | 2:a5b5f3df19e8 | 57 | "nvstore.area_2_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(4*1024))", |
MACRUM | 2:a5b5f3df19e8 | 58 | "nvstore.area_2_size" : "(4*1024)", |
MACRUM | 2:a5b5f3df19e8 | 59 | "update-client.application-details": "(MBED_CONF_APP_FLASH_START_ADDRESS+64*1024)", |
MACRUM | 2:a5b5f3df19e8 | 60 | "application-start-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS+65*1024)", |
MACRUM | 2:a5b5f3df19e8 | 61 | "max-application-size" : "DEFAULT_MAX_APPLICATION_SIZE", |
MACRUM | 2:a5b5f3df19e8 | 62 | "sd.SPI_MOSI": "P8_5", |
MACRUM | 2:a5b5f3df19e8 | 63 | "sd.SPI_MISO": "P8_6", |
MACRUM | 2:a5b5f3df19e8 | 64 | "sd.SPI_CLK": "P8_3", |
MACRUM | 2:a5b5f3df19e8 | 65 | "sd.SPI_CS": "P8_4" |
MACRUM | 2:a5b5f3df19e8 | 66 | }, |
MACRUM | 0:6d2053b84a92 | 67 | "GR_LYCHEE": { |
MACRUM | 0:6d2053b84a92 | 68 | "flash-start-address" : "0x18000000", |
MACRUM | 0:6d2053b84a92 | 69 | "flash-size" : "(8*1024*1024)", |
MACRUM | 0:6d2053b84a92 | 70 | "nvstore.area_1_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 2*(4*1024))", |
MACRUM | 0:6d2053b84a92 | 71 | "nvstore.area_1_size" : "(4*1024)", |
MACRUM | 0:6d2053b84a92 | 72 | "nvstore.area_2_address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + MBED_CONF_APP_FLASH_SIZE - 1*(4*1024))", |
MACRUM | 0:6d2053b84a92 | 73 | "nvstore.area_2_size" : "(4*1024)", |
MACRUM | 0:6d2053b84a92 | 74 | "update-client.application-details": "(MBED_CONF_APP_FLASH_START_ADDRESS + 64*1024)", |
MACRUM | 0:6d2053b84a92 | 75 | "application-start-address" : "(MBED_CONF_APP_FLASH_START_ADDRESS + 65*1024)", |
MACRUM | 0:6d2053b84a92 | 76 | "max-application-size" : "DEFAULT_MAX_APPLICATION_SIZE", |
MACRUM | 0:6d2053b84a92 | 77 | "sd.SPI_MOSI": "P5_6", |
MACRUM | 0:6d2053b84a92 | 78 | "sd.SPI_MISO": "P5_7", |
MACRUM | 0:6d2053b84a92 | 79 | "sd.SPI_CLK": "P5_4", |
MACRUM | 0:6d2053b84a92 | 80 | "sd.SPI_CS": "P5_5" |
MACRUM | 0:6d2053b84a92 | 81 | } |
MACRUM | 0:6d2053b84a92 | 82 | } |
MACRUM | 0:6d2053b84a92 | 83 | } |