PUART can't work until button 1 press twice?

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

cross mob
Anonymous
Not applicable

Hi, I'm facing a strange problem, an need someone's advise.

I made a board using 20732S, keep button 1 and PUART schematic same as demo board.

Test with hello sensor code, and button interrupt 1 works. debug trace log can be shown to HCI UART, but cannot show to PUART,

where I've modified "spar_init.c" for controlling log output correctly.

When I configure output to PUART, I found I have to press button 1 for 2 times, then PUART can output. The message can output until the button pressed twice, after that it output the log normally.

Is there any suggestion for this issue? Thank you in advanced.

0 Likes
1 Solution
Anonymous
Not applicable

It's really confused me. When I re-install the SDK and recompile the code, everything works fine.

View solution in original post

4 Replies
Anonymous
Not applicable

I'd like to see the output log from the puart.

Ex: Is "(INT)But1: ..." displayed just after 2nd button pressing?

And is the phenomenon changed after pressing button 1 three times or more?

0 Likes
Anonymous
Not applicable

yes, button works fine. It always display "(INT)But1 ...." from 1st time pressing to n time.

And the phenomenon doesn't change after 2nd press.

That's after 2nd time press, everything works well.

0 Likes
Anonymous
Not applicable

It's really confused me. When I re-install the SDK and recompile the code, everything works fine.

Anonymous
Not applicable

Good to hear that.

0 Likes