adamgreig
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Embedded Working Group Meeting 2024-05-14 * [Coordination Repository] * Meetings: Tuesday 8pm Europe/Berlin time * [Join the Chat] * Today's date: 2024-05-14 * [Nominated issues](https://github.com/search?q=org%3Arust-embedded+label%3Anominated+is%3Aopen&type=Issues) * [Discussion topic](https://github.com/rust-embedded/wg/discussions/747) * [IRC logs] [Coordination Repository]: https://github.com/rust-embedded/wg [Join the Chat]: https://matrix.to/#/#rust-embedded:matrix.org [IRC logs]: https://libera.irclog.whitequark.org/rust-embedded/2024-05-14 ## Attendance Write your GH username or Matrix handle here! * adamgreig * dirbaio * jamesmunns * Adam Hott * hdoordt * sirhcel * nastevens * alevy * newAM * therealprof * bartmassey * jannic (late) ## Agenda * Announcements * svd2rust 0.33.3 released * tracking issue to discuss postcard 2.0 https://github.com/jamesmunns/postcard/issues/128 * RustNL recap * https://hackmd.io/p6bQ0OzqTj-R9ra11LvP8A * Roadmap for WG work * Keep working on supported targets and foundational crates like embedded-hal * Improve documentation, tutorials, examples, libraries to ensure many more people can become embedded Rust developers * Improve visibility and discoverability of our work, especially considering specific target audiences * Coordinate with vendors * Ensure we have a good experience for hobbyists coming from platforms such as Arduino, including GUI-only installation experience * Working group meetings and structure * We'd like to remain part of the Rust project and on the whole they'd like something like that too * There's a proposed "Rust Application Organisation" (name TBC) to collect Rust _users_, which we might also become involved in * We should be involved on the Rust Zulip more to improve communication with Project members * Proposal for a new sub-team who are responsible for directly interacting with the Rust Project and have a weekly meeting on Zulip (maybe not every week, depending on what topics come up) * Use of volatilecell and PAC singletons * We need to stop using vcell, move svd2rust and cortex-m to chiptool-style pointers in structs which generate offsets for register access * Still want to split c-m into PAC/HAL layer (and perhaps -asm) * Concluded to propose removing owned singletons from svd2rust, make this a HAL concern instead * Proposal for new MMIO functionality in Rust itself, e.g. mmio_read/mmio_write on ptr, and in the interim we could emulate this in cortex-m with inline assembly * Also add an mmio_fence function * Rust + Bluetooth * Work in progress on TrouBLE with some tasks assigned * PAC/Arch/Runtime crate interactions * Agreed on previous plan to make cortex-m-pac-interface with interrupt trait so that PACs don't have to depend on arch or runtime crates * Looked at how Risc-V is split (-pac, -peripheral, -, -rt) * Discussed interrupt macro syntax options to be able to separate it from the PACs, current conclusion is something like `#[interrupt(pac::Interrupt::UART0)] fn foo() {}` * Binary data structure representations * Documentation * Discussed a plan (see hackmd link above) for discovery book: * Split and archive the old f3disco and mb1 books * Pros * Prevents creating new issues for the old books * Cons * Is there actually a need for maintaining the older books? * What about just keeping them (along with their issues) "archived" (issues closed) in the same repo? * In combination with hosting the older books as-is (see below) * Update current book for full mb2 * Discussed having a simple BSP that's part of the book (or its own crate) to keep the first examples easy, moving to direct HAL use later in the book * Might be able to obtain funding to pay students to help with some chapters * Need better CI * Also want to create a new FAQ page with common questions * We should check where else users are asking questions, such as Discourse * HAL reference examples * Probe-rs * Lots of things to work on and roadmap items planned, see doc for details * Discussed embedded pain points with Rust project * Future of static mut * We discussed the `grounded` crate * Rust wants to more or less deprecate the use of static mut, it already generates a warning and will be forbidden in the 2024 edition * `grounded` offers some well-documented wrappers for many common use cases * We decided to keep developing/documenting grounded as-is for the immediate time being, with a plan to move it into the wg libs team soon, and potentially see some structs move into Rust itself later * Binary code size discussion * Various code size pain points discussed * RFC opened to add a new flag to std allowing size optimisations * Embedded HAL * Documentation * Discovery book * Issues [#568](https://github.com/rust-embedded/discovery/issues/568) & [#567](https://github.com/rust-embedded/discovery/issues/567) * Permission to resources team for @hdoordt and @bartmassey? * https://github.com/rust-embedded/wg/pull/756 * Keeping the previous books hosted? * Pros * Keeping these variants still easily accessible * Catching unknown links under https://docs.rust-embedded.org/discovery/, tell about the new book and still guide to the older variants * Being friendly and not letting aspiring Rust embedded devs with already some cognitive load on their journey just hit a 404 wall * Cons * Some work for embedded WG * Referencing known-good documentation for architectures not covered in the book like std-sync and std-async (on ESP32) * See for example https://github.com/rust-embedded/discovery/pull/559 * Providing some guidance in contrast somewhat somewhat overwhelming _Awesome Embedded Rust_ for beginners * Actions-rs deprecated for GitHub Actions * Issue [#754](https://github.com/rust-embedded/wg/issues/754) * Do we need separate issues per-repo, or "just do it"? * Preferences for rust-toolchain versus just rustup? * Anything (checks, dependabot, etc) that should be included/excluded from all repos? * Decided nastevens will go through repos currently on actions-rs and do simple migration * Then use what's learned from this migration to propose CI template if it makes sense * risc-v CSR access unsafe or not? https://github.com/rust-embedded/riscv/issues/209 ## Last Week's Minutes * Announcements * embedded-hal-bus 0.2 released with AtomicDevice * Target docs for thumb targets PR underway: https://github.com/rust-lang/rust/pull/124404 * @thejpster stepping down from wg and leadership council * next week's meeting is skipped, resuming the week after (on 14th may) * Embedded HAL * AtomicDevice use of portable_atomic means build fails on armv6 https://github.com/rust-embedded/embedded-hal/issues/598 * add atomic-device feature, enable AtomicDevice if feature is enabled or cfg(target_has_atomic..), add atomic-critical-section and atomic-unsafe-assume-single-core (or portable-atomic-...?) which proxy to p-a and also enable atomic-device, document this, release as 0.3 * Tooling docs update: https://github.com/CodingInGreen/tooling * what to add? * Maintenance of STM32 Discovery Book? * Is our most complete book * Does not seem to be in widespread use anymore * Board has changed version * Two books is a lot * Conclusion: don't worry about the stm32 book, mark it as more clearly archived/read-only/deprecated

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully