Other Parts Discussed in Thread: HALCOGEN
Hi folks,
using the TMS570LS3137PGE with HALCoGen v3.00.01 i encountered the following issues:
1) the controller has 256KB RAM, which is stated correctly in the RAM tab, giving start address at 0x08000000 and length as 0x3FFFF.
But the generated linker file does not present the full RAM area, following the default stack definitions the known RAM ends at 0x08028000 instead of 0x803FFFF.
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x00026B00
How come?
2) We have the need to exclude a certain RAM area from initialization at startup/reset of the controller. This is not possible using the HALCoGen GUI due to lacking options.
One possible solution is to have a manually setup linker command file, but the generated code out of the HALCoGen tool doesn't care about this. it seems that there is no way to control the behaviour of the generated to application needs, it looks like a fixed template code.
How can i tell HALCoGen to match the application needs in terms of generating a proper linker control file AND generate the matching code?
Especially painful is the function "_memoryInit_", generated in module ".../source/sys_memory.asm", which astonishingly knows the full RAM area and wipes it regardless of needed exclusion areas. I do not want to patch generated code!
Thanks in advance for Your answers!
Best regards
Klaus