ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

RZ_A1XX (RZ_A1H & GR_LYCHEE) incorrectly marked as ARM Compiler 6 only #10253

Closed screamerbg closed 5 years ago

screamerbg commented 5 years ago

Description

The following commit sets RZ_A1XX-based targets as ARM Compiler 6 only in mbed OS 5.12.0 - https://github.com/ARMmbed/mbed-os/commit/2b75dfda0f0c0055e9769e916638033b2fe0377a

I changed mbed-os/targets/targets.json target entry for supported_toolchains to "ARM" to enable ARM Compiler 5, and using GR_LYCHEE I've performed a successful end-to-end connect and firmware update testing with Pelion Device Management (see below).

Unless I'm missing something, it looks like the family of targets is incorrectly marked as ARM6 only.

CC @SenRamakri @bridadan

| target          | platform_name | test suite                                      | result | elapsed_time (sec) | copy_method |
|-----------------|---------------|-------------------------------------------------|--------|--------------------|-------------|
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | OK     | 114.22             | default     |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | OK     | 310.33             | default     |
mbedgt: test suite results: 2 OK
mbedgt: test case report:
| target          | platform_name | test suite                                      | test case                | passed | failed | result | elapsed_time (sec) |
|-----------------|---------------|-------------------------------------------------|--------------------------|--------|--------|--------|--------------------|
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Connect to WiFi          | 2      | 0      | OK     | 4.28               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Format FAT               | 1      | 0      | OK     | 0.31               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Initialize SD+FAT        | 2      | 0      | OK     | 0.06               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Initialize Simple PDMC   | 2      | 0      | OK     | 2.17               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion Bootstrap & Reg.  | 1      | 0      | OK     | 7.78               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion Directory         | 1      | 0      | OK     | 0.8                |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Pelion Re-register       | 1      | 0      | OK     | 3.42               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Post-reset Identity      | 1      | 0      | OK     | 0.12               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Resource LwM2M GET       | 1      | 0      | OK     | 0.96               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Resource LwM2M POST      | 1      | 0      | OK     | 0.63               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Resource LwM2M PUT       | 1      | 0      | OK     | 0.86               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-connect | Resource LwM2M SET       | 1      | 0      | OK     | 0.49               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Connect to WiFi          | 2      | 0      | OK     | 4.25               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Format FAT               | 1      | 0      | OK     | 0.29               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Initialize SD+FAT        | 2      | 0      | OK     | 0.04               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Initialize Simple PDMC   | 2      | 0      | OK     | 2.14               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Bootstrap & Reg.  | 1      | 0      | OK     | 7.67               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Directory         | 1      | 0      | OK     | 0.8                |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Firmware Download | 1      | 0      | OK     | 132.94             |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Firmware Prepare  | 1      | 0      | OK     | 0.64               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Firmware Update   | 1      | 0      | OK     | 68.86              |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Pelion Re-register       | 1      | 0      | OK     | 3.41               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Post-update Erase        | 1      | 0      | OK     | 0.02               |
| GR_LYCHEE-ARMC5 | GR_LYCHEE     | simple-mbed-cloud-client-tests-dev_mgmt-update  | Post-update Identity     | 1      | 0      | OK     | 0.14               |
mbedgt: test case results: 24 OK
mbedgt: completed in 427.15 sec

To reproduce:

  1. mbed import http://github.com/ARMmbed/pelion-enablement
  2. cd pelion-enablement
  3. mbed update mbed-os-5.12.0-renesas
  4. mbed dm init.... your Pelion DM credentials - follow the instructions on the repo page.
  5. Edit mbed-os\targets\targets.json for RZ_A1XX and change supported_toolchains from ARMC6 to ARM
  6. Compile & run tests with mbed test -t ARM -n simple*tests*dev* -v

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug
ciarmcom commented 5 years ago

Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1080

cmonr commented 5 years ago

@SenRamakri ?