diff options
| author | James Munns <[email protected]> | 2025-12-04 19:50:28 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-04 19:50:28 +0100 |
| commit | 2843faa777066dd30709fd4aee9837aabc49a52c (patch) | |
| tree | 2207a3f4b0d9b84c34a885dc2b5a9c253d942972 | |
| parent | a08fc1a78065fe42a5eb9a82d1c277b277a57556 (diff) | |
Remove more ODP files
| -rw-r--r-- | embassy-mcxa/CODEOWNERS | 5 | ||||
| -rw-r--r-- | embassy-mcxa/CODE_OF_CONDUCT.md | 132 | ||||
| -rw-r--r-- | embassy-mcxa/CONTRIBUTING.md | 28 | ||||
| -rw-r--r-- | embassy-mcxa/LICENSE | 21 | ||||
| -rw-r--r-- | embassy-mcxa/README.md | 8 | ||||
| -rw-r--r-- | embassy-mcxa/SECURITY.md | 66 | ||||
| -rw-r--r-- | embassy-mcxa/SW-Content-Register.txt | 78 | ||||
| -rw-r--r-- | embassy-mcxa/defmt.x | 6 | ||||
| -rw-r--r-- | embassy-mcxa/run.sh | 93 | ||||
| -rw-r--r-- | embassy-mcxa/rustfmt.toml | 3 |
10 files changed, 0 insertions, 440 deletions
diff --git a/embassy-mcxa/CODEOWNERS b/embassy-mcxa/CODEOWNERS deleted file mode 100644 index 6e0f4c4c6..000000000 --- a/embassy-mcxa/CODEOWNERS +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | * @jamesmunns @felipebalbi | ||
| 2 | |||
| 3 | # Any changes in the supply-chain folder needs approval | ||
| 4 | # from auditors as it relates to cargo vet | ||
| 5 | **/supply-chain @OpenDevicePartnership/crate-auditors \ No newline at end of file | ||
diff --git a/embassy-mcxa/CODE_OF_CONDUCT.md b/embassy-mcxa/CODE_OF_CONDUCT.md deleted file mode 100644 index 54a673e04..000000000 --- a/embassy-mcxa/CODE_OF_CONDUCT.md +++ /dev/null | |||
| @@ -1,132 +0,0 @@ | |||
| 1 | # Contributor Covenant Code of Conduct | ||
| 2 | |||
| 3 | ## Our Pledge | ||
| 4 | |||
| 5 | We as members, contributors, and leaders pledge to make participation in our | ||
| 6 | community a harassment-free experience for everyone, regardless of age, body | ||
| 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender | ||
| 8 | identity and expression, level of experience, education, socio-economic status, | ||
| 9 | nationality, personal appearance, race, caste, color, religion, or sexual | ||
| 10 | identity and orientation. | ||
| 11 | |||
| 12 | We pledge to act and interact in ways that contribute to an open, welcoming, | ||
| 13 | diverse, inclusive, and healthy community. | ||
| 14 | |||
| 15 | ## Our Standards | ||
| 16 | |||
| 17 | Examples of behavior that contributes to a positive environment for our | ||
| 18 | community include: | ||
| 19 | |||
| 20 | * Demonstrating empathy and kindness toward other people | ||
| 21 | * Being respectful of differing opinions, viewpoints, and experiences | ||
| 22 | * Giving and gracefully accepting constructive feedback | ||
| 23 | * Accepting responsibility and apologizing to those affected by our mistakes, | ||
| 24 | and learning from the experience | ||
| 25 | * Focusing on what is best not just for us as individuals, but for the overall | ||
| 26 | community | ||
| 27 | |||
| 28 | Examples of unacceptable behavior include: | ||
| 29 | |||
| 30 | * The use of sexualized language or imagery, and sexual attention or advances of | ||
| 31 | any kind | ||
| 32 | * Trolling, insulting or derogatory comments, and personal or political attacks | ||
| 33 | * Public or private harassment | ||
| 34 | * Publishing others' private information, such as a physical or email address, | ||
| 35 | without their explicit permission | ||
| 36 | * Other conduct which could reasonably be considered inappropriate in a | ||
| 37 | professional setting | ||
| 38 | |||
| 39 | ## Enforcement Responsibilities | ||
| 40 | |||
| 41 | Community leaders are responsible for clarifying and enforcing our standards of | ||
| 42 | acceptable behavior and will take appropriate and fair corrective action in | ||
| 43 | response to any behavior that they deem inappropriate, threatening, offensive, | ||
| 44 | or harmful. | ||
| 45 | |||
| 46 | Community leaders have the right and responsibility to remove, edit, or reject | ||
| 47 | comments, commits, code, wiki edits, issues, and other contributions that are | ||
| 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation | ||
| 49 | decisions when appropriate. | ||
| 50 | |||
| 51 | ## Scope | ||
| 52 | |||
| 53 | This Code of Conduct applies within all community spaces, and also applies when | ||
| 54 | an individual is officially representing the community in public spaces. | ||
| 55 | Examples of representing our community include using an official e-mail address, | ||
| 56 | posting via an official social media account, or acting as an appointed | ||
| 57 | representative at an online or offline event. | ||
| 58 | |||
| 59 | ## Enforcement | ||
| 60 | |||
| 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
| 62 | reported to the community leaders responsible for enforcement at | ||
| 63 | [email protected]. | ||
| 64 | All complaints will be reviewed and investigated promptly and fairly. | ||
| 65 | |||
| 66 | All community leaders are obligated to respect the privacy and security of the | ||
| 67 | reporter of any incident. | ||
| 68 | |||
| 69 | ## Enforcement Guidelines | ||
| 70 | |||
| 71 | Community leaders will follow these Community Impact Guidelines in determining | ||
| 72 | the consequences for any action they deem in violation of this Code of Conduct: | ||
| 73 | |||
| 74 | ### 1. Correction | ||
| 75 | |||
| 76 | **Community Impact**: Use of inappropriate language or other behavior deemed | ||
| 77 | unprofessional or unwelcome in the community. | ||
| 78 | |||
| 79 | **Consequence**: A private, written warning from community leaders, providing | ||
| 80 | clarity around the nature of the violation and an explanation of why the | ||
| 81 | behavior was inappropriate. A public apology may be requested. | ||
| 82 | |||
| 83 | ### 2. Warning | ||
| 84 | |||
| 85 | **Community Impact**: A violation through a single incident or series of | ||
| 86 | actions. | ||
| 87 | |||
| 88 | **Consequence**: A warning with consequences for continued behavior. No | ||
| 89 | interaction with the people involved, including unsolicited interaction with | ||
| 90 | those enforcing the Code of Conduct, for a specified period of time. This | ||
| 91 | includes avoiding interactions in community spaces as well as external channels | ||
| 92 | like social media. Violating these terms may lead to a temporary or permanent | ||
| 93 | ban. | ||
| 94 | |||
| 95 | ### 3. Temporary Ban | ||
| 96 | |||
| 97 | **Community Impact**: A serious violation of community standards, including | ||
| 98 | sustained inappropriate behavior. | ||
| 99 | |||
| 100 | **Consequence**: A temporary ban from any sort of interaction or public | ||
| 101 | communication with the community for a specified period of time. No public or | ||
| 102 | private interaction with the people involved, including unsolicited interaction | ||
| 103 | with those enforcing the Code of Conduct, is allowed during this period. | ||
| 104 | Violating these terms may lead to a permanent ban. | ||
| 105 | |||
| 106 | ### 4. Permanent Ban | ||
| 107 | |||
| 108 | **Community Impact**: Demonstrating a pattern of violation of community | ||
| 109 | standards, including sustained inappropriate behavior, harassment of an | ||
| 110 | individual, or aggression toward or disparagement of classes of individuals. | ||
| 111 | |||
| 112 | **Consequence**: A permanent ban from any sort of public interaction within the | ||
| 113 | community. | ||
| 114 | |||
| 115 | ## Attribution | ||
| 116 | |||
| 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
| 118 | version 2.1, available at | ||
| 119 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. | ||
| 120 | |||
| 121 | Community Impact Guidelines were inspired by | ||
| 122 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. | ||
| 123 | |||
| 124 | For answers to common questions about this code of conduct, see the FAQ at | ||
| 125 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at | ||
| 126 | [https://www.contributor-covenant.org/translations][translations]. | ||
| 127 | |||
| 128 | [homepage]: https://www.contributor-covenant.org | ||
| 129 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html | ||
| 130 | [Mozilla CoC]: https://github.com/mozilla/diversity | ||
| 131 | [FAQ]: https://www.contributor-covenant.org/faq | ||
| 132 | [translations]: https://www.contributor-covenant.org/translations | ||
diff --git a/embassy-mcxa/CONTRIBUTING.md b/embassy-mcxa/CONTRIBUTING.md deleted file mode 100644 index f10eb5be9..000000000 --- a/embassy-mcxa/CONTRIBUTING.md +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | # Contributing to Open Device Partnership | ||
| 2 | |||
| 3 | The Open Device Partnership project welcomes your suggestions and contributions! Before opening your first issue or pull request, please review our | ||
| 4 | [Code of Conduct](CODE_OF_CONDUCT.md) to understand how our community interacts in an inclusive and respectful manner. | ||
| 5 | |||
| 6 | ## Contribution Licensing | ||
| 7 | |||
| 8 | Most of our code is distributed under the terms of the [MIT license](LICENSE), and when you contribute code that you wrote to our repositories, | ||
| 9 | you agree that you are contributing under those same terms. In addition, by submitting your contributions you are indicating that | ||
| 10 | you have the right to submit those contributions under those terms. | ||
| 11 | |||
| 12 | ## Other Contribution Information | ||
| 13 | |||
| 14 | If you wish to contribute code or documentation authored by others, or using the terms of any other license, please indicate that clearly in your | ||
| 15 | pull request so that the project team can discuss the situation with you. | ||
| 16 | |||
| 17 | ## Commit Message | ||
| 18 | |||
| 19 | * Use meaningful commit messages. See [this blogpost](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) | ||
| 20 | |||
| 21 | ## PR Etiquette | ||
| 22 | |||
| 23 | * Create a draft PR first | ||
| 24 | * Make sure that your branch has `.github` folder and all the code linting/sanity check workflows are passing in your draft PR before sending it out to code reviewers. | ||
| 25 | |||
| 26 | ## Regressions | ||
| 27 | |||
| 28 | When reporting a regression, please ensure that you use `git bisect` to find the first offending commit, as that will help us finding the culprit a lot faster. | ||
diff --git a/embassy-mcxa/LICENSE b/embassy-mcxa/LICENSE deleted file mode 100644 index 609bd42da..000000000 --- a/embassy-mcxa/LICENSE +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | MIT License | ||
| 2 | |||
| 3 | Copyright (c) 2025 Open Device Partnership | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | of this software and associated documentation files (the "Software"), to deal | ||
| 7 | in the Software without restriction, including without limitation the rights | ||
| 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | copies of the Software, and to permit persons to whom the Software is | ||
| 10 | furnished to do so, subject to the following conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in all | ||
| 13 | copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | SOFTWARE. | ||
diff --git a/embassy-mcxa/README.md b/embassy-mcxa/README.md index 6e7d61c0e..079eeb487 100644 --- a/embassy-mcxa/README.md +++ b/embassy-mcxa/README.md | |||
| @@ -1,13 +1,5 @@ | |||
| 1 | # Embassy MCXA256 HAL | 1 | # Embassy MCXA256 HAL |
| 2 | 2 | ||
| 3 | [](https://github.com/OpenDevicePartnership/embassy-mcxa/actions/workflows/check.yml) | ||
| 4 | [](https://github.com/OpenDevicePartnership/embassy-mcxa/actions/workflows/nostd.yml) | ||
| 5 | [](https://github.com/OpenDevicePartnership/embassy-mcxa/actions/workflows/rolling.yml) | ||
| 6 | |||
| 7 | A Hardware Abstraction Layer (HAL) for the NXP MCXA256 microcontroller | 3 | A Hardware Abstraction Layer (HAL) for the NXP MCXA256 microcontroller |
| 8 | using the Embassy async framework. This HAL provides safe, idiomatic | 4 | using the Embassy async framework. This HAL provides safe, idiomatic |
| 9 | Rust interfaces for GPIO, UART, and OSTIMER peripherals. | 5 | Rust interfaces for GPIO, UART, and OSTIMER peripherals. |
| 10 | |||
| 11 | ## License | ||
| 12 | |||
| 13 | This project is licensed under MIT OR Apache-2.0. | ||
diff --git a/embassy-mcxa/SECURITY.md b/embassy-mcxa/SECURITY.md deleted file mode 100644 index 5357b8824..000000000 --- a/embassy-mcxa/SECURITY.md +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | # Vulnerability Disclosure and Embargo Policy | ||
| 2 | |||
| 3 | The Open Device Partnership project welcomes the responsible disclosure of vulnerabilities. | ||
| 4 | |||
| 5 | ## Initial Contact | ||
| 6 | |||
| 7 | All security bugs in Open Device Partnership should be reported to the security team. | ||
| 8 | To do so, please reach out in the form of a | ||
| 9 | [Github Security Advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities). | ||
| 10 | |||
| 11 | You will be invited to join this private area to discuss specifics. Doing so | ||
| 12 | allows us to start with a high level of confidentiality and relax it if the | ||
| 13 | issue is less critical, moving to work on the fix in the open. | ||
| 14 | |||
| 15 | Your initial contact will be acknowledged within 48 hours, and you’ll receive | ||
| 16 | a more detailed response within 96 hours indicating the next steps in handling | ||
| 17 | your report. | ||
| 18 | |||
| 19 | After the initial reply to your report, the security team will endeavor to | ||
| 20 | keep you informed of the progress being made towards a fix and full | ||
| 21 | announcement. As recommended by | ||
| 22 | [RFPolicy](https://dl.packetstormsecurity.net/papers/general/rfpolicy-2.0.txt), | ||
| 23 | these updates will be sent at least every five working days. | ||
| 24 | |||
| 25 | ## Disclosure Policy | ||
| 26 | |||
| 27 | The Open Device Partnership project has a 5 step disclosure process. | ||
| 28 | |||
| 29 | 1. Contact is established, a private channel created, and the security report | ||
| 30 | is received and is assigned a primary handler. This person will coordinate | ||
| 31 | the fix and release process. | ||
| 32 | 2. The problem is confirmed and a list of all affected versions is determined. | ||
| 33 | If an embargo is needed (see below), details of the embargo are decided. | ||
| 34 | 3. Code is audited to find any potential similar problems. | ||
| 35 | 4. Fixes are prepared for all releases which are still under maintenance. In | ||
| 36 | case of embargo, these fixes are not committed to the public repository but | ||
| 37 | rather held in a private fork pending the announcement. | ||
| 38 | 5. The changes are pushed to the public repository and new builds are deployed. | ||
| 39 | |||
| 40 | This process can take some time, especially when coordination is required | ||
| 41 | with maintainers of other projects. Every effort will be made to handle the bug | ||
| 42 | in as timely a manner as possible, however it is important that we follow the | ||
| 43 | release process above to ensure that the disclosure is handled in a consistent | ||
| 44 | manner. | ||
| 45 | |||
| 46 | ## Embargoes | ||
| 47 | |||
| 48 | While the Open Device Partnership project aims to follow the highest standards of | ||
| 49 | transparency and openness, handling some security issues may pose such an | ||
| 50 | immediate threat to various stakeholders and require coordination between | ||
| 51 | various actors that it cannot be made immediately public. | ||
| 52 | |||
| 53 | In this case, security issues will fall under an embargo. | ||
| 54 | |||
| 55 | An embargo can be called for in various cases: | ||
| 56 | |||
| 57 | - when disclosing the issue without simultaneously providing a mitigation | ||
| 58 | would seriously endanger users, | ||
| 59 | - when producing a fix requires coordinating between multiple actors (such as | ||
| 60 | upstream or downstream/dependency projects), or simply | ||
| 61 | - when proper analysis of the issue and its ramifications demands time. | ||
| 62 | |||
| 63 | If we determine that an issue you report requires an embargo, we will discuss | ||
| 64 | this with you and try to find a reasonable expiry date (aka “embargo | ||
| 65 | completion date”), as well as who should be included in the list of | ||
| 66 | need-to-know people. | ||
diff --git a/embassy-mcxa/SW-Content-Register.txt b/embassy-mcxa/SW-Content-Register.txt deleted file mode 100644 index 09f879c2f..000000000 --- a/embassy-mcxa/SW-Content-Register.txt +++ /dev/null | |||
| @@ -1,78 +0,0 @@ | |||
| 1 | Release Name: Embassy MCXA276 HAL | ||
| 2 | Release Version: 0.1.0 | ||
| 3 | Package License: MIT (see ./License.txt) | ||
| 4 | Note: The crate is dual-licensed “MIT OR Apache-2.0” per Cargo.toml; choosing MIT satisfies the dual-license terms. | ||
| 5 | |||
| 6 | Scope of this Register | ||
| 7 | This file documents software content that is part of this repository and, for transparency, lists major non-vendored Rust dependencies that are resolved from crates.io during builds. Components that are not present in the repository (e.g., external crates) are listed under “Non‑vendored Rust dependencies”. | ||
| 8 | |||
| 9 | Repository Components (included in this release) | ||
| 10 | |||
| 11 | embassy_mcxa276_hal Name: Embassy MCXA276 HAL (library + examples) | ||
| 12 | Version: 0.1.0 | ||
| 13 | Outgoing License: MIT | ||
| 14 | License File: ./License.txt | ||
| 15 | Format: Rust source code, examples, scripts, linker scripts | ||
| 16 | Description: Hardware Abstraction Layer for NXP MCXA276 using the Embassy async framework. Implements drivers and helpers for: | ||
| 17 | - LPUART2 (UART), OSTIMER0, RTC0, ADC1, GPIO | ||
| 18 | - Embassy integration (executors, time) | ||
| 19 | Location: ./src, ./examples, ./build.rs, ./memory.x, ./ram.ld, ./defmt.x, ./.cargo/config.toml, ./run.sh, ./tools/ | ||
| 20 | Origin: OEMWCSE (MIT) | ||
| 21 | URL: https://bitbucket.sw.nxp.com/scm/oemwcse/mcxa_rust.git | ||
| 22 | |||
| 23 | mcxa276_pac Name: MCXA276 Peripheral Access Crate (PAC) | ||
| 24 | Version: 0.1.0 | ||
| 25 | Outgoing License: MIT OR Apache-2.0 | ||
| 26 | License File: (see crate metadata) | ||
| 27 | Format: Rust source code (auto-generated PAC) | ||
| 28 | Description: Auto-generated register mappings for MCXA276 peripherals (svd2rust). Includes device.x and interrupt vectors. | ||
| 29 | Location: External (git): https://github.com/bogdan-petru/mcxa-pac (pinned rev a9dd3301) | ||
| 30 | Origin: Generated by svdtools + svd2rust from NXP SVD 25.06.00 | ||
| 31 | URL: N/A (generated from NXP SVD) | ||
| 32 | |||
| 33 | examples Name: Example applications | ||
| 34 | Version: N/A | ||
| 35 | Outgoing License: MIT | ||
| 36 | License File: ./License.txt | ||
| 37 | Format: Rust source code (examples) | ||
| 38 | Description: Demonstrations for HAL peripherals and features: | ||
| 39 | - hello, blink | ||
| 40 | - lpuart_polling, lpuart_buffered, uart_interrupt | ||
| 41 | - rtc_alarm | ||
| 42 | - adc_polling, adc_interrupt | ||
| 43 | - ostimer_alarm, ostimer_async, ostimer_counter, ostimer_race_test | ||
| 44 | Location: ./examples | ||
| 45 | Origin: OEMWCSE (MIT) | ||
| 46 | |||
| 47 | Non‑vendored Rust dependencies (resolved from crates.io at build time) | ||
| 48 | The following crates are not vendored in this repository. They are fetched during builds via Cargo. See Cargo.lock for exact versions. License summaries below are for convenience; consult each crate for authoritative terms. | ||
| 49 | |||
| 50 | cortex-m License: MIT OR Apache-2.0 Purpose: Cortex-M core support | ||
| 51 | cortex-m-rt License: MIT OR Apache-2.0 Purpose: Cortex-M runtime (vectors, reset) | ||
| 52 | embassy-executor License: MIT OR Apache-2.0 Purpose: Async executor for Cortex-M | ||
| 53 | embassy-time (+ driver) License: MIT OR Apache-2.0 Purpose: Time abstraction and drivers | ||
| 54 | embassy-sync License: MIT OR Apache-2.0 Purpose: No-std synchronization primitives | ||
| 55 | embassy-embedded-hal License: MIT OR Apache-2.0 Purpose: Traits/adapters for embedded-hal | ||
| 56 | embassy-hal-internal License: MIT OR Apache-2.0 Purpose: HAL building blocks (peripherals!) | ||
| 57 | embedded-hal (1.0) License: MIT OR Apache-2.0 Purpose: Core embedded hardware traits | ||
| 58 | embedded-hal (0.2.6) License: MIT OR Apache-2.0 Purpose: Legacy HAL traits ("unproven") | ||
| 59 | embedded-hal-async License: MIT OR Apache-2.0 Purpose: Async HAL traits | ||
| 60 | embedded-hal-nb License: MIT OR Apache-2.0 Purpose: Non-blocking HAL traits | ||
| 61 | embedded-io / embedded-io-async License: MIT OR Apache-2.0 Purpose: IO traits | ||
| 62 | critical-section License: MIT OR Apache-2.0 Purpose: Critical-section abstraction | ||
| 63 | heapless License: MIT OR Apache-2.0 Purpose: Fixed-capacity data structures | ||
| 64 | paste License: MIT OR Apache-2.0 Purpose: Macro hygiene utility | ||
| 65 | nb License: MIT OR Apache-2.0 Purpose: Non-blocking result type | ||
| 66 | vcell License: MIT OR Apache-2.0 Purpose: Volatile cell (PAC dependency) | ||
| 67 | |||
| 68 | defmt, defmt-rtt, rtt-target, panic-probe License: MIT OR Apache-2.0 Purpose: Optional (feature-gated) logging/panic crates | ||
| 69 | |||
| 70 | Attribution notes | ||
| 71 | - MCXA276 PAC is sourced as an external dependency (see Cargo.toml). SVD 25.06.00 already includes OS_EVENT and WAKETIMER0 interrupts (no local fixes). | ||
| 72 | - Examples run from RAM using custom linker setup; see README.txt for platform-specific instructions. | ||
| 73 | |||
| 74 | Compliance | ||
| 75 | - This repository’s distributed source is covered by MIT (see License.txt). Where crates are pulled from crates.io, those crates retain their own licenses; the dual-license compatibility (MIT OR Apache-2.0) is standard in the Rust embedded ecosystem and is compatible with this project’s selected MIT distribution. | ||
| 76 | |||
| 77 | |||
| 78 | |||
diff --git a/embassy-mcxa/defmt.x b/embassy-mcxa/defmt.x deleted file mode 100644 index dbd6d0850..000000000 --- a/embassy-mcxa/defmt.x +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | /* | ||
| 2 | Dummy defmt.x to satisfy -Tdefmt.x when building without the `defmt` feature. | ||
| 3 | When `defmt` is enabled, the real defmt.x provided by the defmt crate is used via the linker search path. | ||
| 4 | This file intentionally contains no SECTIONS so it won't override ram.ld. | ||
| 5 | */ | ||
| 6 | |||
diff --git a/embassy-mcxa/run.sh b/embassy-mcxa/run.sh deleted file mode 100644 index 418dc8a24..000000000 --- a/embassy-mcxa/run.sh +++ /dev/null | |||
| @@ -1,93 +0,0 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | set -euo pipefail | ||
| 3 | |||
| 4 | ELF="${1:-}" | ||
| 5 | if [[ -z "${ELF}" ]]; then | ||
| 6 | echo "Usage: $0 <elf_file>" | ||
| 7 | exit 1 | ||
| 8 | fi | ||
| 9 | if [[ ! -f "${ELF}" ]]; then | ||
| 10 | echo "ELF not found: ${ELF}" | ||
| 11 | exit 1 | ||
| 12 | fi | ||
| 13 | |||
| 14 | # Configurable via env | ||
| 15 | CHIP="${CHIP:-MCXA276}" | ||
| 16 | SPEED="${PROBE_SPEED:-1000}" # kHz | ||
| 17 | # Default to J-Link if PROBE not provided | ||
| 18 | PROBE_OPT=(--probe "${PROBE:-1366:0101:000600110607}") | ||
| 19 | PORT="${PROBE_RS_GDB_PORT:-1337}" | ||
| 20 | |||
| 21 | cleanup() { | ||
| 22 | if [[ -n "${GDB_SERVER_PID:-}" ]]; then kill "${GDB_SERVER_PID}" 2>/dev/null || true; fi | ||
| 23 | [[ -n "${GDB_SCRIPT:-}" ]] && rm -f "${GDB_SCRIPT}" || true | ||
| 24 | [[ -n "${SERVER_LOG:-}" ]] && rm -f "${SERVER_LOG}" || true | ||
| 25 | } | ||
| 26 | trap cleanup EXIT | ||
| 27 | |||
| 28 | if ! command -v probe-rs >/dev/null 2>&1; then | ||
| 29 | echo "probe-rs not found (cargo install probe-rs --features cli)" | ||
| 30 | exit 1 | ||
| 31 | fi | ||
| 32 | if ! command -v gdb-multiarch >/dev/null 2>&1; then | ||
| 33 | echo "gdb-multiarch not found; install it (e.g., sudo apt install gdb-multiarch)." | ||
| 34 | exit 1 | ||
| 35 | fi | ||
| 36 | |||
| 37 | # Start probe-rs GDB server and capture its output to a log (do not hide errors) | ||
| 38 | SERVER_LOG=$(mktemp) | ||
| 39 | set +e | ||
| 40 | probe-rs gdb --chip "${CHIP}" --protocol swd --speed "${SPEED}" --non-interactive "${ELF}" "${PROBE_OPT[@]}" \ | ||
| 41 | >"${SERVER_LOG}" 2>&1 & | ||
| 42 | GDB_SERVER_PID=$! | ||
| 43 | set -e | ||
| 44 | |||
| 45 | # Wait for server readiness without touching the TCP port to avoid corrupting the GDB protocol | ||
| 46 | ready="" | ||
| 47 | for _ in {1..50}; do | ||
| 48 | if grep -q "Firing up GDB stub" "${SERVER_LOG}"; then ready=1; break; fi | ||
| 49 | if grep -q "Connecting to the chip was unsuccessful" "${SERVER_LOG}"; then | ||
| 50 | echo "probe-rs gdb server failed to connect to target. Log:" >&2 | ||
| 51 | echo "----- probe-rs gdb log -----" >&2 | ||
| 52 | sed -e 's/^/ /' "${SERVER_LOG}" >&2 || true | ||
| 53 | exit 1 | ||
| 54 | fi | ||
| 55 | sleep 0.1 | ||
| 56 | done | ||
| 57 | if [[ -z "${ready}" ]]; then | ||
| 58 | echo "probe-rs gdb server did not report readiness. Log:" >&2 | ||
| 59 | echo "----- probe-rs gdb log -----" >&2 | ||
| 60 | sed -e 's/^/ /' "${SERVER_LOG}" >&2 || true | ||
| 61 | exit 1 | ||
| 62 | fi | ||
| 63 | |||
| 64 | # GDB script: load to RAM and run, no reset | ||
| 65 | GDB_SCRIPT=$(mktemp) | ||
| 66 | cat >"${GDB_SCRIPT}" <<EOF | ||
| 67 | set pagination off | ||
| 68 | set confirm off | ||
| 69 | set mem inaccessible-by-default off | ||
| 70 | |||
| 71 | # Connect and load without reset | ||
| 72 | target remote :${PORT} | ||
| 73 | monitor halt | ||
| 74 | load | ||
| 75 | # Set VTOR to point to our RAM vector table at 0x20000000 | ||
| 76 | # This ensures the CPU uses the correct initial SP and Reset vector | ||
| 77 | set *0xE000ED08 = 0x20000000 | ||
| 78 | # Now read SP and PC from our vector table and set them | ||
| 79 | set \$sp = *(unsigned int*)0x20000000 | ||
| 80 | set \$pc = *(unsigned int*)0x20000004 | ||
| 81 | # Run target (blocks here until you Ctrl+C, like before) | ||
| 82 | continue | ||
| 83 | EOF | ||
| 84 | |||
| 85 | # Run gdb against the server | ||
| 86 | if ! gdb-multiarch -q -batch -x "${GDB_SCRIPT}" "${ELF}"; then | ||
| 87 | echo "GDB failed to load/run. probe-rs gdb server log:" >&2 | ||
| 88 | echo "----- probe-rs gdb log -----" >&2 | ||
| 89 | sed -e 's/^/ /' "${SERVER_LOG}" >&2 || true | ||
| 90 | exit 1 | ||
| 91 | fi | ||
| 92 | |||
| 93 | echo "Program loaded and started (no reset)" | ||
diff --git a/embassy-mcxa/rustfmt.toml b/embassy-mcxa/rustfmt.toml deleted file mode 100644 index 9eb3c3b4f..000000000 --- a/embassy-mcxa/rustfmt.toml +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | group_imports = "StdExternalCrate" | ||
| 2 | imports_granularity = "Module" | ||
| 3 | max_width = 120 | ||
