I keep getting a 'Target not created' error at the end of compile. When I comment out a printf, everything is fine. What is the problem? Thank you.
What other errors do you get before "Target not created?" ALWAYS start with the FIRST error!
"ALWAYS start with the FIRST error!" This isn't always as easy as it seems. If an uncalled function causes you to run out of, say, DATA space the linker will report "Address space overflow" first, then "Uncalled function ignored for overlay purposes". In this case you need to get rid of the uncalled function warning to fix the overflow error. In particular you can get a whole bunch of address space overflow errors which tend to hide the other warning. Stefan
the linker will report "Address space overflow" first, then "Uncalled function ignored for overlay purposes" Hmm... the actual output posted quite clearly has those the other way round. The real catch, I think, is that the uncalled function message is classified as a warning, so the address space overflow is the first actual error message. So maybe the rule of thumb should be extended to: Always look at the first error message first, yet heed any warnings preceding it, too.
"the actual output posted quite clearly has those the other way round" I see that - however I get the opposite result. I posted that message before seeing the OP's error listing. Stefan
The problem disappears after you either remove all the uncalled functions, or make them callable. One thing I still don't understand is why a lot of uncalled functions in different modules cause an overflow while a lot of callable functions don't??
"One thing I still don't understand is why a lot of uncalled functions in different modules cause an overflow" You need to read-up on Data Overlaying in the manuals.
View all questions in Keil forum