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.

HALCOGEN: Shared RAM partition and HALCoGen

Part Number: HALCOGEN

Hello,

I'm using HALCoGen (version 04.07.01) to generate code for a Hercules RM57L MCU. I sometimes would need to configure some of the RAM as non-cached/shared, e.g., to allow the DMA controller to read and write it. Through HALCoGen's MPU tab, I can configure the whole RAM as cacheable and non-shared, and then define a non-cached/shared section in RAM. What I would do next is define a section in the linker script for the shared RAM, and place the variables I need in this section. The problem is that the HALCoGen-generated linker script has no room for user code, thus any modification to it would be overwritten when re-generating code through HALCoGen.

What is the recommended way to achieve what I just explained? Shouldn't the linker script leave some room for the user to configure memory sections?

Thanks in advance,

Carlo

  • Hello Carlo,

    Assume you're using the gcc compiler.

    This is a limitation of HALCoGen use with gcc compiler configuration. In such a case, you will have to manually merge your edits/changes back into the linker command file when you regenerate your code using HALCoGen.

    Hope this works for you.

    Thanks,

    Girish