-
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
Bootloader overrides from config are not processed #156
Comments
does mbed_app_start and friends work yet? |
Sorry, the "bootloader overrides" don't work yet. We do have another backlog item to add those in. We will get to that over the next few weeks. |
@rwalton-arm looking forward to the bootloader settings. It is really needed for our product. We are a bit lost in translation as we are moving to the new CMake build system but need a way to manage the bootloader and application (we are using Pelion) |
This is blocking adoption for us. How much effort would this require to be implemented? |
@boraozgen #270 - this does not fix the issue? If not, what we are missing? Can you describe what is blocking your project? |
We are using a bootloader with an application. Therefore it is required to shift the application in ROM. Here it is explained that I see that #270 adds support for |
as far as i can tell it's not quite ready yet. I'm still looking for a way to work around it without editing the ld file itself. This in particular doesn't work since it doesn't seem to parse from {
"target_overrides": {
"*": {
"mbed_app_start": "0xA",
"mbed_app_size: "0xB"
}
}
} |
I tried it today too, like @jrobeson said it does not parse the inputs from
This does not change anything in |
hitting the same issue working on mcuboot. |
I thought i'd post the actual error from mbed-tools now that i found it again:
|
Could you let us know which targets you're working with? I'd guess the parameters aren't defined in targets.json for the target(s) so the tool doesn't want to apply an override. mbed-cli used to rely on another JSON file from CMSIS pack manager to get this information, but we decided the best approach was to move everything to targets.json as the CMSIS pack manager index file wasn't maintained and in some cases conflicted with the definitions in targets.json. |
ah, i see the problem then. For me it's the nrf52832 and nrf52840 chips and various boards based on them with a custom bootloader. |
STM32F4 based custom targets and dev boards (e.g. NUCLEO_F429ZI). I just modified targets.json to define |
@rwalton-arm do you want to handle that PR by PR as they come or does it need to be 1 big PR to rule them all? |
@rwalton-arm STM32F769 custom target based on DISCO_F769. |
Your syntax above looked correct. I've just tried it myself and I can reproduce the issue. Looks like a bug in the memory region collection. |
PR by PR would be easier to review, but I guess one PR to rule them all would also work. |
We've just tried this, and it seems to be working in our case: {
"config": {
"mbed_app_start": {
"help": "Use a custom application start address",
"value": "0x08020000",
"macro_name": "MBED_APP_START"
}
},
"target_overrides": {
"*": {
"platform.stdio-baud-rate": 115200,
}
}
} |
@ladislas this generates the flags in mbed_config.cmake but does not seem to shift the image. A quick search for |
we are on 6.9 as well. have you made a deep clean before building? |
Deep clean did it, don't know why though. Not a good sign IMHO :/ Nice workaround, thanks! |
Great! My team mate @YannLocatelli is the real hero here 🙏 |
Hi! The workaround mentioned by @ladislas woks but I am also currently interested in switching to CLI2 from Mbed Studio and this is also blocking progress on a commercial project. Any ETA on a pull request to master to fix this? |
@kalle16lab If it's a commercial project, then seems like you should be to able assist right? |
@kalle16lab we are not using mbed studio but mbed cli2 |
I hit this today as well and had to use @ladislas workaround. Are there plans to get these features pulled into mbed-tools? |
1. Support MCUboot - Relevant file list at bootloader/MCUboot - Prebuilt bootloader binary "mbed-mcuboot-bootloader_xxx" - Compatible private key "signing-keys.pem" for signing built application binary - Public key "signing_keys.c" for mcuboot compile - Work around MCUBOOT_HAVE_LOGGING missing in mbed port's mcuboot_config.h - Change log level to 'INFO' - Secondary slot at internal flash (FLASHIAP) - Update mbed-client-for-aws.lib to enable AWS OTA PAL for MCUboot NOTE: mbed-mcuboot-demo build target NUMAKER_IOT_M467_FLASHIAP NOTE: MCUboot configuration must be consistent with mbed-mcuboot-demo. NOTE: Mbed CLI 2 doesn't support locating application to another address. Use Mbed CLI 1 instead. See: ARMmbed/mbed-tools#156 2. Support WiFi as default network type 3. Update readme 4. Direct mbed-os.lib to m467 branch temporarily. Use of target name 'NUMAKER_IOT_M467' will cause build failure because it hasn't yet added into mainline.
1. Support MCUboot - Relevant file list at bootloader/MCUboot - Prebuilt bootloader binary "mbed-mcuboot-bootloader_xxx" - Compatible private key "signing-keys.pem" for signing built application binary - Public key "signing_keys.c" for mcuboot compile - Work around MCUBOOT_HAVE_LOGGING missing in mbed port's mcuboot_config.h - Change log level to 'INFO' - Secondary slot at internal flash (FLASHIAP) - Update mbed-client-for-aws.lib to enable AWS OTA PAL for MCUboot NOTE: mbed-mcuboot-demo build target NUMAKER_IOT_M467_FLASHIAP NOTE: MCUboot configuration must be consistent with mbed-mcuboot-demo. NOTE: Mbed CLI 2 doesn't support locating application to another address. Use Mbed CLI 1 instead. See: ARMmbed/mbed-tools#156 2. Support WiFi as default network type 3. Update readme 4. Direct mbed-os.lib to m467 branch temporarily. Use of target name 'NUMAKER_IOT_M467' will cause build failure because it hasn't yet added into mainline.
1. Support MCUboot - Relevant file list at bootloader/MCUboot - Prebuilt bootloader binary "mbed-mcuboot-bootloader_xxx" - Compatible private key "signing-keys.pem" for signing built application binary - Public key "signing_keys.c" for mcuboot compile - Work around MCUBOOT_HAVE_LOGGING missing in mbed port's mcuboot_config.h - Change log level to 'INFO' - Secondary slot at internal flash (FLASHIAP) - Update mbed-client-for-aws.lib to enable AWS OTA PAL for MCUboot NOTE: mbed-mcuboot-demo build target NUMAKER_IOT_M467_FLASHIAP NOTE: MCUboot configuration must be consistent with mbed-mcuboot-demo. NOTE: Mbed CLI 2 doesn't support locating application to another address. Use Mbed CLI 1 instead. See: ARMmbed/mbed-tools#156 2. Support WiFi as default network type 3. Update readme 4. Direct mbed-os.lib to m467 branch temporarily. Use of target name 'NUMAKER_IOT_M467' will cause build failure because it hasn't yet added into mainline.
Just looking to put a boot loader on my Nucleo F411 which is now running mbed and hitting this issue. The work-around for an unmanaged boot loader posted above works for offsetting the app address. Is there a way to make use of the built-in header with this work-around or do we need to manually place the header also? |
Description
mbed_app_start and friends are not processed by the config tool.
Issue request type
The text was updated successfully, but these errors were encountered: