-
Notifications
You must be signed in to change notification settings - Fork 3k
Update linker files for NUCLEO_F207ZG and enable bootloader functionality #7871
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
Bootloader seems to be OK on all three compilers. |
@@ -404,33 +382,6 @@ HASH_RNG_IRQHandler | |||
ENDP | |||
|
|||
ALIGN | |||
|
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.
why are we removing these lines in this startup file?
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.
To save memory. It was my impression that they are leftovers from somewhere and actually serve no purpose other than eat up memory. They seem to be used by __user_initial_stackheap which is not used for anything as far as I know.
In case it would be actually needed for something we have those targets that do not have these kind of definitions. For example startup_stm32F411xe.S or startup_stm32l486xx.S which I know work with MCC. Those targets that do have these sections seem to be under TOOLCHAIN_ARM_MICRO. startup_stm32l031xx.S for example has the "Tailor this value ..." comment left but has other parts removed in similar fashion. In fact, I think this is the only STM target that has these definitions under TOOLCHAIN_ARM_STD.
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.
I may be wrong though and maybe they do have some purpose. I just don't know what it is.
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.
But if there is no reason I would gladly see them gone. It adds up to 1536 bytes of RAM.
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.
These lines are removed the same way in all other ST platforms. I don't know why this was not the case for this one...
@0xc0170 Can you trigger a build for this |
I am waiting for @ARMmbed/team-st-mcd review (the changes look good, just do not understand the removal for two regions memory/microlib there). |
@@ -404,33 +382,6 @@ HASH_RNG_IRQHandler | |||
ENDP | |||
|
|||
ALIGN | |||
|
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.
These lines are removed the same way in all other ST platforms. I don't know why this was not the case for this one...
/*Heap 1/4 of ram and stack 1/8*/ | ||
define symbol __size_cstack__ = 0x4000; | ||
define symbol __size_heap__ = 0x8000; | ||
/* Stack: 4kB - 408B for vector table */ |
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.
Stack is now 1KB. Maybe change this comment.
Review now done & changes made according to review. @0xc0170 Can you trigger a build for this |
/morph build |
Build : SUCCESSBuild number : 2948 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2564 |
Test : SUCCESSBuild number : 2695 |
@0xc0170 Can you merge this? Everything is ok with this. |
Exporter Build : FAILUREBuild number : 2576 |
@studavekar @OPpuolitaival These phantom builds - is there anything we can do about? (latest exporter failure after it was integrated) |
Description
Updated linker and startup files for target
Bootloader support
Tested with MCC internal version on all three compilers, with and without MBED_APP_START. Bootloader not tested.
Pull request type