-
Notifications
You must be signed in to change notification settings - Fork 3k
rtl8195am: fix ARM section error #6226
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
rtl8195am: fix ARM section error #6226
Conversation
fix section error, ARM compiler uses IRAM1.bss to calculate the heap size fix conflict of _memset between Ameba's library and ARM compiler's library, use standard memset() instead of _memset() in case of ARM compiler
@@ -29,9 +29,6 @@ LR_IRAM 0x10007000 (0x70000 - 0x7000) { | |||
*libc.a (+RW) | |||
*(.sdram.data*) | |||
*lib_peripheral_mbed_arm.ar (+RW) | |||
} | |||
|
|||
RW_IRAM2 +0 UNINIT FIXED { |
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.
Is the main thing that this PR is doing is replacing RAM2 block usage with the RAM1 block?
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.
There is some part of the memory at the end of RAM2 which contains data that we donot want to touch throughout the lifecycle of the program. RAM2 block usage might create a scenario where the memory might reach the addresses that we donot wish to touch, hence we have replaced RAM2 block usage with RAM1.
@@ -17,6 +17,10 @@ | |||
#include "analogin_api.h" | |||
#include "analogin_ext.h" | |||
|
|||
#ifdef CONFIG_MBED_ENABLED |
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.
What are these new #ifdefs enabling that wasn't enabled before?
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.
Our platform has its own std libraries that are defined under platform_stdlib.h, some of these define are modified to support our specific realtek platform and are different from the original stdlib.h hence we have this define enabled here.
/morph build |
Build : SUCCESSBuild number : 1275 Triggering tests/morph test |
Test : SUCCESSBuild number : 1069 |
Exporter Build : FAILUREBuild number : 942 |
/morph export-build |
2 similar comments
/morph export-build |
/morph export-build |
/morph export-build |
@0xc0170 You might need to re-kick these builds. @studavekar Morph restart appears to not have work this time. |
/morph export-build |
2 similar comments
/morph export-build |
/morph export-build |
Exporter Build : SUCCESSBuild number : 1024 |
/morph mbed2-build |
/morph mbed2-build |
Description
fix section error, ARM compiler uses IRAM1.bss to calculate the heap size
fix conflict of _memset between Ameba's library and ARM compiler's library, use standard memset() instead of _memset() in case of ARM compiler
rebase update for #6061
Pull request type