-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Arm China STAR-MC3 port support #1363
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
kstribrnAmzn
merged 5 commits into
FreeRTOS:main
from
cpussw01:feature/add-star-mc3-support
Feb 20, 2026
+24,187
−96
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9ba0caa
Add Arm China STAR-MC3 port support:
cpussw01 9cbea5c
Optimize for STAR-MC3 Code Reviw:
cpussw01 e9a590f
Fix left issue of STAR-MC3 Code Review
cpussw01 bffdf84
Rename STAR_MC3 to ARM_STAR_MC3 for portable/ARMv8M/ directory
cpussw01 abef845
Merge branch 'main' into feature/add-star-mc3-support
kstribrnAmzn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| This directory tree contains the master copy of the FreeRTOS Armv8-M and | ||
| Armv8.1-M ports. | ||
| Do not use the files located here! These file are copied into separate | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NNN directories prior to each | ||
| FreeRTOS release. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NNN directories | ||
| prior to each FreeRTOS release. | ||
|
|
||
| If your Armv8-M and Armv8.1-M application uses TrustZone then use the files from the | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85] directories. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3] directories. | ||
|
|
||
| If your Armv8-M and Armv8.1-M application does not use TrustZone then use the files from | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NTZ directories. | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NTZ directories. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| This directory tree contains the master copy of the FreeRTOS Armv8-M and | ||
| Armv8.1-M ports. | ||
| Do not use the files located here! These file are copied into separate | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NNN directories prior to | ||
| each FreeRTOS release. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NNN directories | ||
| prior to each FreeRTOS release. | ||
|
|
||
| If your Armv8-M/Armv8.1-M application uses TrustZone then use the files from the | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85] directories. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3] directories. | ||
|
|
||
| If your Armv8-M/Armv8.1-M application does not use TrustZone then use the files from | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NTZ directories. | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NTZ directories. |
80 changes: 80 additions & 0 deletions
80
portable/ARMv8M/non_secure/portable/GCC/ARM_STAR_MC3/portmacro.h
cpussw01 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| /* | ||
| * FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
| * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * Copyright (c) 2026 Arm Technology (China) Co., Ltd.All Rights Reserved. | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
| * this software and associated documentation files (the "Software"), to deal in | ||
| * the Software without restriction, including without limitation the rights to | ||
| * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
| * the Software, and to permit persons to whom the Software is furnished to do so, | ||
| * subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
| * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
| * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
| * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| * | ||
| * https://www.FreeRTOS.org | ||
| * https://github.com/FreeRTOS | ||
| * | ||
| */ | ||
|
|
||
| #ifndef PORTMACRO_H | ||
| #define PORTMACRO_H | ||
|
|
||
| /* *INDENT-OFF* */ | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
| /* *INDENT-ON* */ | ||
|
|
||
| /*------------------------------------------------------------------------------ | ||
| * Port specific definitions. | ||
| * | ||
| * The settings in this file configure FreeRTOS correctly for the given hardware | ||
| * and compiler. | ||
| * | ||
| * These settings should not be altered. | ||
| *------------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| #ifndef configENABLE_MVE | ||
| #error configENABLE_MVE must be defined in FreeRTOSConfig.h. Set configENABLE_MVE to 1 to enable the MVE or 0 to disable the MVE. | ||
| #endif /* configENABLE_MVE */ | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /** | ||
| * Architecture specifics. | ||
| */ | ||
| #define portARCH_NAME "STAR-MC3" | ||
| #define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
| #define portARMV8M_MINOR_VERSION 1 | ||
| #define portDONT_DISCARD __attribute__( ( used ) ) | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /* ARMv8-M common port configurations. */ | ||
| #include "portmacrocommon.h" | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /** | ||
| * @brief Critical section management. | ||
| */ | ||
| #define portDISABLE_INTERRUPTS() ulSetInterruptMask() | ||
| #define portENABLE_INTERRUPTS() vClearInterruptMask( 0 ) | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /* *INDENT-OFF* */ | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| /* *INDENT-ON* */ | ||
|
|
||
| #endif /* PORTMACRO_H */ |
87 changes: 87 additions & 0 deletions
87
portable/ARMv8M/non_secure/portable/IAR/ARM_STAR_MC3/portmacro.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| /* | ||
| * FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
| * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * Copyright (c) 2026 Arm Technology (China) Co., Ltd.All Rights Reserved. | ||
| * | ||
| * SPDX-License-Identifier: MIT | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
| * this software and associated documentation files (the "Software"), to deal in | ||
| * the Software without restriction, including without limitation the rights to | ||
| * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
| * the Software, and to permit persons to whom the Software is furnished to do so, | ||
| * subject to the following conditions: | ||
| * | ||
| * The above copyright notice and this permission notice shall be included in all | ||
| * copies or substantial portions of the Software. | ||
| * | ||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
| * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
| * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
| * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| * | ||
| * https://www.FreeRTOS.org | ||
| * https://github.com/FreeRTOS | ||
| * | ||
| */ | ||
|
|
||
| #ifndef PORTMACRO_H | ||
| #define PORTMACRO_H | ||
|
|
||
| /* *INDENT-OFF* */ | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
| /* *INDENT-ON* */ | ||
|
|
||
| /*------------------------------------------------------------------------------ | ||
| * Port specific definitions. | ||
| * | ||
| * The settings in this file configure FreeRTOS correctly for the given hardware | ||
| * and compiler. | ||
| * | ||
| * These settings should not be altered. | ||
| *------------------------------------------------------------------------------ | ||
| */ | ||
|
|
||
| #ifndef configENABLE_MVE | ||
| #error configENABLE_MVE must be defined in FreeRTOSConfig.h. Set configENABLE_MVE to 1 to enable the MVE or 0 to disable the MVE. | ||
| #endif /* configENABLE_MVE */ | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /** | ||
| * Architecture specifics. | ||
| */ | ||
| #define portARCH_NAME "STAR-MC3" | ||
| #define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
| #define portARMV8M_MINOR_VERSION 1 | ||
| #define portDONT_DISCARD __root | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /* ARMv8-M common port configurations. */ | ||
| #include "portmacrocommon.h" | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /** | ||
| * @brief Critical section management. | ||
| */ | ||
| #define portDISABLE_INTERRUPTS() ulSetInterruptMask() | ||
| #define portENABLE_INTERRUPTS() vClearInterruptMask( 0 ) | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /* Suppress warnings that are generated by the IAR tools, but cannot be fixed in | ||
| * the source code because to do so would cause other compilers to generate | ||
| * warnings. */ | ||
| #pragma diag_suppress=Be006 | ||
| #pragma diag_suppress=Pa082 | ||
| /*-----------------------------------------------------------*/ | ||
|
|
||
| /* *INDENT-OFF* */ | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| /* *INDENT-ON* */ | ||
|
|
||
| #endif /* PORTMACRO_H */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| This directory tree contains the master copy of the FreeRTOS Armv8-M and | ||
| Armv8.1-M ports. | ||
| Do not use the files located here! These file are copied into separate | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NNN directories prior to | ||
| each FreeRTOS release. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NNN directories | ||
| prior to each FreeRTOS release. | ||
|
|
||
| If your Armv8-M/Armv8.1-M application uses TrustZone then use the files from the | ||
| FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85] directories. | ||
| FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3] directories. | ||
|
|
||
| If your Armv8-M/Armv8.1-M application does not use TrustZone then use the files from | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_CM[23|33|52|55|85]_NTZ directories. | ||
| the FreeRTOS/Source/portable/[compiler]/ARM_[CM23|CM33|CM52|CM55|CM85|STAR_MC3]_NTZ directories. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.