Skip to content

Commit

Permalink
Merge pull request wolfSSL#491 from bigbrett/aurix-tc3xx-bmhd-removal
Browse files Browse the repository at this point in the history
tc3xx: remove bmhd input sections from linker script
  • Loading branch information
dgarske authored Aug 21, 2024
2 parents 48c7c35 + 79cd6e7 commit 49ec647
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
26 changes: 14 additions & 12 deletions IDE/AURIX/test-app/Lcf_Gnuc_Tricore_Tc.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -1017,22 +1017,24 @@ REGION_ALIAS( default_rom , pfls1)
.inttab_tc2_0FE (__INTTAB_CPU2 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_254)); }
.inttab_tc2_0FF (__INTTAB_CPU2 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_255)); }
}
/*Fixed memory Allocations for BMHD*/

/* Explicitly reject all BMHD entries from iLLD SDK - these should be set out-of-band by user */
CORE_ID = GLOBAL;
SECTIONS
{
.bmhd_0_org (0xaf400000) : FLAGS(arl) { KEEP (*(.bmhd_0_orig)); } > ucb
.bmhd_1_org (0xaf400200) : FLAGS(arl) { KEEP (*(.bmhd_1_orig)); } > ucb
.bmhd_2_org (0xaf400400) : FLAGS(arl) { KEEP (*(.bmhd_2_orig)); } > ucb
.bmhd_3_org (0xaf400600) : FLAGS(arl) { KEEP (*(.bmhd_3_orig)); } > ucb
.ucb_reserved (0xaf400800) : FLAGS(arl) { } > ucb
.bmhd_0_copy (0xaf401000) : FLAGS(arl) { KEEP (*(.bmhd_0_copy)); } > ucb
.bmhd_1_copy (0xaf401200) : FLAGS(arl) { KEEP (*(.bmhd_1_copy)); } > ucb
.bmhd_2_copy (0xaf401400) : FLAGS(arl) { KEEP (*(.bmhd_2_copy)); } > ucb
.bmhd_3_copy (0xaf401600) : FLAGS(arl) { KEEP (*(.bmhd_3_copy)); } > ucb
/DISCARD/ :
{
*(.bmhd_0_orig)
*(.bmhd_1_orig)
*(.bmhd_2_orig)
*(.bmhd_3_orig)
*(.bmhd_0_copy)
*(.bmhd_1_copy)
*(.bmhd_2_copy)
*(.bmhd_3_copy)
}
}

/*Near Abbsolute Addressable Data Sections*/
/*Near Absolute Data, selectable with patterns and user defined sections*/
CORE_ID = CPU2;
Expand Down
22 changes: 12 additions & 10 deletions IDE/AURIX/wolfBoot-tc3xx/Lcf_Gnuc_Tricore_Tc.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -1027,19 +1027,21 @@ REGION_ALIAS( default_ram , dsram2)
.inttab_tc2_0FF (__INTTAB_CPU2 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_255)); }
}

/*Fixed memory Allocations for BMHD*/
/* Explicitly reject all BMHD entries from iLLD SDK - these should be set out-of-band by user */
CORE_ID = GLOBAL;
SECTIONS
{
.bmhd_0_org (0xaf400000) : FLAGS(arl) { KEEP (*(.bmhd_0_orig)); } > ucb
.bmhd_1_org (0xaf400200) : FLAGS(arl) { KEEP (*(.bmhd_1_orig)); } > ucb
.bmhd_2_org (0xaf400400) : FLAGS(arl) { KEEP (*(.bmhd_2_orig)); } > ucb
.bmhd_3_org (0xaf400600) : FLAGS(arl) { KEEP (*(.bmhd_3_orig)); } > ucb
.ucb_reserved (0xaf400800) : FLAGS(arl) { } > ucb
.bmhd_0_copy (0xaf401000) : FLAGS(arl) { KEEP (*(.bmhd_0_copy)); } > ucb
.bmhd_1_copy (0xaf401200) : FLAGS(arl) { KEEP (*(.bmhd_1_copy)); } > ucb
.bmhd_2_copy (0xaf401400) : FLAGS(arl) { KEEP (*(.bmhd_2_copy)); } > ucb
.bmhd_3_copy (0xaf401600) : FLAGS(arl) { KEEP (*(.bmhd_3_copy)); } > ucb
/DISCARD/ :
{
*(.bmhd_0_orig)
*(.bmhd_1_orig)
*(.bmhd_2_orig)
*(.bmhd_3_orig)
*(.bmhd_0_copy)
*(.bmhd_1_copy)
*(.bmhd_2_copy)
*(.bmhd_3_copy)
}
}

/*Near Abbsolute Addressable Data Sections*/
Expand Down

0 comments on commit 49ec647

Please sign in to comment.