For the TMS320C6455, what functions or compiler settings do I use to put code in L1 memory (not cache, but as normal memory) so our program will run from that memory upon startup?
Placing section of your application code in a specific memory is done using linker command files which are used during linking. I would recommend you to take a look at the following wiki to understand how a linker command file is created:
http://processors.wiki.ti.com/index.php/Linker_CMD_Files_for_CCS
The compiler documentation that describes the linker also has some examples.
Hope this helps
Regards,
Rahul
---------------------------------------------------------------------------------Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------
Hello,
Addtional warning for the bootloader:
Depending on boot mode, the L1P may be configured as full cache at reset, and this doesn't permit static code loading.
Not even sure that the embedded bootloader is able to load L1P code in non-L1P-cached modes (see TI).
In these cases, without CCS, think to manage your own second-level code loader (through IDMA only, as L1P is not in data domain), after configuring part or all L1P as program memory (of course).
Jakez
Joseph,
Which boot mode for the C6455 are you using? Or are you only planning to use CCS to load and run the program?
Regards,RandyP
Search for answers, Ask a question, click Verify when complete, Help others, Learn more.
You might find this helpful:
http://processors.wiki.ti.com/index.php/Putting_code_in_L1PSRAM
---------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.---------------------------------------------------------------------------------------------------------