Hi,
Thanks for support!
For this issue, I refer the chapter 4.4.3.2 Automatically using CSEc of AN5401.pdf.
1,I debug the "UartDemo" porject for burn the code into Flash.
2,I debug the "1_Configure_part_and_Load_keys" project for load the ECU_KEY. and I use the Debug_RAM.
3,I debug the "4_secure_boot_add_BOOT_MAC_manual" project for config the secure boot. and I use the Debug_RAM.

I modify "4_secure_boot_add_BOOT_MAC_manual" project like this:

I change the BOOT_SIZE and boot flavor. and run it use Debug_RAM. I want to calculate the BOOT_MAC automatic. I power off my hardware and wait a few minutes, then I power on my hardware, I think it will run Flash code, but it doesn't. Then I power off and power on my hardware several times, But it doesn't work.