[radio] use stack reset in RCP (#6645)

This commit makes RCP use a stack reset instead of doing a hard reset
when a reset command is received.
This commit is contained in:
jinran-google
2021-09-17 18:36:26 -07:00
committed by GitHub
parent 8841bdd38d
commit ee58635945
17 changed files with 427 additions and 35 deletions
+24
View File
@@ -240,6 +240,30 @@ jobs:
run: |
script/check-posix-pty check
rcp-stack-reset:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Bootstrap
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat
sudo python3 -m pip install git+https://github.com/openthread/pyspinel
- name: Build
run: |
script/cmake-build simulation -DOT_CSL_RECEIVER=ON -DOT_FULL_LOGS=ON -DOT_LOG_OUTPUT=PLATFORM_DEFINED
- name: Run
run: |
python3 tests/scripts/misc/test_rcp_reset.py build/simulation/examples/apps/ncp/ot-rcp
- name: Generate Coverage
run: |
./script/test generate_coverage gcc
- uses: actions/upload-artifact@v2
with:
name: cov-rcp-stack-reset
path: tmp/coverage.info
upload-coverage:
needs:
- expects-linux