printf function for M5213evb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

printf function for M5213evb

2,008 Views
airswit
Contributor III
hey all,

I am trying to get the printf function to work with my project. I have created a project a while back, which includes interrupts, and when i have included the files required to set interrupt handlers, the printf function no longer works. I tried to use one of the example projects (power test program) recently, and through a few changes to my code and directories, i almost have it compiled. however, now i get an error in one of my functions, during linking, that says:

Link Error : Undefined : "__clear"
Referenced from "check_quadrature" in main.cpp

Link failed.


where my functions has this:

void check_quadrature(void)
{
uint16 sending[] = {0xF010,0xFFFF}; /* sending data */
uint16 receive[16]; /* data to receive */
uint16 chipselects[] = {0,0}; /* each chip select per data*/
// selectChannel = 0;
activeChannel = 31;
MCF_GPIO_PORTUB = selectChannel;

QSPITransferCommand(&chipselects[0], sizeof(chipselects)/sizeof(uint16));
QSPITransferData(&sending[0],&receive[0], sizeof(sending)/sizeof(uint16));

while(1)
; //sit in this loop:boring!
}


now, this works in my old project, but here, in the new one, it will not link properly. does anyone know why this might be happening, and how to fix it?

also, is there some setting somewhere, or some group of files that i can use to get this to work? this is getting to be crazy!

thanks,
Trevor
Labels (1)
0 Kudos
1 Reply

523 Views
CrasyCat
Specialist III
Hello
Just submit a service request for that one using our on line support web site.
Make sure to attached a zip file including the whole project reproducing the trouble to the SR.
 
Also make sure you indicate the version of CodeWarrior you are using.
You can retrieve that information in the following way:
 
   - Start the IDE
   - Select "Help" -> "About Metrowerks CodeWarrior" or
      Help-> "About Freescale CodeWarrior" 
   - Click on Installed Products
   - You can save the information in a text file that you can also attach to the SR.
 
CrasyCat
0 Kudos