tock / tock/tockloader

Update MPU alignment checking logic

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
44
Forks
59
Avg merge
20h 33m
Merged PRs (30d)
2

Description

The alignment logic for MPU on cortex-m in tockloader only checks if the app is aligned based on its entire size. However, the cortex-m mpu code includes more logic for using subregions:

https://github.com/tock/tock/blob/43429fe5866750302bce4758688d4c522cf719bd/arch/cortex-m/src/mpu.rs#L434-L502

Tockloader should replicate the same logic to provide a more accurate warning for apps which are not aligned to their entire size.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect tockloader's current MPU alignment check and compare it with the cortex-m MPU subregion logic linked in the issue. Determine how the warning should account for subregions, then verify that apps accepted or rejected by the check match the referenced Tock behavior; the issue names no specific test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.