Hi @yaojianhang
not sure how you tested this but it works as expected on my side...
This is a state when I turn on the board and connect a debugger without reset (hot attach):

If debugger is connected and if I reset the board via debugger:

So, I can see no problem here.
How did you set the attribute? I used AN5401 for my test and I used:
calculate_M1_to_M5(M1, M2, M3, M4, M5, MASTER_ECU_KEY_VALUE, BOOT_MAC_KEY_VALUE, MASTER_ECU_KEY, BOOT_MAC_KEY, 1, 0b001000);
Regards,
Lukas