Hi,
my projets with MPC5604, compiling, debug and running flash ok.
how to BAM projects with S32DS ?
questions:
1. how to set addr start programa 0x4000.0000 or 0x4000.0100, and how to set in S32DS ?
config to code for RAM.
2. when, loader code in ram, jump app automatic ?
thanks,
Carlos.
Hi,
I described the procedure in this post:
https://community.nxp.com/thread/320166#comment-384300
Yes, when the image is loaded by BAM to RAM, the image is automatically executed.
Regards,
Lukas
Hi Lukas,
thanks your help,
I. tested with CW 5.9.
flash dbug and running ok,
based: https://community.nxp.com/thread/320166#comment-384300
edit lcf RAM to
MEMORY
{
init: org = 0x40000000, len = 0x00001000
pseudo_rom: org = 0x40001000, len = 0x00011000
exception_handlers: org = 0x40012000, len = 0x00001000
internal_ram: org = 0x40013000, len = 0x0000A000
heap: org = 0x4001D000, len = 0x00001000 // Heap starts
stack : org = 0x4001E000, len = 0x00001000 // Start location for Stack
}
SECTIONS
{
GROUP : {
.init_vle (VLECODE) : {
*(.init)
*(.init_vle)
}
.init : {}
} > init ok
add file __start.c in folder ok
compilinng ok
run debug = not runing !
qustions
run with debug ?
or runing with BAM ?
see code
thanks,
Carlos
Hi,
there's 32KB or 48KB of RAM depending on your derivative:
And I can see that you have updated the linker file in this way:
This will not work of course, this is out of physical RAM. You can't update the linker file in this way.
Regards,
Lukas
Hi Lukas,
I tested with CW, debug in RAM ok,
MEMORY
{
pseudo_rom: org = 0x40000000, len = 0x00003000
init: org = 0x40004000, len = 0x00001000
exception_handlers: org = 0x40005000, len = 0x00001000
internal_ram: org = 0x40006000, len = 0x00001800
heap : org = 0x40007800, len = 0x00000400 /* Heap start */
stack : org = 0x40007C00, len = 0x00000400 /* Stack Start */
}
s19:
S0030000FC
S319400000007C6000A664637C600124000470BF7FF146350653E5
S3194000001404347C00286C00017C002FAC18A5900818849CF86D
S31940000028E0F7000100040000023602470258780000A779FF30
S3194000003CFFC7182106F84800D0012C00D101780000AD706859
S31940000050E0001C6311E00093000570C8E0001CC610000096CE
S31940000064036303740385000570C8E0001CC611F20096000540
S31940000078182106E00080D901D7F1D6E1D5D1013E014D015FA3
S3194000008C2A0FE60C0DDEE60A01E301D401F5780000B901E350
S319400000A001F479FFFF6BC7F1C6E1C5D1C901009021F10004CA
S319400000B4182106D00080DD01DBF1D431014F2A0FE606C4314A
S319400000C8480401F578000137CBF1CD0100901C210030000461
S319400000DC7028E0021C21F0007048E0021C42B00C71A8E00274
S319400000F01DADB0000004182106E00080D901D7F1D6E17108C7
S31940000104E0001FE8022CC00F2A00E207C10F2A00E204C20FF9
S319400001182A00E607C13FC04FC25FE9AB20BFE8F27108E000A0
S3194000012C1FC802BCC00E2A00E204C10E2A00E606C03EC14E04
S31940000140E9BA207EE8F6C7F1C6E1C901009021F100040D3436
S31940000154E40D24041CC3FFFF2005E8058104910620042006E3
S319400001682605E2FBE80E04547CC32A142005E8073104FFFF23
S3194000017C3506FFFF240424062605E2F9000423F57480063F43
S319400001902403E4317C6418F81884C803E6060645910326048D
S319400001A42003E2FD2A00E60B7407402F7406C00F7404801F9A
S319400001B844077CC02378447074A4D97F2A042423E60CD1036C
S319400001CC2604D203D303D403D503D603D703D80321F3E2F6DB
S319400001E074A4F77F2A04E605D10326042033E2FD20232E3548
S319400001F42A05E605910326052003E2FD00040080D101182147
S3194000020806E0D7F1013FE9BE01F3C7F121F1C10100900004F3
S3154000021C70A8E0001CA51334D024D0530004000071
S3194000022C40000000400000000000022C4000022C4000022CEE
S31940000240000000A84001200040012000000001004001210097
S3194000025440012100000000A840001000400010000000029C08
S31940000268400012A0400012A00000000C400012AC400012AC50
S3194000027C00000008400012B4400012B400000008400012BCFE
S31940000290400012BC00000030400012EC400012EC00000088D2
S319400002A440013000400130000000000400000000000000001A
S319400002B8000000004001300800000004400130100000000CE2
S30D400002CC0000000000000000E4
S31940001000182106D00080DD01DBF1DAE1D9D14800D401480F84
S31940001014481E1FAD8008780000D9780001537800009FC4319F
S319400010281C030001D401C4017060E01F1C6384800C30E1192C
S3194000103C1BFFE00177E0063F7138E3F931090644740807FE39
S319400010503509064477E0063F7138E3F931090645740807FE97
S31940001064350906454800D401C03D1C030001D00D62C31C63EE
S31940001078A1200C30E1D51BDEE00177C0063F7138E3F9310956
S3194000108C0646740807FE3509064677C0063F7138E3F9310978
S319400010A00647740807FE350906474800D00DE8BCCBF1CAE16D
S319400010B4C9D1CD0100901C2100300004712002017118E3F980
S319400010C85D2800C8712002017118E3F95D2800CA71200201A5
S319400010DC7118E3F95D2800CC712002017118E3F95D2800CEB8
S319400010F0000449D07118E3FE5408C0087120E2401D29010001
S319400011047118E3FE552800A07120E01F1D2900747118E3FE56
S319400011185528C03049007118E3FE5408C08448107118E3FEFB
S3194000112C3408C1047128E0001D295AF07118E3FE5528C004B4
S319400011407128E0011D29A50F7118E3FE5528C0047118E3FECC
S319400011545108C00075002FFF2A00E2F97118E3FE5008C000FE
S3194000116869C02230E2FA00047120E0011D29C520711FE7F4CA
S3194000117C552880107120E0011D29D928711FE7F455288010DB
S319400011907130E0001D29010A711FE7F455288000000418218E
S319400011A406E00080D9017108E0001C6812A0C043C103D44146
S319400011B8D501C203D6017062E0861C6380ED7098E3F91C84C3
S319400011CC801C1D8100107D8903A60007C901009021F1000459
S319400011E0182106F00080D501E9DDC501009020F100041821C6
S319400011F406F00080D5017800000DC501009020F10004000065
S3194000120870A8E0011CA53010C2052A00E207D0354810D14545
S3194000121C4803D205E8022C0300042A03E20C1803A00C70687F
S31940001230E0011C63301004034800D003D103D2030004C01124
S31940001244C101009000040080D101182106E0510D800073E850
S319400012589FFEE20D1C6100101C81001479FFEFB9C431C54157
S3194000126C79FFFF9D546D800079FFFFCE0080D101182106F00D
S31940001280506D800073E39FFEE60779FFFF9D711F7FFE550D74
S30D40001294800079FFFFAC000069
S311400012A0D03444007C0006AC440000043E
S30D400012AC4000124A0000000058
S30D400012B4400012780000000022
S319400012BC1808000000000000000800000000000008080000A0
S319400012D0000000001808000000000000080800000000000094
S30D400012E41008000000000000A4
S319400012EC40001000000000C0400012BC400121000000000226
S31940001300400012C44001211000000096400012CC400000789F
S319400013140000003C400012D4400000B400000028400012DCD3
S31940001328400000F60000005C400012E4400012EC400012F81B
S3194000133C40001000000000C0400012F8400013104001210038
S31940001350000000A6400013104000133440000078000000DA21
S315400013640000000000000000000000000000000033
delet it parte ok ?
S31940012000E8004400440044004400440044004400E800440095
S31940012014440044004400440044004400E80044004400440025
S319400120284400440044004400E8004400440044004400440011
S3194001203C44004400780000D0440044004400440044004400E1
S31940012050E8004400440044004400440044004400E800440045
S31940012064440044004400440044004400E800440044004400D5
S319400120784400440044004400E80044004400440044004400C1
S3194001208C44004400E8004400440044004400440044004400AD
S319400120A0E8004400440044004400440044004400E8004400F5
S319400120B4440044004400440044004400E80044004400440085
S319400120C84400440044004400E8004400440044004400440071
S319400120DC44004400E80044004400440044004400440044005D
S315400120F0E8001800D0001800D0001800D0000000F9
S3194001210000080000000000000000000000000000182106A09D
S31940012114D80100A0D4017C0102A6D5017C000026D60100802E
S31940012128D701D931DA41DB51DC61DD71550100385521003C68
S3194001213C55410040556100445581004857E1005C711FE7F55A
S3194001215053E88010519F00007D8903A600074800711FE7F50F
S319400121645408801853E1005CC931CA41CB51CC61CD715101BE
S3194001217800385121003C514100405161004451810048C4017F
S3194001218C00B0C5017C0103A6C6017C0FF120C7010090C801D8
S30D400121A01C210060000800004B
S30940013000FFFFFFFE8A
S705400000308A
and convert S19 to bin ok, pleace code
now preparing send file BAM CAN mode ( DLC = 8 ever).
thanks,
Carlos