This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

printf() causes crash before being called

Hi,
Using Keil uVision 5.11 with Cortex M4 target.

I wrote a program with printf() calls. I added a fputc() & output to UART.
I have now created another project with the same fputc().
If in the second program I add a printf() then I get an exception before main().
If I remove the printf() then all is OK.

I suspect that something is missing & that the exception is down to late linking (scatter?).

I would like to understand what changes I need to make to the second project such that I know how to create a project from start.
What am I missing?
If this is a late link issue then how do I force a full link?

0