PSoC 64 Secure Boot Memory transfer fault

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
gryfin_chen
Level 3
Level 3
Distributor - Yuban(GC)
5 questions asked 25 sign-ins First like received

I use CY8CKIT-064B0S2-4343W to run some examples

in this project "Secure_Blinky_LED_FreeRTOS"

When I execute following command (Secure Boot), I get an error. 

Step A & B worked as expected

but,running command "cysecuretools -t cyb06xxa entrance-exam"

or

"cysecuretools -t cyb06xxa -p policy/policy_single_CM0_CM4_swap.json provision-device"

will shows the following error

gryfin_chen_0-1669944624462.png
VTARG is 2.5V and KitProg3 is in DAPLink Mode

gryfin_chen_1-1669944666007.png

 

我使用CY8CKIT-064B0S2-4343W的範例cysecuretools -t cyb06xxa entrance-exam

步驟A和B都正常,但是C跟D都會跳出 下列的錯誤訊息

P : WARN : Skipping CoreSight discovery for AHB-AP#2 because it is disabled
C : ERROR : Memory transfer fault @ 0xe000ed00-0xe000ed03. Check the log for details Error: Failed processing!

想請問一下要如何才能解決此問題

0 Likes
1 Solution
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @gryfin_chen :

Could you try again following the guide below?

https://community.infineon.com/t5/Resource-Library/Provisioning-Guide-for-the-Cypress-CY8CKIT-064S0S...

Please also check the python version.

Best Regards,

Colin

View solution in original post

0 Likes
8 Replies
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @gryfin_chen :

Which version of MTB you're working? MTB 2.4 or MTB 3.0?

I need to check it at the same environment with yours.

Best Regards,

Colin

0 Likes
lock attach
Attachments are accessible only for community members.
gryfin_chen
Level 3
Level 3
Distributor - Yuban(GC)
5 questions asked 25 sign-ins First like received

Hi @Qi_Colin

I use MTB3.0 ,and BSP is 4.0
 
I can release my example below 

Thanks.
Gryfin 

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @gryfin_chen :

Could you help to check whether it's useful following the Re-provisioning After Failure Section?

cysecuretools -t cyb06xxa -p policy/policy_single_CM0_CM4_swap.json re-provision-device –-
erase-boot

 I try the sample code provided by you, and I don't meet the same problem on my side.

Best Regards,

Colin

0 Likes
lock attach
Attachments are accessible only for community members.
gryfin_chen
Level 3
Level 3
Distributor - Yuban(GC)
5 questions asked 25 sign-ins First like received

I  use 

cysecuretools -t cyb06xxa -p policy/policy_single_CM0_CM4_swap.json re-provision-device

because the modus-shell can,t recognize the erase command

gryfin_chen_1-1670291706474.png

Still not working, the following error will appear.

gryfin_chen_0-1670291418102.png

 

0 Likes
lock attach
Attachments are accessible only for community members.
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @gryfin_chen :

According to your latest log information, it seems that not a same error as last time.

Could you help to run command "cysecuretools -t cyb06xxa entrance-exam" or "cysecuretools -t cyb06xxa -p policy/policy_single_CM0_CM4_swap.json provision-device" and get the log again?

I've run "cysecuretools -t cyb06xx7 -p policy/policy_single_CM0_CM4.json re-provision-device" on CY8CPROTO-064S1-SB EVK and got similar error information with yours.

OTOH, the error information shows that "ERROR : Engineering Sample version of PSoC64 detected, the current version of CySecureTools is incompatible. Please contact Cypress to receive production versions of PSoC64 Silicon." when I run "cysecuretools -t cyb06xx7 -p policy/policy_single_CM0_CM4.json provision-device".

If you got the same feedback, it's an IC version issue.

Please help to check it again.

Best Regards,

Colin 

 

0 Likes
lock attach
Attachments are accessible only for community members.
gryfin_chen
Level 3
Level 3
Distributor - Yuban(GC)
5 questions asked 25 sign-ins First like received

Hi @Qi_Colin 

It seems that an error occurred when Verifying ASSET_HASH 

But it is also can,t update the KEY through Re-provision-device

Best Regards,
Gryfin

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @gryfin_chen :

Could you try again following the guide below?

https://community.infineon.com/t5/Resource-Library/Provisioning-Guide-for-the-Cypress-CY8CKIT-064S0S...

Please also check the python version.

Best Regards,

Colin

0 Likes
gryfin_chen
Level 3
Level 3
Distributor - Yuban(GC)
5 questions asked 25 sign-ins First like received

Hi @Qi_Colin 

After I use Cyprogrammer to clear SYS_AP, SYS_M0
Re-run the command again using your suggestion, confirm VTag = 2.5V
Until the Re-provision-device command clears all sectors
finally succeeded....
Although the key reason is not known,but still very grateful for the help!!

Best Regards,
Gryfin

0 Likes