CW TAP Failed to program xspi flash with error [FP: sector is protected]

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

CW TAP Failed to program xspi flash with error [FP: sector is protected]

Jump to solution
2,973 Views
user_cwtap
Contributor II

Hi, 

We develop a custom board based on LX2160A. We meet the problem of failing to run target initializaton script with CW TAP during the xspi flash programming period after power on reset. Is there any way to debug this issue?

user_cwtap_0-1694444454850.png

Thanks.

0 Kudos
Reply
1 Solution
2,969 Views
user_cwtap
Contributor II

In addition, we tried to configure USE_SAFE_RCW = True in Target Initialization File, and added following in LX2160A_RDB_init.py.

def Config_Flash_Devices():
fl = flash.create(TA)

fl.add_device({"alias": "xspi", "name": "MT25QU512ABA", "address": 0x0, "ws_address": 0x18000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "FSPI"})

View solution in original post

0 Kudos
Reply
3 Replies
2,603 Views
user_cwtap
Contributor II

can LX2160A's pcie controler work good with rc and ep devices?

0 Kudos
Reply
2,881 Views
khushbur
NXP TechSupport
NXP TechSupport

Hi @user_cwtap 

 

Your configuration looks correct.

please add unprotection task as shown below execute it first.

fl_unprotect offset size

ex. fl_unprotect 0x000000 0x100

If You are Using flash programmer from eclipse IDE refer below image

Screenshot from 2023-09-14 16-48-01.png

Thanks

Khsuhbu

0 Kudos
Reply
2,970 Views
user_cwtap
Contributor II

In addition, we tried to configure USE_SAFE_RCW = True in Target Initialization File, and added following in LX2160A_RDB_init.py.

def Config_Flash_Devices():
fl = flash.create(TA)

fl.add_device({"alias": "xspi", "name": "MT25QU512ABA", "address": 0x0, "ws_address": 0x18000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "FSPI"})

0 Kudos
Reply