-
Notifications
You must be signed in to change notification settings - Fork 3k
Support Nuvoton's new target NUMAKER_IOT_M263A #11122
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
Conversation
@cyliangtw, thank you for your changes. |
@@ -0,0 +1,344 @@ | |||
/* mbed Microcontroller Library |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Patater could you review the crypto related parts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that, it looks good. Could you re-license all the files to be Apache? https://os.mbed.com/docs/mbed-os/v5.13/contributing/index.html#licensing
"FLASH_CMSIS_ALGO" | ||
], | ||
"macros": [ | ||
"MBED_FAULT_HANDLER_DISABLED", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's disabled by default. But what's the reason behind this flag here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bulislaw , it's mbed_fault_handler.c
not support Cortex-M23 in early June. However, last mbed_fault_handler.c
seems consider TARGET_M23. Let me do some verification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"release_versions": ["5"], | ||
"device_name": "M263KIAAE", | ||
"bootloader_supported": true, | ||
"tickless-from-us-ticker": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will disable deep sleep, is that necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bulislaw , not support deep sleep in this stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @ARMmbed/mbed-os-maintainers please have a second look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* <b>Copyright Notice</b> | ||
* | ||
* Copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this license matches what we expect from contributions.
Please see: https://os.mbed.com/docs/mbed-os/v5.13/contributing/license.html
Do you have any other license available for this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeppoTakalo , so far, seems many targets device folder still not follow your expectation of license, for ex: mbed-os\targets\TARGET_STM\TARGET_STM32F4\TARGET_MTS_MDOT_F411RE\device
.
Anyway, I did re-license files of M261 device folder to fulfill SPDX-License-Identifier: Apache-2.0 in commit d863637
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeppoTakalo, do you have any concern on this commit d863637 for re-license ?
* @brief Timer PWM Controller(Timer PWM) driver source file | ||
* | ||
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. | ||
*****************************************************************************/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like StdDriver is missing the acceptable license. Please add it (requested previously by @SeppoTakalo )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 , @SeppoTakalo ,
StdDriver come from SDK, so we try to keep the same originally for easy maintenance & upgrade.
After refer to other targets, could you accept the license as below:
@copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of Nuvoton Technology Corp. nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me (BSD-3 clause license as I understand it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 , @SeppoTakalo ,
Added acceptable license into std-drivers & register header files in commit a1e8122.
So, all the target relative files should fulfill your request.
@cyliangtw Please review travis failures (device_name related). I aborted internal CI for now |
CI restarted |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
GCC fails to build, please review
|
a1e8122
to
a78b73c
Compare
@0xc0170 , all travis-ci are success after rebase. Please check. |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
ede4921
to
e57ed04
Compare
Ci restarted |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
There was an example issue we fixed, restarting the CI now |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
This PR adds support for Nuvoton's new target NUMAKER_IOT_M263A, which is Cortex-M23 without Trustzone based.
Pull request type
Reviewers
Greentea & CI test log
Pass Greentea test in GCC, ARMCC & IAR tool-chain.
Snippet of Greentea test log as below:
Pass CI test in GCC, ARMCC & IAR tool-chain.
For details, please open attached log files:
m263_greentea_gcc_0723.log
m263_greentea_iar_0726.log
m263_greentea_arm_0730.log
m263_ci_gcc_0723.log
m263_ci_iar_0723.log
m263_ci_arm_0730.log