- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have tried the examples provided for the SDK 2.0.1 on the BCM92073X_LE_KIT.
I have yet to see anything output to my tera term, and I don't get any echo back with I enter a key.
Is there an specific example that should work?
Do I need to set up anything in specific, other than building/downloading the image.
-Thanks, Mike
Solved! Go to Solution.
- Labels:
-
ispn:41241:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<<<Is there any way to capture the Broadcom Debug Viewer console data to file?
I could not find a way to configure Eclipse to log the console data to file. However, you can right-click in the window, clear the trace buffer, ... let the debug information flow, and flow, and flow.... then use the lovely CTRL-A (select all), CTRL-C to copy, and then Cut-Paste it elsewhere (CTRL-V)! Sorry!
Note: I've attached what the console-debug data looks like when the Eclipse Debug Plugin (from Broadcom) is running, versus what you'd see if you used a terminal program to capture the debug messages. It shows you pretty much want to use the plugin...
Without the plugin (captured w/TeraTerm):
tones_create()
Buzzer init count: 0x200, Toggle Count: 0x2FF
LED init count: 0x19A, Toggle Count: 0x308
@$*#04FFF6F70092011E0300C1E804100000008003BE1A000000008003AE1A1
60000008003B21A020000008003B61A100010008003BA1A002A00008003BE1A
000000008003AE1A170000008003B21A020000008003B61A050005008003BA1
A032800008003BE1A000000008003AE1A180000008003B21A020000008003B6
.
.
.
F1EF700920103000007362A0100E80300073A2A500000000007522A50000100
With the plugin doing the decryption::
10:05:10 - tones_create()
10:05:10 -
10:05:10 - 0118
10:05:10 - 0018
10:05:10 - 021600002a
10:05:10 - 50574d20546f6e657300000000000000
10:05:10 - 021800012a
10:05:10 - 0002
10:05:10 - 0201060a0950574d20546f6e6573
10:05:10 - 020a04
10:05:10 - Buzzer init count: 0x200, Toggle Count: 0x2FF
10:05:10 -
10:05:10 - LED init count: 0x1EE, Toggle Count: 0x3B4
10:05:10 -
10:05:10 -
10:05:10 - blecm evt handler:
10:05:10 - 0e0401082000
10:05:10 -
10:05:10 - blecm evt handler:
10:05:11 - 0e0401092000
10:05:11 Trace Decoding Error - Could not find line number 314
10:05:11 Attribute bytes
10:05:11 Handle: 0016
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0010, 0010
10:05:11 UUID : 2A00
10:05:11 Attribute bytes
10:05:11 Handle: 0017
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0005, 0005
10:05:11 UUID : 2803
10:05:11 Attribute bytes
10:05:11 Handle: 0018
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0002, 0002
10:05:11 UUID : 2A01
10:05:11 Attribute bytes
10:05:11 Gatt DB Dump complete
10:05:11 bd_addr[5:2] = 20 73 7A 1C
10:05:11 bd_addr[1:0] = 9308 00
10:05:11 GPIO 0001 (11)
10:05:11 GPIO 0000 (104)
10:05:11 GPIO 0014 (1003)
10:05:11 GPIO 0015 (20)
10:05:11 Interrupt mask[0,1]:0001 0000
10:05:11 Interrupt mask[2]:0000
10:05:11 GPIO_WP:OFF= 00
10:05:11 GPIOBTN1:OFF=1,INT:0
10:05:11 GPIO_LED:OFF=1
10:05:11 GPIOBAT
10:05:11 Fine Timer(1000 ms, 1/sec)
10:05:11 Fine TImer tick 80
10:05:11 Normal Timer(0 s, 0 tick)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try the uart_firmware_upgrade application? You should be able to modify it to output ASCII text instead of implementing the download/upgrade mechanism if you just want to test reading from/writing to the uart.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may not have seen any output in TeraTerm due to the new debug/printf mechanism in SDK2 as shown below.
If you do not have the "Trace" pull-down available, you are still running the SDK1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any way to capture the Broadcom Debug Viewer console data to file? It seems the capture option goes away once the trace is started.
Another option would be to be able to disable the lower level TRACE messages at compile time so a regular terminal could be used. Is something like that possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<<<Is there any way to capture the Broadcom Debug Viewer console data to file?
I could not find a way to configure Eclipse to log the console data to file. However, you can right-click in the window, clear the trace buffer, ... let the debug information flow, and flow, and flow.... then use the lovely CTRL-A (select all), CTRL-C to copy, and then Cut-Paste it elsewhere (CTRL-V)! Sorry!
Note: I've attached what the console-debug data looks like when the Eclipse Debug Plugin (from Broadcom) is running, versus what you'd see if you used a terminal program to capture the debug messages. It shows you pretty much want to use the plugin...
Without the plugin (captured w/TeraTerm):
tones_create()
Buzzer init count: 0x200, Toggle Count: 0x2FF
LED init count: 0x19A, Toggle Count: 0x308
@$*#04FFF6F70092011E0300C1E804100000008003BE1A000000008003AE1A1
60000008003B21A020000008003B61A100010008003BA1A002A00008003BE1A
000000008003AE1A170000008003B21A020000008003B61A050005008003BA1
A032800008003BE1A000000008003AE1A180000008003B21A020000008003B6
.
.
.
F1EF700920103000007362A0100E80300073A2A500000000007522A50000100
With the plugin doing the decryption::
10:05:10 - tones_create()
10:05:10 -
10:05:10 - 0118
10:05:10 - 0018
10:05:10 - 021600002a
10:05:10 - 50574d20546f6e657300000000000000
10:05:10 - 021800012a
10:05:10 - 0002
10:05:10 - 0201060a0950574d20546f6e6573
10:05:10 - 020a04
10:05:10 - Buzzer init count: 0x200, Toggle Count: 0x2FF
10:05:10 -
10:05:10 - LED init count: 0x1EE, Toggle Count: 0x3B4
10:05:10 -
10:05:10 -
10:05:10 - blecm evt handler:
10:05:10 - 0e0401082000
10:05:10 -
10:05:10 - blecm evt handler:
10:05:11 - 0e0401092000
10:05:11 Trace Decoding Error - Could not find line number 314
10:05:11 Attribute bytes
10:05:11 Handle: 0016
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0010, 0010
10:05:11 UUID : 2A00
10:05:11 Attribute bytes
10:05:11 Handle: 0017
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0005, 0005
10:05:11 UUID : 2803
10:05:11 Attribute bytes
10:05:11 Handle: 0018
10:05:11 Perm : 0002
10:05:11 Len, Max Len : 0002, 0002
10:05:11 UUID : 2A01
10:05:11 Attribute bytes
10:05:11 Gatt DB Dump complete
10:05:11 bd_addr[5:2] = 20 73 7A 1C
10:05:11 bd_addr[1:0] = 9308 00
10:05:11 GPIO 0001 (11)
10:05:11 GPIO 0000 (104)
10:05:11 GPIO 0014 (1003)
10:05:11 GPIO 0015 (20)
10:05:11 Interrupt mask[0,1]:0001 0000
10:05:11 Interrupt mask[2]:0000
10:05:11 GPIO_WP:OFF= 00
10:05:11 GPIOBTN1:OFF=1,INT:0
10:05:11 GPIO_LED:OFF=1
10:05:11 GPIOBAT
10:05:11 Fine Timer(1000 ms, 1/sec)
10:05:11 Fine TImer tick 80
10:05:11 Normal Timer(0 s, 0 tick)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your quick response Shawn.
Do you know if it is possible to run the plugin from the command line? That way, the output could be redirected to someplace useful.
What do the Broadcom developers do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are checking on the feasibility of improving the plugin to enable logging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello kwilloughby
I received and tested a new Eclipse plugin that has the ability to log to file. It's a no-frills implementation, but it does work. Let me see how the team wants to release it... in the interim, I have a question for you.
You had provided a screen-shot (red / green arrows) that had some additional icons on your console pane. My fresh installation of the SDK does not have these! I could not figure out how to enable them.
How did you get them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shawn,
I did nothing special to enable those controls. Those show up in the CDT build console, which shows the output from the build process. I think that they enable you to step through build errors? The don't show up when debug traces are running.
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SDK 2.0.1 and earlier does not have the (debug/console window) logging feature. It is targeted for the next SDK release. If you must have it before then, send me a private message with your email address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm good for right now. I look forward to seeing it in the next SDK release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see the "Trace" menu on OS X. Is that only for Windows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you running SDK 2.0.1? (you can open the ~WICED-Smart-SDK/version.txt file to find out)