Program ADKP service error

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

Program ADKP service error

1,860 次查看
David2024
Contributor II

Hi:

    There is a HardFault error when I call interface HSE_ProgramAdkp() to set ADKP password, but there is no response, when stop, there is an HardFault error, the pHseSrvDesc and pAttr(debug key password) are all in on-cache, shows below:

David2024_0-1724832445354.png

from CFSR, it seems that there is a BussFault error in call  (*(Gpt_pConfig[coreID]->Gpt_pChannelConfig))[ChannelIndex].Gpt_pfNotification();

but I think the address is correct, so why does this happend?

Because program ADKP is irreversible, that means I can only do this once in one board?

David2024_1-1724832493973.png

David2024_3-1724832553575.png

David2024_4-1724832653112.pngDavid2024_5-1724832720349.png

David2024_6-1724832744407.png

 

 

 

0 项奖励
回复
5 回复数

1,821 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @David2024 

it sound like read-while-write issue.

ADKP is stored in UTEST:

lukaszadrapa_0-1725018903970.png

 lukaszadrapa_1-1725018912383.png

But UTEST is in the same partition like code block 0:

lukaszadrapa_2-1725018960083.png

So, it's necessary to take care about the synchronization as described in HSE FW RM:

lukaszadrapa_3-1725018987190.png

And yes, ADKP is one time programmable only.

Regards,

Lukas

 

0 项奖励
回复

1,768 次查看
David2024
Contributor II

Hi Lukas:

    Thanks for your detailed explanation, so that I need to put the command in RAM to avoid execute from flash block 0?

David2024_0-1725588364597.png

 

0 项奖励
回复

1,747 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, running the code from RAM should solve the problem. However, it won't be enough to put only HSE_ProgramAdkp to RAM because it calls other functions...

0 项奖励
回复

1,561 次查看
victory
Contributor V
if put the code start from 0x500000 can total solve this problem?
0 项奖励
回复

1,558 次查看
David2024
Contributor II

solution:

1. run code from RAM;

2. suspend interrupt;

hope this can help you.

标记 (1)
0 项奖励
回复