-
Notifications
You must be signed in to change notification settings - Fork 8.2k
soc: arm: stm32: Updated SRAM Region Definitions #14600
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
|
All checks are passing now. Review history of this comment for details about previous failed status. |
Codecov Report
@@ Coverage Diff @@
## master #14600 +/- ##
==========================================
- Coverage 52.93% 51.96% -0.97%
==========================================
Files 309 309
Lines 45251 45576 +325
Branches 10447 10554 +107
==========================================
- Hits 23953 23683 -270
- Misses 16533 17083 +550
- Partials 4765 4810 +45
Continue to review full report at Codecov.
|
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.
Commit title prefix should, probably be: "soc: arm: stm32:"
It's not really an ARM architecture patch
|
adding this to 1.15, unless it is a bug affecting current boards/SOCs. If so, please indicate and re-scope. |
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.
So, the patch is now OK to me, however, the commit history looks confusing.
Could you please clean this up? I.e. commit this diff in a single commit, and force-push to this pull-request, so the PR is a single commit. Refer to the Zephyr contribution guidelines if needed :)
Then we can approve the PR and add it to the queue for merging to master.
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.
As requested by @ioannisg, please restructure your change into a single commit and fix commit message issues reported by @zephyrbot
|
Fixed per request |
|
@erwango might know better than me, but shouldn't you split this up into two REGION_256K's? For example, even the 128k support uses two REGION_64K's to split the RAM up instead of a single REGION_128K. |
Yes, it looks like this file needs rework. |
@ioannisg please review the latest push. please let me know if there are any further changes required. |
|
@Hobbs1210, you'll need to also fix soc/arm/st_stm32/common/arm_mpu_regions.c which was implemented on the assumption there would always be 2 RAM zones. Btw, this was implemented this way to have same number of available zones, whether RAM size is a power of 2 or not. This indeed can be optimized and save one MPU region when size is directly a power of 2. Which leaves one region free in this case. |
@erwango please review my latest push. |
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.
Please add a one liner comment in commit message to get git check happy
Yes, we can use it for application memory partitions. The more we have the better. |
What bothers me is you'll have one extra partition depending on the memory size, so a 256K config will enjoy one more partition than a 384K.. |
This updates the SRAM region definition for stm32 Signed-off-by: Habib Zaid <[email protected]>
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.
thanks
Support for STM32F7XX MCU's that have 512k of SRAM.