-
Notifications
You must be signed in to change notification settings - Fork 3k
LPC1114: baremetal profile support #12623
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d6779bb
Support bare-metal build for NXP LPC1114
toyowata ab791ae
LPC1114 - linker script & startup code improvement
toyowata 41435a0
LPC1114 - Add supported_application_modes
toyowata 5a57670
[TESTS] Add memory check for RAM constraint device
toyowata 9cb0391
[LPC11XX] Disable interrupt in us_ticker_init
toyowata 58acc4e
LPC1114 - add supported_application_profiles
toyowata File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 34 additions & 9 deletions
43
targets/TARGET_NXP/TARGET_LPC11XX_11CXX/device/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,48 @@ | ||
#! armcc -E | ||
|
||
#if !defined(MBED_APP_START) | ||
#define MBED_APP_START 0x00000000 | ||
#endif | ||
|
||
; 32K flash | ||
#if !defined(MBED_APP_SIZE) | ||
#define MBED_APP_SIZE 0x8000 | ||
#endif | ||
|
||
; 4KB | ||
#if !defined(MBED_RAM_START) | ||
#define MBED_RAM_START 0x10000000 | ||
#endif | ||
|
||
#if !defined(MBED_RAM_SIZE) | ||
#define MBED_RAM_SIZE 0x00001000 | ||
#endif | ||
|
||
|
||
#if !defined(MBED_BOOT_STACK_SIZE) | ||
#define MBED_BOOT_STACK_SIZE 0x400 | ||
#define MBED_BOOT_STACK_SIZE 0x400 | ||
#endif | ||
|
||
#define Stack_Size MBED_BOOT_STACK_SIZE | ||
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0 | ||
#define VECTOR_SIZE 0xC0 | ||
|
||
#define RAM_FIXED_SIZE (MBED_BOOT_STACK_SIZE+VECTOR_SIZE) | ||
|
||
LR_IROM1 0x00000000 0x8000 { ; load region size_region (32k) | ||
ER_IROM1 0x00000000 0x8000 { ; load address = execution address | ||
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region | ||
|
||
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address | ||
*.o (RESET, +First) | ||
*(InRoot$$Sections) | ||
.ANY (+RO) | ||
} | ||
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0 | ||
; 8KB - 0xC0 = 0xF40 | ||
RW_IRAM1 0x100000C0 0xF40-Stack_Size { | ||
|
||
RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-VECTOR_SIZE) { ; RW data | ||
.ANY (+RW +ZI) | ||
} | ||
ARM_LIB_STACK (0x100000C0+0xF40) EMPTY -Stack_Size { ; stack | ||
|
||
ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE-RAM_FIXED_SIZE+MBED_RAM_START-AlignExpr(ImageLimit(RW_IRAM1), 16)) { | ||
} | ||
} | ||
|
||
ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -MBED_BOOT_STACK_SIZE { ; stack | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is this condition different than the other two files but the comment the same?
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.
Because the
heap_block_device
test case allocates memory using TEST_BLOCK_DEVICE_SIZE.mbed-os/features/storage/TESTS/blockdevice/heap_block_device/main.cpp
Line 45 in a707fd1
And other test cases use different symbols.
mbed-os/features/storage/TESTS/blockdevice/mbr_block_device/main.cpp
Line 35 in a707fd1