Skip to content

boards: tutorials: add nrf52840dk-dynamic-apps-and-policies #4420

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 14 commits into from
May 21, 2025

Conversation

viswajith-g
Copy link
Contributor

…docs

Pull Request Overview

This pull request adds the tutorial board for the process control tutorial for mobisys '25.

Testing Strategy

It is untested because I did not want to upload the process-info capsule while it is still under review and is seeing changes. It worked with a previous iteration of the capsule.

TODO or Help Wanted

@bradjc can test with his local copy of process-info capsule

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@bradjc bradjc changed the title boards: tutorials: add nrf52840dk-process-control and other required … boards: tutorials: add nrf52840dk-process-control May 1, 2025
@bradjc bradjc changed the title boards: tutorials: add nrf52840dk-process-control boards: tutorials: add nrf52840dk-dynamic-apps-and-policies May 1, 2025
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review too deeply; ultimately I assume that this is working for the tutorial it's written for. Just a few small things


This is the board definition for the nRF52840DK target used in the
[Dynamic App Loading and Secure Policies]
(https://github.com/tock/book/pull/60/files).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unfortunate chicken-and-egg situation; fine for the moment, just make sure you have a note somewhere to update this when tock/book#60 lands

(non-blocking comment)

Comment on lines 448 to 453
//--------------------------------------------------------------------------
// SCREEN
//--------------------------------------------------------------------------

const SCREEN_I2C_SDA_PIN: Pin = Pin::P1_10;
const SCREEN_I2C_SCL_PIN: Pin = Pin::P1_11;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof; not a problem this PR needs to fix, but this is the third time we're copy-pasting this block; we should componentize this somehow

(non-blocking comment)

@viswajith-g viswajith-g force-pushed the mobisys25-tutorial branch from a8e525e to ca6ca9d Compare May 15, 2025 20:19
@github-actions github-actions bot added kernel sam4l Change pertains to the SAM4L MCU. nrf Change pertains to the nRF5x family of MCUs. tock-libraries This affects libraries supported by the Tock project HIL This affects a Tock HIL interface. risc-v RISC-V architecture WG-OpenTitan In the purview of the OpenTitan working group. stm32 Change pertains to the stm32 family of MCUSs component WG-Network In the purview of the Network working group. labels May 16, 2025
@viswajith-g viswajith-g force-pushed the mobisys25-tutorial branch from 6d9c9ff to ca6ca9d Compare May 16, 2025 21:54
@github-actions github-actions bot removed kernel sam4l Change pertains to the SAM4L MCU. nrf Change pertains to the nRF5x family of MCUs. tock-libraries This affects libraries supported by the Tock project HIL This affects a Tock HIL interface. risc-v RISC-V architecture WG-OpenTitan In the purview of the OpenTitan working group. stm32 Change pertains to the stm32 family of MCUSs component WG-Network In the purview of the Network working group. labels May 16, 2025
@bradjc
Copy link
Contributor

bradjc commented May 19, 2025

The seq. process loader component changed to move the unsafe operation to main.rs. Need to copy the change from #4436

@bradjc bradjc force-pushed the mobisys25-tutorial branch from b5549f6 to d590be7 Compare May 19, 2025 16:45
Comment on lines +32 to +34
0 => Ok(()),
1 => Ok(()),
_ => Ok(()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this WIP code, or is this a placeholder that tutorial participants are intended to update [if the latter, perhaps indicate with comments?]

@alevy alevy added this pull request to the merge queue May 21, 2025
Merged via the queue into tock:master with commit a883e00 May 21, 2025
15 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants