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.
Hi,
I need to fill the free space of the flash with the instructions to reset the system. How to do that?
Thanks,
Crane
If you create the binary file with the utility tiobj2bin.bat, then please see this forum thread. Though instead of 0xffff, use a fill value that is the opcode of whatever instruction you need. If you create the binary file some other way, then please show how that happens.
Thanks and regards,
-George
Thanks George for your reply.
I am using CCS v12.0 to create the binary file.
Regards,
Crane
Unfortunately, I need more detail than ...
I am using CCS v12.0 to create the binary file.
Please rebuild the entire project. One way to do that is to right-click on the name of the project and select Rebuild Project. Then save the contents of the Console (not Problems) view to a text file. Use the icon named Copy Build Log. When you name the log file, be sure to use the file extension .txt. Please attach that text file to your next post.
Thanks and regards,
-George
I don't see a icon named "Copy Build Log", instead "Save build log to file".
Here is the file saved with the extension .txt. Does it work?
Thanks!
Crane
I misunderstood your initial question. Please ignore everything in my first post.
I need to fill the free space of the flash with the instructions to reset the system
Change the linker command file. In your case, that file is named 280040_FLASH_lnk.cmd. It has several specifications in the MEMORY directive for flash memory ranges. Here is one of them ...
FLASH_BANK0_SEC4 : origin = 0x084000, length = 0x001000 /* on-chip Flash */
You need to add a fill specification to all of these flash memory ranges, similar to ...
FLASH_BANK0_SEC4 : origin = 0x084000, length = 0x001000, fill=0xabcd
Replace the value 0xabcd with the opcode of the desired instruction.
For details about the fill specification, please search the C28x assembly tools manual for the sub-chapter titled The MEMORY Directive. Please understand how a fill specification can make the resulting executable file very large.
Thanks and regards,
-George