-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix heap and stack size for NUCLEO_F746ZG #3902
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
Thanks for the fix. cc @bcostm @adustm @LMESTM @jeromecoutant please review |
/morph test |
LGTM. Thanks. |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@mazimkhan How did you test this change? |
Reproduced this ARMmbed/mbed-os-example-tls#54 and tested the changes with the same. |
@sg- , following on from our discussion earlier, do we want to allow this PR to go through? Especially if we believe we shouldn't have to be updating individual heap and stack sizes for specific targets for IAR? |
@@ -20,8 +20,8 @@ define region ITCMRAM_region = mem:[from __region_ITCMRAM_start__ to __region_IT | |||
|
|||
/* Stack and Heap */ | |||
/*Heap 1/4 of ram and stack 1/8*/ | |||
define symbol __size_cstack__ = 0x4000; | |||
define symbol __size_heap__ = 0x8000; | |||
define symbol __size_cstack__ = 0x9000; |
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.
can you revert the stack size (this will be fixed later for all targets).
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Ports for Upcoming Targets Fixes and Changes 3716: fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files ARMmbed/mbed-os#3716 3741: STM32 remove warning in hal_tick_32b.c file ARMmbed/mbed-os#3741 3780: STM32L4 : Fix GPIO G port compatibility ARMmbed/mbed-os#3780 3831: NCS36510: SPISLAVE enabled (Conflict resolved) ARMmbed/mbed-os#3831 3836: Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os ARMmbed/mbed-os#3836 3840: STM32: gpio SPEED - always set High Speed by default ARMmbed/mbed-os#3840 3844: STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR) ARMmbed/mbed-os#3844 3850: STM32: change spi error to debug warning ARMmbed/mbed-os#3850 3860: Define GPIO_IP_WITHOUT_BRR for xDot platform ARMmbed/mbed-os#3860 3880: DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated ARMmbed/mbed-os#3880 3795: Fix pwm period calc ARMmbed/mbed-os#3795 3828: STM32 CAN API: correct format and type ARMmbed/mbed-os#3828 3842: TARGET_NRF: corrected spi_init() to properly handle re-initialization ARMmbed/mbed-os#3842 3843: STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz) ARMmbed/mbed-os#3843 3879: NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10. ARMmbed/mbed-os#3879 3902: Fix heap and stack size for NUCLEO_F746ZG ARMmbed/mbed-os#3902 3829: can_write(): return error code when no tx mailboxes are available ARMmbed/mbed-os#3829
Description
NUCLEO_F746ZG has 319K RAM. But heap size is set to 32K. It is less than 64K minimum required for mbed-tls tls-client example. Moreover, the comment in the linker script says heap is 1/4 and stack is 1/8 of RAM. This is not true. 1/4 of RAM is 79K and 1/8 is 39K. Hence updating heap and stack sizes to correct 1/4 and 1/8 respectively.
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO
Related PRs
List related PRs against other branches:
Steps to test or reproduce
Use steps from issue
ARMmbed/mbed-os-example-tls#54 and
ARMmbed/mbed-os-example-tls#52 @