Skip to content

M2351: Cannot partition flash/SRAM through mbed_app.json #7942

@ccli8

Description

@ccli8

Description

On NUMAKER_PFM_M2351, I can partition flash/SRAM through mbed_app.json before. For example, in the example below:
https://github.com/OpenNuvoton/NuMaker-mbed-TZ-secure-example
I can partition secure/non-secure flash to 64 KiB/448 KiB and SRAM to 8 KiB/88 KiB by modifying target.mbed_rom_start, but this override fails on mbed-os-5.9.5/mbed-os-5.9.6.

"target_overrides": {
        "*": {
            "platform.stdio-baud-rate": 9600,
            "platform.stdio-convert-newlines": true
        },
        "NUMAKER_PFM_M2351": {
            "target.core": "Cortex-M23",
            "target.inherits": ["NUMAKER_PFM_M2351"],
            "target.device_has_remove": ["TRNG", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES"],
            
            "target.mbed_rom_start":    "0x0",
            "target.mbed_rom_size":     "0x10000",
            "target.mbed_ram_start":    "0x20000000",
            "target.mbed_ram_size":     "0x2000"
           
        }
    }

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions