Firmware and bootloader binary file issues

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Firmware and bootloader binary file issues

跳至解决方案
2,920 次查看
pyi285
Contributor II

If you do firmware and check the internal flash, the picture below appears. However, if you build it as a binary file, you get the same result as the picture on the right.
Is there a reason for this or is there any way I can fix it?
pyi285_1-1687510399549.png

pyi285_2-1687510427258.png

1. The difference between the two pictures is that the FF part is displayed as 00. Please explain the reason.
2. Please explain if there is any other way to solve the binary file problem.
3. Finally, looking at the address 00000, what exactly does the first line of the 015A000 part do?
#mpc5674f #bootloader # Binary

 

0 项奖励
回复
1 解答
2,832 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Are you using .elf/.srec file what usual practice, then only used address ranges are included in the file. Check whether mentioned area is defined in the linker command file.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,838 次查看
pyi285
Contributor II

In the first question, do you know why the values stored in the board's flex memory and changed to binary files are different when building as a binary file in CodeWarrior?
ex)
Flex status saved on board after firmware
015A0000 00010110 FFFFFFFF FFFFFFFF
When you open a binary file after building it as a binary file
015A0000 00010110 00000000 00000000
Is there any way to solve the result where FFFFFFFF FFFFFFFF should come out as 00000000 00000000?

0 项奖励
回复
2,833 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Are you using .elf/.srec file what usual practice, then only used address ranges are included in the file. Check whether mentioned area is defined in the linker command file.

0 项奖励
回复
2,824 次查看
pyi285
Contributor II
If so, is there any way to float it with an F other than 0?
0 项奖励
回复
2,798 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 项奖励
回复
2,790 次查看
pyi285
Contributor II
#pragma fill_alignment_data_with_FF on

Can you tell me where to put this?
I would be very grateful if you could attach a picture
0 项奖励
回复
2,879 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport


I am not sure what you are trying to compare as you are loking for different addresses 0x0001_0000 vs 0x0000_0000.

Anyway these are two booting address options from following sets:
0x0000_0000
0x0000_4000
0x0001_0000
0x0001_C000
0x0002_0000
0x0003_0000

and pattern on that address in Reset Configuration Half Word

davidtosenovjan_0-1687941714201.png

 

0 项奖励
回复