Skip to content

MBED_ROM_START and friends unavailable on Mbed CLI2 #222

@ccli8

Description

@ccli8

Description

On Mbed CLI, the following symbols are generated and passed to compiler, linker, or both:

mbed compile -m NUMAKER_IOT_M487 -t ARM

BUILD/NUMAKER_IOT_M487/ARM/.profile.c:

{
    "flags": [
        ......
        "-DMBED_RAM_SIZE=0x28000",
        "-DMBED_RAM_START=0x20000000",
        "-DMBED_ROM_SIZE=0x80000",
        "-DMBED_ROM_START=0x0",
        ......

BUILD/NUMAKER_IOT_M487/ARM/.profile.ld:

{
    "flags": [
        ......
        "--predefine=\"-DMBED_BOOT_STACK_SIZE=1024\"",
        "--predefine=\"-DMBED_RAM_SIZE=0x28000\"",
        "--predefine=\"-DMBED_RAM_START=0x20000000\"",
        "--predefine=\"-DMBED_ROM_SIZE=0x80000\"",
        "--predefine=\"-DMBED_ROM_START=0x0\"",
        ......

But on Mbed CLI2, they are unavailable in cmake_build/NUMAKER_IOT_M487/develop/ARM/mbed_config.cmake or elsewhere.

mbed-tools compile -m NUMAKER_IOT_M487 -t ARM

Issue request type

  • Enhancement
  • Bug

Mbed/Tool version

mbed-os: 6.8.0
mbed-cli: 1.10.5
mbed-tools:: 7.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions