lowRISC / lowRISC/epic-c-example

Sentinel value interaction with loadable flash addresses not clear

Open
#1 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I am unsure why the sentinel value is subtracted from the flash app load address in kernel.c. It doesn't seem to be re-added anywhere so does this mean that the flash image is loaded at a different address to the one specified or is this just to compensate for a fixed offset encoded into the relocations? Might be worth a comment explaining what is happening:

https://github.com/lowRISC/epic-c-example/blob/535d1a5fe2b1b5201d35612ae27ea7e5db02dee2/kernel.c#L26

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

Start at kernel.c line 26 and trace how the sentinel value is used with the flash app load address. Check the related relocation or load-address handling in this ePIC example to determine why the subtraction is needed. Done means adding a concise comment that explains the address adjustment and verifying that the example still builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.