Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest changes to add arduino support, plus fixes for IOTSS BEID #1576

Merged
merged 3 commits into from
Mar 2, 2016

Conversation

PeterConheeney
Copy link
Contributor

No description provided.

#define DEVICE_SERIAL_FC 1

#define DEVICE_I2C 1
#define DEVICE_I2CSLAVE 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be set to 0

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 1, 2016

With all this changes, we would appreciate if you can run singletest script and share the results with us.

@PeterConheeney
Copy link
Contributor Author

`CORTEX-M0 mbed Test Suite
Test summary:
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_MPS2_M0 | ARM | DTCT_1 | Simple detect test | 2.36 | 10 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | EXAMPLE_1 | /dev/null | 5.25 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_10 | Hello World | 2.33 | 5 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_11 | Ticker Int | 21.55 | 15 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_12 | C++ | 11.58 | 10 | 1/1 |
| FAIL | ARM_MPS2_M0 | ARM | MBED_16 | RTC | 5.78 | 20 | 0/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_2 | stdio | 2.48 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_23 | Ticker Int us | 13.36 | 15 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_24 | Timeout Int us | 13.81 | 15 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_25 | Time us | 13.4 | 15 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_26 | Integer constant division | 3.18 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_34 | Ticker Two callbacks | 13.36 | 15 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_37 | Serial NC RX | 12.88 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_38 | Serial NC TX | 12.39 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_A1 | Basic | 3.21 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_A21 | Call function before main (mbed_main) | 3.19 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_A9 | Serial Echo at 115200 | 8.26 | 20 | 1/1 |
| OK | ARM_MPS2_M0 | ARM | MBED_BUSOUT | BusOut | 4.13 | 40 | 1/1 |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

CORTEX-M0 plus mbed Test Suite
Test summary:
+--------+--------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+--------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_MPS2_M0P | ARM | DTCT_1 | Simple detect test | 2.34 | 10 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | EXAMPLE_1 | /dev/null | 5.28 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_10 | Hello World | 2.18 | 5 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_11 | Ticker Int | 13.19 | 15 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_12 | C++ | 3.18 | 10 | 1/1 |
| FAIL | ARM_MPS2_M0P | ARM | MBED_16 | RTC | 6.47 | 20 | 0/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_2 | stdio | 2.59 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_23 | Ticker Int us | 13.32 | 15 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_24 | Timeout Int us | 13.71 | 15 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_25 | Time us | 13.42 | 15 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_26 | Integer constant division | 3.32 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_34 | Ticker Two callbacks | 13.06 | 15 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_37 | Serial NC RX | 12.89 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_38 | Serial NC TX | 12.36 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_A1 | Basic | 3.22 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_A21 | Call function before main (mbed_main) | 3.32 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_A9 | Serial Echo at 115200 | 9.06 | 20 | 1/1 |
| OK | ARM_MPS2_M0P | ARM | MBED_BUSOUT | BusOut | 4.34 | 40 | 1/1 |
+--------+--------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

CORTEX-M3 mbed Test Suite
Test summary:
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_MPS2_M3 | ARM | DTCT_1 | Simple detect test | 2.45 | 10 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | EXAMPLE_1 | /dev/null | 4.71 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_10 | Hello World | 2.3 | 5 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_11 | Ticker Int | 13.32 | 15 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_12 | C++ | 3.24 | 10 | 1/1 |
| FAIL | ARM_MPS2_M3 | ARM | MBED_16 | RTC | 6.44 | 20 | 0/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_2 | stdio | 1.78 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_23 | Ticker Int us | 13.18 | 15 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_24 | Timeout Int us | 13.43 | 15 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_25 | Time us | 13.25 | 15 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_26 | Integer constant division | 3.21 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_34 | Ticker Two callbacks | 13.26 | 15 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_37 | Serial NC RX | 12.82 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_38 | Serial NC TX | 12.28 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_A1 | Basic | 3.23 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_A21 | Call function before main (mbed_main) | 3.3 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_A9 | Serial Echo at 115200 | 8.25 | 20 | 1/1 |
| OK | ARM_MPS2_M3 | ARM | MBED_BUSOUT | BusOut | 4.15 | 40 | 1/1 |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

CORTEX-M4 mbed Test Suite
Test summary:
+--------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_MPS2_M4 | ARM | DTCT_1 | Simple detect test | 2.37 | 10 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | EXAMPLE_1 | /dev/null | 5.28 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_10 | Hello World | 2.21 | 5 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_11 | Ticker Int | 13.25 | 15 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_12 | C++ | 3.25 | 10 | 1/1 |
| FAIL | ARM_MPS2_M4 | ARM | MBED_16 | RTC | 6.46 | 20 | 0/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_2 | stdio | 2.63 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_23 | Ticker Int us | 13.26 | 15 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_24 | Timeout Int us | 13.45 | 15 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_25 | Time us | 13.3 | 15 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_26 | Integer constant division | 3.25 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_34 | Ticker Two callbacks | 13.25 | 15 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_37 | Serial NC RX | 12.95 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_38 | Serial NC TX | 12.36 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_A1 | Basic | 3.32 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_A21 | Call function before main (mbed_main) | 3.39 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_A9 | Serial Echo at 115200 | 8.3 | 20 | 1/1 |
| OK | ARM_MPS2_M4 | ARM | MBED_BUSOUT | BusOut | 4.23 | 40 | 1/1 |
+--------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

CORTEX-M7 mbed Test Suite
Test summary:
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_MPS2_M7 | ARM | DTCT_1 | Simple detect test | 3.31 | 10 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | EXAMPLE_1 | /dev/null | 5.9 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_10 | Hello World | 3.12 | 5 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_11 | Ticker Int | 14.19 | 15 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_12 | C++ | 3.38 | 10 | 1/1 |
| FAIL | ARM_MPS2_M7 | ARM | MBED_16 | RTC | 7.4 | 20 | 0/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_2 | stdio | 3.54 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_23 | Ticker Int us | 14.18 | 15 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_24 | Timeout Int us | 14.32 | 15 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_25 | Time us | 14.17 | 15 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_26 | Integer constant division | 3.37 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_34 | Ticker Two callbacks | 14.21 | 15 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_37 | Serial NC RX | 7.9 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_38 | Serial NC TX | 13.43 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_A1 | Basic | 4.11 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_A21 | Call function before main (mbed_main) | 4.23 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_A9 | Serial Echo at 115200 | 8.88 | 20 | 1/1 |
| OK | ARM_MPS2_M7 | ARM | MBED_BUSOUT | BusOut | 5.1 | 40 | 1/1 |
+---------+-------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

CORTEX-BEID mbed Test Suite
Test summary:
+---------+----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+---------+----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | ARM_IOTSS_BEID | ARM | DTCT_1 | Simple detect test | 2.68 | 10 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | EXAMPLE_1 | /dev/null | 5.63 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_10 | Hello World | 2.52 | 5 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_11 | Ticker Int | 13.12 | 15 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_12 | C++ | 3.56 | 10 | 1/1 |
| FAIL | ARM_IOTSS_BEID | ARM | MBED_16 | RTC | 6.62 | 20 | 0/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_2 | stdio | 2.91 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_23 | Ticker Int us | 13.13 | 15 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_24 | Timeout Int us | 13.35 | 15 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_25 | Time us | 13.98 | 15 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_26 | Integer constant division | 3.47 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_34 | Ticker Two callbacks | 13.87 | 15 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_37 | Serial NC RX | 8.82 | 20 | 1/1 |
| FAIL | ARM_IOTSS_BEID | ARM | MBED_38 | Serial NC TX | 3.34 | 20 | 0/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_A1 | Basic | 4.27 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_A21 | Call function before main (mbed_main) | 2.83 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_A9 | Serial Echo at 115200 | 8.48 | 20 | 1/1 |
| OK | ARM_IOTSS_BEID | ARM | MBED_BUSOUT | BusOut | 4.5 | 40 | 1/1 |
+---------+----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+

`

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 1, 2016

