BCM920736 SIP HCI UART Debugging

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

cross mob
Anonymous
Not applicable

It appears that in the 2.x environment that this is the default setup:

spar_app_setup.png

However, I'm not seeing any movement on the TX and RX lines on my scope.  I am able to program and run the sample apps on my board and am basing my code on the mybeacon sample app.

What do I need to do to enable debug out?

0 Likes
1 Solution
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Take a look at the SDK 2.0 Quick Start Guide here: WICED Smart™ Quick Start Guide (SDK 2.x and TAG3 Board)

Go to the section titled "Viewing Traces From WICED SMART Tag"

This should contain everything you need.

View solution in original post

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

Take a look at the SDK 2.0 Quick Start Guide here: WICED Smart™ Quick Start Guide (SDK 2.x and TAG3 Board)

Go to the section titled "Viewing Traces From WICED SMART Tag"

This should contain everything you need.

Anonymous
Not applicable

I am not using TAG board, I am using a SIP module on a custom board.

I can program AND run my app but I never see any movement on the uart lines in application mode.  Is there anything else that would cause the UART not to work on the firmware side?  The only hardware difference is that the quick start guide wants me to disconnect the RX line completely. (SW2.2 = OFF), which I can't do easily.  This shouldn't matter as it's pulled down internally on boot.

0 Likes
Anonymous
Not applicable

The correct answer is no, nothing else is required. 

I started seeing movement on my scope as soon as I posted my last message.  No clue why.

For some reason the eclipse terminal still isn't working but I was able to connect teraterm and see debug output for the first time.  Woo Hoo!  I suspect the baud rate is/was incorrect and wasn't resetting properly to 115200 until I restarted everything.

0 Likes

If you were using SDK 2.0.1 and a BCM92073X_LE_KIT Tag board, then the traces being output are encoded.

There is an Eclipse plugin that's installed within the Windows version of the IDE which will allow you to view the encoded traces.

More on this topic here: Re: Scrambled output via serial port

The baud rate seems to only work correclty when set to 115200. That may have been the issue.

Another thing you will want to check is the state of the HCI UART Rx line during reset as this determines the mode.

By default, there is a 10k pull down on Rx that's internal to the module which should keep the line from going into programming mode.  However, if you are using something like an FTDI USB to Serial converter between your PC and the board, it's possible that the FTDI device could be pulling the Rx line of the HCI UART high and preventing the device from going into application mode.

When sampled on RESET only:

HCI UART Rx = High (Programming mode)

HCI UART Rx = Low (Application mode)

0 Likes