STM32L4 having BTstack integrated specific to nxp chipset is having transport layer issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

STM32L4 having BTstack integrated specific to nxp chipset is having transport layer issues

875 Views
Vidhi_V
Contributor II

Hello,

I am using the STM32L4 series of controllers which has the BTstack integrated from the BlueKichen. This controller is used to communicate with the CMP530 BLE chip which is running on a specific firmware suggested by its chip vendor (CEL). Both the chips are communicating over the UART. 

When I execute the code in STM with the logs enabled, I can see the below operations performing.

 

Enabled BLE power
Init the memory of bt stack
BTStack Run loop complete
HCI dump init done
HCI init done
HCI set chipset as NXP
Inside BT stack main
Event Callback named 'package handler' registered
Added event handler
hci_power_control: 1, current mode 0
state - HCI_STATE_OFF
Creating internal event
BTSTACK_EVENT_STATE 1
[00:00:00.787] EVT <= 60 01 01
Packet handler state = 0
Inside INIT
get state = 01
HCI packet state = HCI_STATE_INITIALIZING
hci_initializing_run: substate 0, can send 1
[00:00:00.806] CMD => 03 0C 00
Powered up the HCI
hci_transport_h4: invalid packet type 0x00
Resend HCI Reset
hci_initializing_run: substate 0, can send 0
hci_can_send_command_packet_now failed

From the above logs, it seems like the Transport layer of HCI is not successfully up due to which any packets being sent further are showing the error as above.

As a part of the initial debugging check, I have verified the UART configuration for STM32 on which both chips will communicate. The baud rate is set to 115200 for HCI communication over the UART.

Can anyone please help us to understand what can be the possible reasons behind this? 

 

Thanks,

Vidhi V.

 

 

Tags (3)
0 Kudos
Reply
3 Replies

796 Views
Vidhi_V
Contributor II

The vendor of the CMP530 chip has suggested the firmware having HCI interface support. The logs I have dumped above are the logs common out after integrating the BLE Stack.

 

Do you mean the HCI logs from the CMP530 chip end? If so, we do not have access to directly check the chip in debug mode and inspect it. We have enabled the HCI logs from the MCU end based on the BTstack that is integrated. The above logs are of the same.

 

LEt me know if I can help to get further details.

 

Thanks,

Vidhi V.

Tags (3)
0 Kudos
Reply

787 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello Vidhi,

 

Do you have a complete HCI log? Not just what your host is doing.

 

Regards,

Ricardo

0 Kudos
Reply

803 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please clarify what is the specific firmware that was suggested by the Module Maker?

 

By any chance, do you have some HCI logs?

 

Regards,

Ricardo

0 Kudos
Reply