-
Notifications
You must be signed in to change notification settings - Fork 3k
Maxim: Add bare metal support to targets #14465
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
@harmut01, thank you for your changes. |
targets/TARGET_Maxim/TARGET_MAX32620C/device/TOOLCHAIN_ARM_STD/MAX32620.sct
Outdated
Show resolved
Hide resolved
targets/TARGET_Maxim/TARGET_MAX32625/device/TOOLCHAIN_ARM_STD/TARGET_MAX32625_BOOT/MAX32625.sct
Outdated
Show resolved
Hide resolved
*.o (RESET, +First) | ||
*(InRoot$$Sections) | ||
.ANY (+RO) | ||
} | ||
|
||
; [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) | ||
RW_IRAM1 (0x20000000+0x110) (0x28000-0x110-Stack_Size) { ; RW data | ||
RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-VECTOR_SIZE-Stack_Size) { ; RW data |
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.
RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-VECTOR_SIZE-Stack_Size) { ; RW data | |
RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-MBED_RAM_FIXED_SIZE) { ; RW data |
targets/TARGET_Maxim/TARGET_MAX32630/device/TOOLCHAIN_ARM_STD/MAX3263x.sct
Outdated
Show resolved
Hide resolved
@ahmetalincak the main change in the scatter files is the addition of heap load regions, this is intended to enable the ARM compiler to build with the small c library. The remaining are largely to make the scatter files consistent with those in other targets (see this for example). |
I've update the title to more accurately reflect the changes. |
|
3c749a3
to
1902cf9
Compare
This PR adds bare-metal support for both ARM and GCC_ARM unlike what the title says. |
ARM_LIB_STACK (0x20000000+0x80000) EMPTY -Stack_Size { ; stack | ||
ARM_LIB_HEAP AlignExpr(+0, +16) EMPTY (MBED_RAM_SIZE - RAM_FIXED_SIZE - (AlignExpr(ImageLimit(RW_IRAM1), 16) - MBED_RAM_START)){ ; heap growing up | ||
} | ||
ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -Stack_Size { ; stack |
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.
ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -Stack_Size { ; stack | |
ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -Stack_Size { ; stack growing down |
1902cf9
to
81dec68
Compare
Add heap load region to scatter file and update `targets.json` to provide baremetal support to the following targets: SDT32620B, SDT32625B, MAX32620FTHR, MAX32625MBED, MAX32625PICO, and MAX32630FTHR.
81dec68
to
3d1051d
Compare
@hugueskamba could you please re-review based on the updates. |
targets/TARGET_Maxim/TARGET_MAX32630/device/TOOLCHAIN_ARM_STD/MAX3263x.sct
Outdated
Show resolved
Hide resolved
targets/TARGET_Maxim/TARGET_MAX32630/device/TOOLCHAIN_ARM_STD/MAX3263x.sct
Outdated
Show resolved
Hide resolved
5ebdf6d
to
8a98c5e
Compare
8a98c5e
to
1c671c4
Compare
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.
LGTM (assuming you attempted to build one of the Mbed targets affected by the linker file changes).
@0xc0170 can we start CI on this? |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@0xc0170 it appears CI timed out on while running mbed-os-example-crash-reporting for an unrelated target. |
CI restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
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 re-review this commit to fix MBED MAXIM parts for ARMC6 compiler.
Summary of changes
Fixes #13139
Add heap load region to scatter file and update
targets.json
toprovide baremetal support to the following targets: SDT32620B,
SDT32625B, MAX32620FTHR, MAX32625MBED, MAX32625PICO,
and MAX32630FTHR.
Impact of changes
Maxim targets
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers