MPC5748G S32DS for Power : bin file question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5748G S32DS for Power : bin file question

Jump to solution
819 Views
kmh48301
Contributor IV

Hello.

I have been working in hello_world_mpc5748g example project.

I found bin file is not the same as flash memory.

 

This : Part of bin file -> I guess this part is startup code.

7C000146700000007020000070400000
706000007080000070A0000070C00000
70E00000710000007120000071400000
716000007180000071A0000071C00000
71E00000720000007220000072400000
726000007280000072A0000072C00000
72E00000730000007320000073400000
736000007380000073A0000073C00000
73E000007C2103A67C2FF1207C2903A6
7C3043A67C3143A67C3243A67C3343A6
7C3A0BA67C3B0BA67C3A8BA67C3B8BA6
7C3D0BA67C3F0BA67C2043A67C3E0BA6
7FE803A6709FE4057080C00070A00003
7CA903A67078052054640010707B0128
54640010707FE7007060C10254640000
188481407A20FFE070A0E00470A0C000
7CA53C707CA903A670A8E00070A0C000
1805090018A580807A20FFF870600201
7C75FBA600017060E0027C70FBA60001
7CC000A670C2C0007CC001247028E000
7024C2E071A8E00071B2C2B87040E100
7052C760180106C07800119178001231
7C008146780015390000000000000000

 

But, Dump of real flash :

7C000146700000007020000070400000
706000007080000070A0000070C00000
70E00000710000007120000071400000
716000007180000071A0000071C00000
71E00000720000007220000072400000
726000007280000072A0000072C00000
72E00000730000007320000073400000
736000007380000073A0000073C00000
73E000007C2103A67C2FF1207C2903A6
7C3043A67C3143A67C3243A67C3343A6
7C3A0BA67C3B0BA67C3A8BA67C3B8BA6
7C3D0BA67C3F0BA67C2043A67C3E0BA6
7FE803A6709FE4057080C00070A00003
7CA903A67078052054640010707B0128
54640010707FE7007060C10254640000
188481407A20FFE070A0E00470A0C000
7CA53C707CA903A670A8E00070A0C000
1805090018A580807A20FFF870600201
7C75FBA600017060E0027C70FBA60001
7CC000A670C2C0007CC001247028E000
7024C2E071A8E00071B2C2B87040E100
7052C760180106C07800119178001231
7C00814678001539FFFFFFFFFFFFFFFF

 

You can copy them and compare using utility program.

All the contents are same but, last part is only different

0000000000000000 -> FFFFFFFFFFFFFFFF

 

I need to use this bin file in firmware update project.

I think something that makes bin file is wrong (has some bug).

 

I want to change the 000000 in bin file to fffffff.

 

Thanks

Best Regards

Phillip

 

 

0 Kudos
1 Solution
806 Views
stanish
NXP Employee
NXP Employee

Hi Phillip,

This is caused because  0x00 is the default gap fill pattern for objcopy utility.

You can easily change this to 0xff using switch "--gap-fill 255" (see screenshot below)

stanish_0-1611967607879.png

hope it helps.

Stan

View solution in original post

2 Replies
794 Views
kmh48301
Contributor IV

OMG... What a simple and perfect solution!! Thank you so much

0 Kudos
807 Views
stanish
NXP Employee
NXP Employee

Hi Phillip,

This is caused because  0x00 is the default gap fill pattern for objcopy utility.

You can easily change this to 0xff using switch "--gap-fill 255" (see screenshot below)

stanish_0-1611967607879.png

hope it helps.

Stan