Other Parts Discussed in Thread: TMS570LS3137
Hello,
We are switching our software from TMS570LS3137 to TMS570LC4357 and it seems that TMS570LC4357 is not behaving right when Flash and Ram are swapped by setting the key in BMMCR1 register. We have a software that is used to load software updates to Flash and this software runs from RAM (to be able to access Flash). The software is placed in the Flash and when used it is copied into RAM (address 0x08000000) and at that point BMMCR1.MEMSW field is set to 5. After this is done the RAM that contained the previously copied software gets cleared in random locations (blocks). This was not happening with TMS570LS3137, although we were not using MPU at that time. Is it related to the MPU that we are using now? This problem occurs even if the MPU is disabled before the memory swap.
Additional issue that I observe is with the CPURSTCR register. The TRM is sais that the CPU RESET bit needs to be toggled for the CPU reset, but the reset doesn't happen if the bit was 1 and is set to 0. Also this bit is not cleared after System Reset. Is that a normal behavior?
Thanks,
Alex