BRUNO TREMBLAY

Using printf with CW8.2.3

Discussion created by BRUNO TREMBLAY on Aug 7, 2009
Latest reply on Aug 12, 2009 by Pascal Irrle

Hi,

I'm begining a new projet with the MC56F8002 and CW8.2.3 SE (on XP and programming with an USB TAP). I want to dump some data in a console window using printf but I have some linker error. I made a search on this forum's section for printf, but find noting to help me.

 

This is my simple code:

 

#include  "Cpu.h"

#include  "Events.h"

#include  "stdio.h"

 

#include  "PE_Types.h"

#include  "PE_Error.h"

#include  "PE_Const.h"

#include  "IO_Map.h"

 

void main(void)

{

    PE_low_level_init();

    printf("Hello\n");

    for(;:smileywink: {}

}

 

 

Now, when I try to compile it, I get this error:

 

Link Error : Segment overflow: .p_Code

Reserved size is 0x00001e68 -- Overflow 0x00001ba4

 

Link Error : Segment overflow: .x_Data

Reserved size is 0x000007fe -- Overflow 0x000005b0

 

Link failed

 

I think it must be a simple memory configuration problem but I have no clue how and where to fix it,

 

Need some help!

 

Thanks

 

Gibson

Outcomes