printf cannot be used in RawSerial class in LPC1549

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

printf cannot be used in RawSerial class in LPC1549

558 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhjcpi on Wed May 21 00:14:55 MST 2014
Dear,

I am working on mBed LPC1549 platform.

I am trying to use RawSerial to output debug information. I delcare debug serial port as RawSerial class, the system will halt when printf is called, such as
    RawSerial pc(D1, D0);
    pc.printf("hello world.\r\n")

I delcare debug serial port as Serial class, the system will work well when printf is called, such as
    Serial pc(D1, D0);
    pc.printf("hello world.\r\n")

Does the printf is supported in Mbed RawSerial class in LPC1549 platform?

Thanks.

Labels (1)
0 Kudos
1 Reply

502 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed May 21 00:23:25 MST 2014
For mbed specific questions like this, you would probably get more assistance by asking the mbed community:

http://mbed.org/forum/

Regards
LPCXpresso Support
0 Kudos