a problem when using bootloader

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

a problem when using bootloader

803 Views
287385104
Contributor II

Download the bootloader project and the APP project to 274and debug the APP through the attach function.
The content of the test is , pause the two cores, and then view the data in the same SRAM region in the two cores. The results are as follows.

1、when the radar detected object

1)、view in Z4 core

pastedImage_1.png

2)、view in Z7_0 core

pastedImage_3.png

the data in the pictures above are the same.

2、when the radar detected no object

1)、view in Z4 core

pastedImage_4.png

2)、view in Z7 core

pastedImage_5.png

the data in the same address are different.

Conclusion:

from the point of view of the phenomenon, when there are bootloader project and APP project in the 274chip, when the radar does not detect the target, the data are different in the same SRAM region. In fact, it is only when the same SRAM region data is different between the two cores that the radar cannot detect the target (the Z7 core has target data after processing, but there is no such data in the Z4 core.Therefore, there is no target report after Z4 core processing).
Question: Why is it that viewing the same memory area in both cores results in different data? What caused it?

If anyone knows the reason, please tell me,thanks

Tags (1)
0 Kudos
2 Replies

639 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

what about cache memory? Have you tried to disable cache memory or set the area as cache inhibited? SMPU can be used to set area as cache inhibited. You can reuse some code from:

Example MPC5748G SMPU initialization GHS614 

or

Example MPC5748G SMPU initialization + Process ID test GHS614 

pastedImage_3.png

Regards,

Lukas

0 Kudos

639 Views
287385104
Contributor II

Hi,

    Thanks for your suggestion and the answers before, i'll reserch the problem with your advice these days.

    thanks again!

    Regards,

    Xufei 

0 Kudos