-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MBED_ROM_START and friends unavailable on Mbed CLI2 #222
Comments
I think idea is to remove the dependency with tools/arm_pack_manager/index.json file which is not really maintained...? |
What are these files used for? Is What is the high-level use case here? |
This may be a duplicate of #156 |
What do C/C++ source files use these for? I can understand wanting to customize the linkerscript, but beyond that, I am currently unclear how these variables are useful. We can implement passing them along, but it'd be good to understand why and where they are needed. |
Just list one known use case. On mbed-os-5.15, on Nuvoton's M2351/M2354 TrustZone non-PSA targets, On Mbed OS 6, M2351/M2354 are removed and I am not clear if they are used elsewhere. Or they can be used like above use case. |
MBED_ROM_START and friends are absent in Mbed CLI2. Hard-code these values as workaround. ARMmbed/mbed-tools#222
@ccli8 @Patater Another option to get application start address & size is to reference regions defined in linker script. Example: https://github.com/ARMmbed/mbed-os/blob/master/drivers/include/drivers/FlashIAP.h#L35-L50 But if #156 does rely on |
In use case like ARMv8M TF-M/Mbed integration, ROM/RAM memory spec are defined in TF-M. This information must pass to Mbed from TF-M via external means like |
MBED_ROM_START and friends are absent in Mbed CLI2. Hard-code these values as workaround. ARMmbed/mbed-tools#222
@ccli8 For TF-M, could we use region_defs.h for the necessary defines? See MUSCA B1's region_defs.h for example. |
@ccli8 The files suggested by @Patater can be copied from TF-M: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/nuvoton/m2351/partition?h=TF-Mv1.3.0 (e.g. M2351) |
@Patater @LDong-Arm I will try the |
Description
On Mbed CLI, the following symbols are generated and passed to compiler, linker, or both:
BUILD/NUMAKER_IOT_M487/ARM/.profile.c:
BUILD/NUMAKER_IOT_M487/ARM/.profile.ld:
But on Mbed CLI2, they are unavailable in
cmake_build/NUMAKER_IOT_M487/develop/ARM/mbed_config.cmake
or elsewhere.Issue request type
Mbed/Tool version
mbed-os: 6.8.0
mbed-cli: 1.10.5
mbed-tools:: 7.2.1
The text was updated successfully, but these errors were encountered: