printf cannot be used in RawSerial class in LPC1549

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

printf cannot be used in RawSerial class in LPC1549

717件の閲覧回数
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 返信

661件の閲覧回数
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 件の賞賛
返信