We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello everyone, i want to know what happens if we exceed the maximum limit of code memory of microcontroller while writing the code does it compile the code? what error it gives? eg: in c8051f020, external memory size=64KBYTES if we exceeds this limit then what will happen? i tried to search on google but couldnot find the relevent answers thank u all take care
Yes, it will compile.
But if you have configured your project correct, it will fail to link.
thank you for replay as you mentioned that it will compile i.e it will not give any error or warning right?
but i did not understant the 2nd statement i.e configured correct
and even if configured correct how it will fail to link?
please elaborate on this. thank you take care
post the project here for us to check.
rememba the correct code tags.
What use would it be to post the project?
The source code would not show how the project is configured, and the project configuration files are not suitable for posting.
There is no way you will misunderstand the error message you get when the linking fails. But you have to configure the project to know exactly how much memory your processor has access to, or the linker will not know where the fail limit is.
i want to know what happens if we exceed the maximum limit of code memory of microcontroller while writing the code .... in c8051f020, external memory size=64KBYTES The SILabs chips can not have external program memory ... is that where you go wrong?
try switching from large to small model, and fix some variables if needed (you will - probably - have to add xdata to some definitios) you will be amazed how much smaller your code gets.
Erik
The F020 just have 64KB of on-chip flash code memory. You can't excess this limit. However, by using code-banking, the F12x could has 128KB of on-chip flash code memory.