Use PUART Weird

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello everyone ,

I use puart.h in hello_client.c , the uart can work and print any !

but when I copy puart_write() function and add header into blecen.c ,it can work !

the code like this:

未命名.jpg

How do I solve ?

0 Likes
1 Solution
Anonymous
Not applicable

Hello yaocing,

1.  Please confirm that you are modifying blecen.c
2.  If you have modified this code, then it won’t change anything.
3.  This code is in the ROM and is provided for reference.
4.  Any code that you modify outside of the <SDK>/Apps directory will not work

Thanks
JT

View solution in original post

0 Likes
5 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

Check out this document, refer to the sample pUART code.

WICED™ Smart Hardware Interfaces

MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

It may be best here to start with a known application from the SDK which uses the PUART, then modify it to fit your application.

Two examples we provide are puart_control and uart_firmware_upgrade.

Anonymous
Not applicable

Can I add other function in SOURCE File ?

I try add testPrint() in blecen.h ,

and implement it in blecen.c.



I call  testPrint() in my application ,

it appear error  "undefined reference to testPrint" :


1.jpg



0 Likes
Anonymous
Not applicable

Hello yaocing,

1.  Please confirm that you are modifying blecen.c
2.  If you have modified this code, then it won’t change anything.
3.  This code is in the ROM and is provided for reference.
4.  Any code that you modify outside of the <SDK>/Apps directory will not work

Thanks
JT

0 Likes
Anonymous
Not applicable

Hello JT

Thank you for the detailed answer.

Now I know can't modify code outside of the <SDK>/Apps directory , because  it  in  ROM .

0 Likes