printf cannot be used in RawSerial class in LPC1549

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

printf cannot be used in RawSerial class in LPC1549

747 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

691 次查看
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 项奖励
回复