Skip to content

Add support for the Embedded Planet Agora target #10629

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

Merged
merged 5 commits into from
Jun 6, 2019

Conversation

trowbridgec
Copy link

Description

Embedded Planet is releasing a board named 'Agora', and this PR will add support for it into the Mbed OS sources.

Pull request type

[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@trowbridgec
Copy link
Author

@ARMmbed/team-embeddedplanet @maclobdell

@ciarmcom ciarmcom requested a review from a team May 21, 2019 17:00
@ciarmcom
Copy link
Member

@trowbridgec, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@@ -0,0 +1,315 @@
/*
* PinNames.h
*
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add SPDX + license text to new files - review platform files for examples

// Check the 'features' section of the target description in 'targets.json' for more details.
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
Copy link
Contributor

Choose a reason for hiding this comment

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

add SPDX please

@0xc0170
Copy link
Contributor

0xc0170 commented May 23, 2019

As for new target - please share tests results for all 3 toolchains (required by introducing new target)

@trowbridgec
Copy link
Author

@0xc0170 Licenses added.

I'll work on getting the test reports.

@0xc0170 0xc0170 self-requested a review May 23, 2019 20:46
@@ -0,0 +1,16 @@
/* mbed Microcontroller Library
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this empty header file needed?

@mbed-ci
Copy link

mbed-ci commented May 23, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

LGTM

Waiting for test results (thus requested changes)

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

Started another run of CI, as the last one was 7 days ago

@mbed-ci
Copy link

mbed-ci commented May 31, 2019

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_exporter

@trowbridgec
Copy link
Author

Here's the test log for GCC_ARM:
EP_AGORA_GCC_ARM_Full_test_results.txt

Note: a couple of the tests are failing (tests-mbed_hal-trng and tests-mbed_hal-qspi).

@trowbridgec
Copy link
Author

Failures above look similar to #10730.

@loverdeg-ep

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

We will schedule CI soon (waiting for rc2 jobs to complete first)

I can see that test change for QSPI had huge impact, I'll ask around to get a fix in place.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

CI started

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

QSPI test failures are being addressed (PR up already). What about trng? Any other toolchains tested (iar/armcc6) ?

@trowbridgec
Copy link
Author

@0xc0170 I ran the tests with IAR too and had similar issues for the same tests:
EP_AGORA_IAR_Full_test_results.txt

Running the tests-mbed_hal-trng test manually, I was able to get it to pass by hitting the RESET button at the same time as before:
EP_AGORA_IAR_tests-mbed_hal-trng.txt

The 'Agora' board does not have a DAPLink circuit on board; we debug and program it via an nRF52840 DK running a modified version of DAPLink that forces the interface chip to use the external debug port. I'm not positive, but that could be related?

The test-mbed_hal-qspi test also failed, but that is to be expected with what's being addressed in #10730:
EP_AGORA_IAR_tests-mbed_hal-qspi.txt

@mbed-ci
Copy link

mbed-ci commented Jun 4, 2019

Test run: FAILED

Summary: 6 of 7 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_mbed2-build-ARM
  • jenkins-ci/mbed-os-ci_build-IAR
  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

CI restarted (job was aborted)

@mbed-ci
Copy link

mbed-ci commented Jun 4, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 4
Build artifacts

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 5, 2019

This is ready for integration, almost - @trowbridgec TRNG issue should have tracking issue? QSPI test will be fixed on master after we generate rc2

@trowbridgec
Copy link
Author

@0xc0170 I created a separate issue for tracking the TRNG test issue: #10765.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 5, 2019

Thanks, will take it there then. This should be good

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 5, 2019

One last question - IAR and GCC provided, any ARM toolchain tests?

@0Grit
Copy link

0Grit commented Jun 5, 2019

@0xc0170 We have been waiting for a Linux release of Mbed Studio to do those tests.

@trowbridgec
Copy link
Author

I'm running the ARMC6 tests now, and I'll report back shortly once they finish.

@trowbridgec
Copy link
Author

ARMC6 tests: EP_AGORA_ARMC6_Full_test_results.txt

Same tests failed as before (tests-mbed_hal-trng and tests-mbed_hal-qspi).

@0xc0170 0xc0170 merged commit 489bd10 into ARMmbed:master Jun 6, 2019
@trowbridgec trowbridgec deleted the add-target-ep-agora branch June 6, 2019 14:00
@deepikabhavnani
Copy link

@trowbridgec - Is the schematic for this hardware available?

@deepikabhavnani
Copy link

deepikabhavnani commented Jun 11, 2019

@0xc0170 @trowbridgec - Exporting the project for EP_AGORA gives error:

Never mind got export working with uvision6

@0Grit
Copy link

0Grit commented Jun 11, 2019

@deepikabhavnani Let us know or push the fix so we can support others when they have the same issue.

@deepikabhavnani
Copy link

deepikabhavnani commented Jun 11, 2019

mbed compile -m EP_AGORA -t ARM defaults to ARMC6 but mbed export -m EP_AGORA -i uVision defaults to uVision5.

CC @0xc0170 - Will this be considered as issue?

@loverdeg-ep - For now I used uVision6 explicitly for export mbed export -m EP_AGORA -i uVision6

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

Successfully merging this pull request may close these issues.

6 participants