Skip to content

Commit 8c8c367

Browse files
committed
edited the linker cmd file to re locate ipc ram on GSRAM to comply with device support lnk cmd files
1 parent 6310b46 commit 8c8c367

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

cmd/2837xD_RAM_IPCLIB_lnk_cpu1.cmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ PAGE 1 : /* Data memory. This is a legacy description since the C28 has a unifie
3131
SECTIONS
3232
{
3333

34-
.cpul_cpur_data : > RAMGS3, PAGE = 1
34+
.cpul_cpur_data : > RAMGS4, PAGE = 1
3535

36-
GROUP : > RAMGS5, PAGE = 1
36+
GROUP : > RAMGS6, PAGE = 1
3737
{
38-
.base_cpul_cpur_addr /* allocate base_ramgs5 to RAMSG5_BASE specific address */
38+
.base_cpul_cpur_addr /* allocate base_ramgs6 to RAMSG6_BASE specific address */
3939
.cpul_cpur_addr
4040
}
41-
GROUP : > RAMGS6, PAGE = 1
41+
GROUP : > RAMGS7, PAGE = 1
4242
{
43-
.base_cpur_cpul_addr /* allocate base_ramgs6 to RAMSG6_BASE specific address */
43+
.base_cpur_cpul_addr /* allocate base_ramgs7 to RAMSG7_BASE specific address */
4444
.cpur_cpul_addr
4545
}
4646

cmd/2837xD_RAM_IPCLIB_lnk_cpu2.cmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ PAGE 1 : /* Data memory. This is a legacy description since the C28 has a unifie
3131
SECTIONS
3232
{
3333

34-
.cpul_cpur_data : > RAMGS1, PAGE = 1
34+
.cpul_cpur_data : > RAMGS2, PAGE = 1
3535

36-
GROUP : > RAMGS5, PAGE = 1
36+
GROUP : > RAMGS6, PAGE = 1
3737
{
38-
.base_cpur_cpul_addr /* allocate base_ramgs5 to RAMSG5_BASE specific address */
38+
.base_cpur_cpul_addr /* allocate base_ramgs6 to RAMSG6_BASE specific address */
3939
.cpur_cpul_addr
4040
}
41-
GROUP : > RAMGS6, PAGE = 1
41+
GROUP : > RAMGS7, PAGE = 1
4242
{
43-
.base_cpul_cpur_addr /* allocate base_ramgs6 to RAMSG6_BASE specific address */
43+
.base_cpul_cpur_addr /* allocate base_ramgs7 to RAMSG7_BASE specific address */
4444
.cpul_cpur_addr
4545
}
4646

include/ipc_defs.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@
2727
#endif
2828

2929
// gsxm blocks that master cpu1 reserverd for ipc driver app
30-
#define APIPC_CPU01_TO_CPU02_GSxRAM GS3_ACCESS|GS4_ACCESS|GS5_ACCESS
30+
#define APIPC_CPU01_TO_CPU02_GSxRAM GS4_ACCESS|GS5_ACCESS|GS6_ACCESS
3131
// gsxm blocks that master cpu2 reserverd for ipc driver app
32-
#define APIPC_CPU02_TO_CPU01_GSxRAM GS1_ACCESS|GS2_ACCESS|GS6_ACCESS
32+
#define APIPC_CPU02_TO_CPU01_GSxRAM GS2_ACCESS|GS3_ACCESS|GS7_ACCESS
3333

34-
//GS3SARAM Start Address
35-
#define CPU01_TO_CPU02_R_W_DATA_START (uint32_t)0x0000F000
34+
//GS4SARAM Start Address
35+
#define CPU01_TO_CPU02_R_W_DATA_START (uint32_t)0x00010000
3636

3737
// CPU01 to CPU02 Local Addresses MSG RAM off sets
38-
#define CPU01_TO_CPU02_R_W_ADDR (uint32_t)0x00011000 // for passing address
38+
#define CPU01_TO_CPU02_R_W_ADDR (uint32_t)0x00012000 // for passing address
3939

40-
#define CPU02_TO_CPU01_R_W_DATA_START (uint32_t)0x0000D000
40+
//GS2SARAM Start Address
41+
#define CPU02_TO_CPU01_R_W_DATA_START (uint32_t)0x0000E000
4142

4243
// CPU02 to CPU01 Local Addresses MSG RAM offsets
43-
#define CPU02_TO_CPU01_R_W_ADDR (uint32_t)0x00012000
44+
#define CPU02_TO_CPU01_R_W_ADDR (uint32_t)0x00013000
4445

4546
// Local R_W_DATA length space
4647
#define CL_R_W_DATA_LENGTH 4096

0 commit comments

Comments
 (0)