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.

TMS320F28388D: global shared ram used to load and run code

Part Number: TMS320F28388D

Dear sir,

I am using 28388D to develop my own applications and as there is no enough LSxRAM for my code in CPU2, I wonder if the "GSxRAM" or "CPU2TOCPU1RAM" can be used to load and run my code.

I tried to assign some code to  "CPU2TOCPU1RAM" in the linker cmd file, but the code run into "Interrupt_illegalOperationHandler".

so is it can't be used to load and run code?

And as CPU2  can have both write and read access to GSxRAM until CPU1 set up the configuration to assign the corresponding GSxRAM to CPU2. So I wonder if I can use the GSxRAM to load and run my code?

Is there any other kind of RAM can I use to load and run my code?

Thanks in advance and look forward to your reply.

  • Hi,

    I tried to assign some code to  "CPU2TOCPU1RAM" in the linker cmd file, but the code run into "Interrupt_illegalOperationHandler".

    That is MSG RAM and can be used for data only and not for code hence you are getting ITRAP.

    And as CPU2  can have both write and read access to GSxRAM until CPU1 set up the configuration to assign the corresponding GSxRAM to CPU2. So I wonder if I can use the GSxRAM to load and run my code?

    Yes, GSxRAM can be used by CPU2 for code execution. As you mentioned correctly, CPU1 application code need to assign the particular RAM block to CPU2 before CPU2 start executing the code from that RAM block hence you need to use some handshake between CPU1 and CPU2 to make sure CPU2 wait for the CPU1 to complete the RAM configuration.

    Regards,

    Vivek Singh

  • I noticed that in the linker cmd file of example project "memcfg_ex1_ram_management_cpu1":

    the code was loaded is LSxRAM and RUN in GSxRAM,

    but I want to load and run in the GSXRAM, cause the cpu2 can write to GSxRAM until the permission from CPU1, then can the code be loaded to the GSxRAM before that?

    just like the below:

    thank you!

  • Hi,

    but I want to load and run in the GSXRAM, cause the cpu2 can write to GSxRAM until the permission from CPU1, then can the code be loaded to the GSxRAM before that?

    Debugger (JTAG) access is allowed from both the CPU irrespective of the permission so you should be able to load the code from CCS.

    Regards,

    Vivek Singh