Hi,Selent
1.Based on your response, I modified linker_flash_s32k312.ld, and g_u2CurrBootOrAppMode can correctly point to 0x20407FF0.
2.When I assigned the value g_u2CurrBootOrAppMode = 0xAA55, I found that g_u2CurrBootOrAppMode was not set, and the program crashed, as shown in the image below. For detailed code, see the attachment.