a problem when using bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

a problem when using bootloader

839件の閲覧回数
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

タグ(1)
0 件の賞賛
2 返答(返信)

675件の閲覧回数
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 件の賞賛

675件の閲覧回数
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 件の賞賛