I want to add software version into firmware when binary is created like the below.
Could you please let me know what should I do for this?
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.
I want to add software version into firmware when binary is created like the below.
Could you please let me know what should I do for this?
Hello Hyunung,
Which firmware and binary are you talking about? Is it your application or any preexisting TI application?
A little bit more details will help me understand your concern.
Regards,
Saswat Kumar
Hello Hyunung,
Please provide me time till 1st Feb to check and get back on this.
Regards,
Saswat Kumar
Hello Hyunung,
I will provide some examples, but you will need to implement it:
So in your linker file first you have to define a memory under MEMORY:
RANDOM_MEM : org = 0x00080000 len = 0x00000C00 ( I have just provided some random address dont use this)
Then in the same you will have SECTIONS where you will need to define a section:
.ranmem:
{
*(.ranmem)
} > RANDOM_MEM type=NOINIT ALIGN(8) ( This is just a type of memory, you can use whatever type you want
Thats all the changes in your linker file, then you will need to go to your C file:
VARIABLE_TYPE varname __attribute__((section(".ranmem")));
This is how you align it to a specific memory.
Regards,
Saswat Kumar