-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from xmos/develop
merge develop into main for release v0.12.0
- Loading branch information
Showing
166 changed files
with
8,200 additions
and
673 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -16,3 +16,6 @@ | |
[submodule "frameworks/rtos"] | ||
path = modules/rtos | ||
url = [email protected]:xmos/fwk_rtos.git | ||
[submodule "modules/xscope_fileio/xscope_fileio"] | ||
path = modules/xscope_fileio/xscope_fileio | ||
url = [email protected]:xmos/xscope_fileio.git |
This file contains 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 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,14 +1,4 @@ | ||
@Library('[email protected]') _ | ||
|
||
def withXTAG(String target, Closure body) { | ||
// Acquire an xtag adapter-id by target name | ||
def adapterID = sh (script: "xtagctl acquire ${target}", returnStdout: true).trim() | ||
// Run the closure | ||
body(adapterID) | ||
// Release the xtag by adapter-id | ||
sh ("xtagctl release ${adapterID}") | ||
} | ||
|
||
@Library('[email protected]') _ | ||
|
||
// Wait here until specified artifacts appear | ||
def artifactUrls = getGithubArtifactUrls([ | ||
|
@@ -23,7 +13,7 @@ getApproval() | |
|
||
pipeline { | ||
agent { | ||
label 'sdk' | ||
label 'us-hw-xcai-exp0' | ||
} | ||
options { | ||
disableConcurrentBuilds() | ||
|
@@ -45,7 +35,7 @@ pipeline { | |
environment { | ||
PYTHON_VERSION = "3.8.11" | ||
VENV_DIRNAME = ".venv" | ||
DOWNLOAD_DIRNAME = "build" | ||
DOWNLOAD_DIRNAME = "dist" | ||
SDK_TEST_RIG_TARGET = "xcore_sdk_test_rig" | ||
} | ||
stages { | ||
|
@@ -93,44 +83,45 @@ pipeline { | |
withVenv { | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_getting_started.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_getting_started_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_getting_started_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_getting_started' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_explorer_board.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_explorer_board_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_explorer_board_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_explorer_board' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_dispatcher.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_dispatcher_tests.sh $adapterID" | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_l2_cache.xe")) { | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_l2_cache_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_dispatcher' | ||
echo 'SKIPPED: example_freertos_l2_cache' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_l2_cache.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_l2_cache_tests.sh $adapterID" | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_tracealyzer.xe")) { | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_tracealyzer_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_l2_cache' | ||
echo 'SKIPPED: example_freertos_tracealyzer' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// stage('Run bare-metal examples') { | ||
// steps { | ||
// withTools(params.TOOLS_VERSION) { | ||
|
This file contains 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 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 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 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 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,41 @@ | ||
.. _sdk-faq: | ||
|
||
############################# | ||
Frequently Asked Questions | ||
############################# | ||
|
||
************ | ||
Build Issues | ||
************ | ||
|
||
================= | ||
Submodule updates | ||
================= | ||
|
||
The XCORE SDK uses submodules. If you have cloned the repository and later perform an update, it will sometimes also be necessary to update the submodules. To update all submodules, run the following command | ||
|
||
.. code-block:: console | ||
git submodule update --init --recursive | ||
======================== | ||
fatfs_mkimage: not found | ||
======================== | ||
|
||
This issue occurs when the XCORE SDK `fatfs_mkimage` utility cannot be found. The most common cause for these issues are an incomplete installation of the XCORE SDK. | ||
|
||
Ensure that the host applications setup has been completed. Verify that the `fatfs_mkimage` binary is installed to a location on PATH, or that the default application installation folder is added to PATH. See the :ref:`sdk-installation` guide for more information on installing the host applications. | ||
|
||
=============================================== | ||
xcc2clang.exe: error: no such file or directory | ||
=============================================== | ||
|
||
Those strange characters at the beginning of the path are known as a byte-order mark (BOM). CMake adds them to the beginning of the response files it generates during the configure step. Why does it add them? Because the MSVC compiler toolchain requires them. However, some compiler toolchains, like `gcc` and `xcc`, do not ignore the BOM. Why did CMake think the compiler toolchain was MSVC and not the XTC toolchain? Because of a bug in which certain versions of CMake and certain versions of Visual Studio do not play nice together. The good news is that this appears to have been addressed in CMake version 3.22.3. | ||
|
||
Update to CMake version 3.22.2 or newer. | ||
|
||
******** | ||
FreeRTOS | ||
******** | ||
|
||
See the :ref:`freertos-faq` or :ref:`freertos-common_issues` |
This file contains 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 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 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 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 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,3 +1,5 @@ | ||
.. _sdk-baremetal-code-examples: | ||
|
||
######################## | ||
Bare-metal Code Examples | ||
######################## | ||
|
This file contains 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 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 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.