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.
Tool/software: Code Composer Studio
Hello,
Can I insert my defined section in the .cmd file?
I want to define a specific data segment as .HAN and store it in Flash.
FLASH_HAN: origin = 0x330000, length = 0x07FFFF
.HAN:> FLASH_HAN, PAGE = 1
Is using the Flash API the only solution?
Thanks, Regards
Han
If this data is going to be programmed via CCS/flashing utility, then you can very well create a section like you mentioned above.
Flash API's come in to play only when the Flash needs to be managed by application during run-time.
Hope this is clear.
Thank you for answering my question, Karthik
What's more curious is how to define a section called Han in the picture above and how to put data in the Han section.
Regards,
Han
Han,
Here is a document that provides more information on the linker command.
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html
Regards,
Ozino
Hello, Ozino
Here's what I'm curious about:
1. I have a function that I have defined. (ex, Function1)
2. I want to put only the execution code of Function1 in Flash Sector B (0x330000-0x33 7FFFF).
The .text area exists in Sector H (0x300000-0x30 7FFFF).
Here is the pseudo cmd code:
MEMORY{
PAGE 0:
FLASH: origin = 0x30 0000, lengh: 0x 7FFF
FLASHB: origin = 0x33 0000, length: 0x 7FFF
.
.
}
SECTIONS {
.text : > FLASH, PAGE = 0
Function1's execution code :> FLASHB, PAGE = 0
}
In this way, can I insert the execution code of specific the function i want into a specific flash memory sector?
I hope you can show me an example.
Thanks, Regards
Han
Han,
Please take a look at the compiler user's guide for an example of how to define a code section for a memory range. See section 6.9.5 of SPRU514
Regards,
Ozino