This one : | FAIL | ARM_IOTSS_BEID | ARM | MBED_38 | Serial NC TX | 3.34 | 20 | 0/1 | and that RTC, something we can fix?

@PeterConheeney
Copy link
Contributor Author

RTC fails cos we don’t have rtc in mps2,
Beid serial NC TX fail, is a strange one, it will pass if I fiddle with the timing of the test but have no time at the moment to investigate further

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 2, 2016

Feel free to create an issue for people to be aware that RTC fails (did you test some applications if RTC is functional - if it's not , we might just disable it for now until it's fixed? what do you say?)

@PeterConheeney
Copy link
Contributor Author

RTC test fails because there is no RTC in MPS2. Its disabled in device.h, but the test still runs.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 2, 2016

I misunderstood your previous message, sorry. Those RTC tests should be fixed and should not be run or should print unsupported, which is not a failure? cc @bridadan

LGTM

0xc0170 added a commit that referenced this pull request Mar 2, 2016
latest changes to add arduino support, plus fixes for IOTSS BEID
@0xc0170 0xc0170 merged commit de3b14e into ARMmbed:master Mar 2, 2016
@bridadan
Copy link
Contributor

bridadan commented Mar 2, 2016

Looks like I missed the RTC test, woops! :) I opened a PR that adds the NOT_SUPPORTED message to that and a few more tests: #1584

@bridadan
Copy link
Contributor

bridadan commented Mar 3, 2016

@PeterConheeney Ok, #1584 was merged so if you rebase your changes on top of master you should see the RTC test (and the FAIL) go away. Would you mind confirming that?

@PeterConheeney
Copy link
Contributor Author

Hi Brian,

if you saw previous message please ignore, my setup was wrong.

so far the testing looks good,

Regards
Peter

@PeterConheeney
Copy link
Contributor Author

Building project RTC (ARM_MPS2_M0, ARM)
Compile: main.cpp
[Error] main.cpp@2: #35: #error directive: [NOT_SUPPORTED] RTC is not supported
[09:36:48] Info: The project MBED_16 is not supported

The fail is now gone, but i get the above. is there a way to just disable the test if RTC is disabled?

@bridadan
Copy link
Contributor

bridadan commented Mar 4, 2016

That error is fine to ignore if you like. But if you really want to make sure the RTC test is completely ignored, add ARM_MPS2_M0 to the following list: https://github.com/mbedmicro/mbed/blob/master/workspace_tools/tests.py#L461

@sg-
Copy link
Contributor

sg- commented Mar 4, 2016

Ahh! Just let it fail. The exclude list is like smoke and mirrors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants