-
Notifications
You must be signed in to change notification settings - Fork 3k
Update linker scripts for bootloader target L496GZ #8508
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
Conversation
@micgur01 Would you mind mentioning in the PR description what was updated instead of just mentioning that they were updated |
@@ -1,7 +1,10 @@ | |||
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; } | |||
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x80000; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 0x100000 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the previous value, maybe it's a other issue - but not familiar enough with details
The change only not to be hardcoded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the previous value
No... it was 0x100000
define symbol region_ROM_end = 0x08000000 + 0x100000 - 1;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, checking
maybe i took it from other target ( 429)
@@ -4282,7 +4282,8 @@ | |||
"detect_code": ["0823"], | |||
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"], | |||
"release_versions": ["2", "5"], | |||
"device_name": "STM32L496ZG" | |||
"device_name": "STM32L496ZG", | |||
"bootloader_supported": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add bootloader_supported to DISCO_L496AG also ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems also that you need to add
#! armcc -E
in ARM sct files
Thx
Hi #! armcc -E |
I don't know... |
Hi |
To run preprocessor on the linker scripts. In this case, because we got some config we want to pass to the linker script, we need this step. |
@micgur01 How was this tested (as ARMCC failure was not found earlier)? |
It's my fault , first time delivering to mbed-os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ST CI quick test OK :
target | platform_name | test suite | result | elapsed_time (sec) | copy_method |
---|---|---|---|---|---|
DISCO_L496AG-ARM | DISCO_L496AG | tests-mbed_drivers-echo | OK | 18.11 | default |
DISCO_L496AG-GCC_ARM | DISCO_L496AG | tests-mbed_drivers-echo | OK | 19.08 | default |
DISCO_L496AG-IAR | DISCO_L496AG | tests-mbed_drivers-echo | OK | 19.05 | default |
NUCLEO_L496ZG-ARM | NUCLEO_L496ZG | tests-mbed_drivers-echo | OK | 18.75 | default |
NUCLEO_L496ZG-GCC_ARM | NUCLEO_L496ZG | tests-mbed_drivers-echo | OK | 19.31 | default |
NUCLEO_L496ZG-IAR | NUCLEO_L496ZG | tests-mbed_drivers-echo | OK | 18.58 | default |
@jeromecoutant Thanks for the test results 👍 /morph build |
Build : SUCCESSBuild number : 3451 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3073 |
Test : SUCCESSBuild number : 3243 |
Mmm something funny in this PR: I'll try hand patching it at the end |
For future reference, figured out the patching issue. We need to be passing the |
Description
Add MBED_APP_START and MBED_APP_SIZE to linker script so the start and size of an image can be specified. This allows the ROM to be split into a bootloader region and an application region.
Tested on NUCLEO_L496ZG, had to build bootloader as well with this fix.
Pull request type