Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
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: TMS320F28P650DK
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
You may find an example named "flash_ex3_flash_to_ram" inside driverlib/f2838x/examples/c28x/flash/ folder which demonstrates a similar thing. You may use this as your reference.
When you open its sysconfig file from the sysconfig gui, you'll find a device_cmd.cmd file on the right side. Please check the encircled section.
Let me know if you need any further clarification.
Hi, thanks for taking the time to help me. The above example doesn't quite go over how I could link specific .obj files. Would you happen to know if there is an example that links specific .obj files to ramfuncs? And what the syntax would be to do it?
Hi Srinivasan,
Does this help? e2e.ti.com/.../placing-obj-files-in-specific-segments
I apologize for the delay.
You can solve this problem ...
To reduce ISR utilization and improve performance, I am trying to move code to executing from RAM instead of FLASH.
... with no changes to the linker command file. In the second post, Sudeshna shows a screenshot of a linker command file named device_cmd.cmd. It has a specification for an output section named .TI.ramfunc. This is exactly what you need. You don't need GROUP, or anything else you show in your first post.
If you want all of the functions in one file to load in flash and run from ram, build that file with the option --ramfunc=on. For the details on that option, please search the C28x compiler manual for the term ramfunc. It does not make sense to build all of the files with this option. I think you build with CCS version 20.x.x or later. In that case, to change the build options for just one file, right click on the file and choose Properties.
Thanks and regards,
-George
I don't use CCS for build, using Cmake and docker environment on Visual Studio Code. I will need to work out how i can build a file with this option --ramfunc=on, my setup maybe its something I need to specify as part of my cmakefile, where i make a library for all the relavant files, that i want to run from RAM.
I will need to work out how i can build a file with this option --ramfunc=on, my setup maybe its something I need to specify as part of my cmakefile
This is the best way to go. But if you can't get it to work, there are other methods. Feel free to ask me about them.
Thanks and regards,
-George
Thank you George and Srini for talking this through.
Srini please do reply back on this thread as you need to (if already, please don't hesitate).
We will keep this open for now.
TY,
Chris
Srini,
We'd like to go ahead and close this ticket out if that's OK.
Unless you have more to add to the thread at this time?
Otherwise, we can create a new ticket and/or address offline.
Please let us know today if you can.
Thank you,
Chris
Srini & All,
Closing this thread now. Let's discuss any further actions/questions offline.
Regards,
Chris