Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
Hello!
I have been using the development board of TMS570LC4357 recently, and the CMD file automatically generated by HALCoGen is for debugging on the FLASH mode. Every time I debug, I need to rewrite FLASH, which is too slow.
I need a CMD file for debugging on the RAM mode. However, I did not find it, so I'm trying to modify the FLASH mode CMD file. Although there were no compilation errors, I did not achieve the goal of debugging on the RAM mode.
The CMD before modification is as follows:
//The FLASH starting address is 0x0000 0000
Hi,
I started working on your issue and will try to provide an update ASAP.
--
Thanks & regards,
Jagadish.
Hi Jiangbo,
The TMS570 and RM4x/5x MCUs do allow you to remap Flash and on-chip SRAM, so what you are looking for is supported. This way you can develop smaller code routines to test specific functions and features without having to reprogram the Flash for every code change you make.
The changes in linker cmd file:
1: Memory:
change stack to a memory range in Flash

2. Section:
map .bss, .data, .sysmem to FLASH0

Changes in sys_core.asm:

After the target is connected, enable "CC_MemoryMap_RAM_at_0x00" in CCS-->scripts->TMS570LC43x Memory Map setup
Open the memory map window, make sure that memory range 0x0~0x7FFFF is RAM

Then load the out file to flash.
Note that you must avoid all on-chip SRAM testing or initialization when using this method.