-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support of export function to the IAR. #1545
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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 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 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 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
62 changes: 62 additions & 0 deletions
62
libraries/mbed/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf
This file contains 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/*###ICF### Section handled by ICF editor, don't touch! ****/ | ||
/*-Editor annotation file-*/ | ||
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */ | ||
/*-Specials-*/ | ||
define symbol __ICFEDIT_intvec_start__ = 0x18004000; | ||
/*-Memory Regions-*/ | ||
define symbol __ICFEDIT_region_ROM_start__ = 0x18000000; | ||
define symbol __ICFEDIT_region_ROM_end__ = 0x187FFFFF; | ||
define symbol __ICFEDIT_region_TTB_start__ = 0x20000000; | ||
define symbol __ICFEDIT_region_TTB_end__ = 0x2001FFFF; | ||
define symbol __ICFEDIT_region_RAM_start__ = 0x20020000; | ||
define symbol __ICFEDIT_region_RAM_end__ = 0x209FFFFF; | ||
|
||
/*-Sizes-*/ | ||
define symbol __ICFEDIT_size_cstack__ = 0x00004000; | ||
define symbol __ICFEDIT_size_svcstack__ = 0x00008000; | ||
define symbol __ICFEDIT_size_irqstack__ = 0x00008000; | ||
define symbol __ICFEDIT_size_fiqstack__ = 0x00000100; | ||
define symbol __ICFEDIT_size_undstack__ = 0x00000100; | ||
define symbol __ICFEDIT_size_abtstack__ = 0x00000100; | ||
define symbol __ICFEDIT_size_heap__ = 0x00080000; | ||
/**** End of ICF editor section. ###ICF###*/ | ||
|
||
define symbol __ICFEDIT_region_RetRAM_start__ = 0x20000000; | ||
define symbol __ICFEDIT_region_RetRAM_end__ = 0x2001FFFF; | ||
|
||
define symbol __ICFEDIT_region_MirrorRAM_start__ = 0x60900000; | ||
define symbol __ICFEDIT_region_MirrorRAM_end__ = 0x609FFFFF; | ||
|
||
define symbol __ICFEDIT_region_MirrorRetRAM_start__ = 0x60000000; | ||
define symbol __ICFEDIT_region_MirrorRetRAM_end__ = 0x6001FFFF; | ||
|
||
define memory mem with size = 4G; | ||
|
||
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; | ||
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; | ||
define region RetRAM_region = mem:[from __ICFEDIT_region_RetRAM_start__ to __ICFEDIT_region_RetRAM_end__]; | ||
define region MirrorRAM_region = mem:[from __ICFEDIT_region_MirrorRAM_start__ to __ICFEDIT_region_MirrorRAM_end__]; | ||
define region MirrorRetRAM_region = mem:[from __ICFEDIT_region_MirrorRetRAM_start__ to __ICFEDIT_region_MirrorRetRAM_end__]; | ||
|
||
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; | ||
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { }; | ||
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { }; | ||
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { }; | ||
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { }; | ||
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { }; | ||
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; | ||
|
||
initialize by copy { readwrite }; | ||
do not initialize { section .noinit }; | ||
do not initialize { section MMU_TT }; | ||
|
||
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; | ||
|
||
place in ROM_region { readonly }; | ||
place in RAM_region { readwrite, | ||
block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK, | ||
block UND_STACK, block ABT_STACK, block HEAP }; | ||
|
||
place in RetRAM_region { section .retram }; | ||
place in MirrorRAM_region { section .mirrorram }; | ||
place in MirrorRetRAM_region { section .mirrorretram }; |
Oops, something went wrong.
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.
What are these changes in this file and in others. I assume they are related to IAR (warnings fixes), but all in one commit , without any description.
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.
Thank you your comments.
IAR compiler was an error of the following for the following line.
libraries\USBHost\USBHost\USBHostTypes.h (146)
[Error][Pe256]: invalid redeclaration of type name "HCTD" (declared at line 139)
} PACKED HCTD;
^
we have changed to not use the same symbol.
Then, IAR compiler was an error of the following for the following line.
libraries\USBHost\USBHost\USBEndpoint.cpp (143)
libraries\USBHost\USBHost\USBEndpoint.cpp (161)
libraries\USBHost\USBHost\USBHost.cpp (307)
[Error][Pe513]: a value of type "hcTd volatile __packed *" cannot be assigned to an entity of type "hcTd volatile *"
td_current->nextTD = td_next;
^
Therefore, we have changed the code against these errors.
We did a pull request these contents.
In addition, It is a confirmed operation even ARMCC and GCC ARM.
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.
I understand, it's just that this could be a separate commit.