Hi,
I'm getting linking errors while building the application that I couldn't figure out the cause.
I created a function x(&y, &z); which all the code in it is commented.
from my main(), whenever I call this function I get this message:
linking... . . . .\Output\Release\AD-app.axf: Error: L6406E: No space in execution regions with .ANY selector matching lwip.o(i.__ARM_common_call_via_r1). .\Output\Release\AD-app.axf: Error: L6406E: No space in execution regions with .ANY selector matching tmwdlist.o(i.__ARM_common_call_via_r4). .\Output\Release\AD-app.axf: Error: L6406E: No space in execution regions with .ANY selector matching tmwlink.o(i.__ARM_common_call_via_r6). .\Output\Release\AD-app.axf: Error: L6406E: No space in execution regions with .ANY selector matching iusefp.o(.text). .\Output\Release\AD-app.axf: Error: L6407E: Sections of aggregate size 0x974 bytes could not fit into .ANY selector(s). Not enough information to list image symbols. Not enough information to list the image map. Finished: 2 information, 0 warning and 78 error messages.
I read about increasing IRAM but it didn't solve the problem. Any idea on the reason(s) why I'm getting linking errors & how to fix it?
I'm working on STR712FR2 and IRAM1 is 0xB000.
Regards, BaDeR
Doesn't the reason look like your program is too big for the available memory the linker needs to fit it into?
Thank you Per Westermark. I increased the IROM1 size and the code is compiled with no errors.
You didn't felt that the message "Sections of aggregate size 0x974 bytes could not fit" gave a significant hint? Error messages are intended to be read, without a need to involve a forum. By reading the message, you could have solved the problem in minutes instead of having to wait for someone else to respond.