Hi
In order to test your problem, I enable srecord generation:

Then I found some conflict inside. For example. 0xFFFF9D is defined twice.

This address belongs to vector table, all the vectors are already defined in vector.c.
your extra adding files should include duplicated definition. check your map file like this

Please revise your adding file to avoid any code conflict.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------