Skip to content

Bug: Example MPU 4.1 broken due to missing linker script support #4

Description

@arctic-alpaca

Example 4.1 tries to read the flag from

const DATA_ADDRESS: usize = 0xB002FC00;
which should refer to
#[cfg_attr(target_os = "macos", link_section = ".uninit,mpu_protected")]
#[cfg_attr(not(target_os = "macos"), link_section = ".mpu_protected")]
static FLAG_4_1: [u8; 16] = *b"OsU7rwolFq3ItiJ5"; // Keep this at 16 characters always, this is hardcoded
. Due to there being no linker script entry, the flag is not included at the expected location and example 4.1 fails.

We should either revamp the example or include optional linker script support again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions