How to use HCI for debug trace?

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

cross mob
Anonymous
Not applicable

Hi,

I am using BCM20737S included in Macnica koshian.

Koshian - Mpression

I use PUART for debug trace by ble_tracex and it works fine.

Now I changed the port for debug trace to HCI, but it does not work correctly.

PC terminal does not show any messages.

Followings are my code.

const BLE_PROFILE_PUART_CFG eval_puart_cfg =

{

    /*.baudrate    =*/ 115200,

    /*.txpin    =*/ PUARTDISABLE,

    /*.rxpin    =*/ PUARTDISABLE

};

APPLICATION_INIT()

{

    bleapp_trace_enable = BLE_TRACE_UART_HCI;

    ...

}

Any hardware configuration need or my firmware is wrong?

Can anyone answer?

Thank you in advance.

0 Likes
1 Solution
Anonymous
Not applicable

Koshian is not designed for software development.

And I recommend to use BCM92073X_LE_KIT for it including viewing debug trace.

I can see debug trace from HCI UART with any sample application on LE_KIT easily.

So please try running existing sample like hello_sensor on LE_KIT first.

If you see the debug trace from HCI UART, then the debug trace will work on Koshian I think.

View solution in original post

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

Adding 79rpm​ and dmiya of Macnica.

0 Likes
MiTo_1583836
Level 5
Level 5
50 likes received 25 likes received 10 likes received

Let me do some research in Japan and I get back to you.

0 Likes
Anonymous
Not applicable

Koshian is not designed for software development.

And I recommend to use BCM92073X_LE_KIT for it including viewing debug trace.

I can see debug trace from HCI UART with any sample application on LE_KIT easily.

So please try running existing sample like hello_sensor on LE_KIT first.

If you see the debug trace from HCI UART, then the debug trace will work on Koshian I think.

0 Likes
Anonymous
Not applicable

Thank you all for reply.

I understood koshian is not suitable for software development.

I should use PUART for debug trace because I don't have BCM92073X_LE_KIT.

0 Likes