Based on the information provided, it seems that your program is encountering a fault and entering a locked-up state. This could be due to a variety of reasons such as a memory access violation, a divide-by-zero error, or an illegal instruction being executed.
Here are some steps you can take to debug this issue:
- Check the Fault Status Registers (FSR) to identify the type of fault. The FSR will provide information about the cause of the fault.
- Examine the stack to see the state of the program at the time of the fault. This can provide clues about what the program was doing when the fault occurred.
- Use a debugger to step through your code and identify the exact point at which the fault occurs. This can help you understand what part of your code is causing the problem.
It's also worth noting that the address you mentioned (LVFCCU_2(base) + 2F2C2) seems to be in the System RAM region, which is usually used for code execution. If your program is trying to execute data as code, this could be causing the fault.
As for the S32G3 board, please note that the AN13750 is for the S32G2 platform, not for S32G3. The Bootloader is designed for S32G2, and we cannot confirm that the functionality will stay the same for S32G3. You might want to check if there are any specific considerations or differences when using the S32G3 platform.
Lastly, if you're using the out-of-the-box BSP for S32G3, please ensure that it's correctly configured for your use case.