Other Parts Discussed in Thread: HALCOGEN,
Tool/software: HalcoGen, CCS
Hi TI Support,
We have used TMS570LC4357 for our project development and configured both Bootloader Image + Application Software Image inside the TMS570 Flash Memory. We are also trying to configure a 512-byte non-init RAM inside the flash using HalcoGen such that we can keep some debug parameters inside the Non-init memory during power lost or unexpected reset.
We are following another TI user example TMS570LC4357: No init memory on reset for storing reset information step by step.
Before we implement the Non-init RAM feature, the software always run correctly: After reset or power on, SW goes to bootloader first then jumps to application software.
After implemented the above Non-Init RAM, we encountered some issues:
- When we use TI Debug XDS110 probe the SW reset reason can be saved and displayed correctly.
- However, if we power off and then power on, the software is hanging there, neither enters bootloader nor the normal application.
- If we press the TRST reset button, there is still no any response and software still hanging.
- If we press the PORRST reset button, then the software can restart correctly.
- If we do power cycle again, the issue comes back again
In order to make the bootloader and Application keep the same Non-init RAM, we enable the MPU for bootloader as well. Application Software has enabled MPU region 15 for this non-init RAM, Bootloader follows the same setting + Region 2 & 3 permissions changed
May I know what is the reason for this? I have attached our codes screenshots for your reference and debugging: