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 TI experts,
I have a problem about build the binary file.
scenes 1:
if my code size last bit is 0x8, it can execute normally.
scenes 2:
if my code size last bit is 0x0, it will crash at starting execution.
According to my observation, total flash size does not match the ".binit".
But I have no idea how to fix it...
There is my linker command file.
Could you give me some suggestions?
Thanks for your time and response.
BR,
Nian
Hi Nian,
if my code size last bit is 0x0, it will crash at starting execution.
I think it it has nothing to do with code start loaction. If you want to verify it, then you can set a Flash area start with 0x8 for .bint in cmd file.
Also, what does the ".bint" used for? I find it do NOT have the same segment in example code.
According to my observation, total flash size does not match the ".binit".
What does this mean... Sorry I don't get your point.
B.R.
Sal
Hi Sal,
The attached file is my map file.
According to my observation, total flash size does not match the ".binit".
I mean if ".binit" start at 0x76f8 and length is 0x10, the flash total used should be 0x7708, right?
But my flash only used 0x7700.
I could not figure out my setting where is wrong...
BR,
Nian
Hi Nian,
The ".binit" section is used for Boot-Time Copy Tables, which is used for RAM function code.
Please check the memory address or the disassembly code of abnormal one and whether it is has the correct value.
I could not figure out my setting where is wrong...
The cmd file is correct, so I assume it might relevant to other factors. What do you change between the normal and abnormal code?
B.R.
Sal
Hi Sal,
Please check the memory address or the disassembly code of abnormal one and whether it is has the correct value.
Okay, I will check with my code.
What do you change between the normal and abnormal code?
I just add one command to align flash size to 0x8, such as I2C/SPI read command.
BR,
Nian