Sources of 43438A1 low energy driver

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

cross mob
jbiemar46456
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Hello,

I'm porting WICED to a STM32H733 and I've an issue with the code snip.bluetooth.ble_gatt_db.c. The function "wiced_bt_stack_init( ..);" is not working.

I've this:

00:00:00.023000 GKI_create_task func=0x80932f9  id=1  name=BTU  stack=0x0  stackSize=4096
00:00:00.031000 GKI_create_task func=0x8094ae5  id=0  name=HCISU  stack=0x0  stackSize=3072
00:00:00.040000 --
00:00:00.042000 SENT Command to HCI. Name: HCI_Reset  (Hex Code: 0x0c03  Param Len: 0) Ctrl(0)
00:00:00.051000 --
00:00:04.042000 --
00:00:04.044000 SENT Command to HCI. Name: HCI_Reset  (Hex Code: 0x0c03  Param Len: 0) Ctrl(0)
00:00:04.052000 --

I change platform files but nothing happens on BT_REG_ON or UART_TX.

Do you know were I can found the code to recompile and perform step by step debugger?

Thank you,

Jean

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello @jbiemar46456 

Currently  we don't support STM32H + 4343W on WICED. We will check if there is any resources available to share on porting to STM32H7 and update you. 

Meanwhile, in your case , can you try sending some Bluetooth specific commands after the patchram download & see if you get any response for that ? 

Regards,
Anjana

View solution in original post

0 Likes
5 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi @jbiemar46456  ,

From the log you  posted looks like the HOST is not communicating with the BT controller properly. Can you  check the BT is properly powered up and reset. Also can you make sure UART (host side) is working, no response to the HCI_Reset means no communication with the BT Controller. Can you please try checking the UART signals?

Regards,

Anjana

0 Likes

Hi @AnjanaM_61 , 

Thank you for your response.

Like I said I've nothing on UART signals and BT_REG_ON. What I want to know is why my parameters from platform.c are not used.

Regards,

Jean

0 Likes
jbiemar46456
Level 2
Level 2
10 sign-ins 5 replies posted 5 sign-ins

Hi @AnjanaM_61 ,

I succeed to use the BT_REG_ON and the UART. The problem was a the reset pin not good set to NULL. (Typo in platform.c).

Now the BT_REG_ON is good and I've transmission on UART on both direction. But the module only answer to one command. Do you have any idea?

Thank you,

Jean

 

Wiced BT GATT TEST (Nov  2 2021 09:53:31)
Platform CYW94343W_ALTA initialised
Started FreeRTOS v9.0.0
GATT DB Application start
00:00:00.023000 GKI_create_task func=0x8093365  id=1  name=BTU  stack=0x0  stackSize=4096
00:00:00.031000 GKI_create_task func=0x8094a91  id=0  name=HCISU  stack=0x0  stackSize=3072
00:00:00.140000 --
00:00:00.142000 SENT Command to HCI. Name: HCI_Reset  (Hex Code: 0x0c03  Param Len: 0) Ctrl(0)
00:00:00.150000 --
00:00:00.553000 --
00:00:00.555000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)
00:00:00.564000 Parameters
00:00:00.567000                      Num HCI Cmd Packets : 1 (0x01)
00:00:00.573000                                 Cmd Code : 0x0c03  (HCI_Reset)
00:00:00.580000                                   Status : Success (0x00)
00:00:00.587000 --
00:00:00.589000 --
00:00:00.591000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc2e  Param Len: 0) Ctrl(0)
00:00:00.599000 Error - Unknown HCI command: 64558 [0xfc2e] Length: 0
00:00:00.606000 --
00:00:00.609000 --
00:00:00.611000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)
00:00:00.621000 Parameters
00:00:00.623000                      Num HCI Cmd Packets : 1 (0x01)
00:00:00.630000                                 Cmd Code : 0xfc2e  ((null))
00:00:00.637000 00
00:00:00.639000 --
00:00:00.691000 --
00:00:00.693000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc4c  Param Len: 70) Ctrl(0)
00:00:00.701000 Parameters
00:00:00.704000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 70
00:00:00.710000 --
00:00:00.720000 --
00:00:00.722000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)
00:00:00.731000 Parameters
00:00:00.734000                      Num HCI Cmd Packets : 1 (0x01)
00:00:00.740000                                 Cmd Code : 0xfc4c  ((null))
00:00:00.747000 00
00:00:00.749000 --

{ Loop
00:00:00.751000 --
00:00:00.753000 SENT Command to HCI. Name: (null)  (Hex Code: 0xfc4c  Param Len: 255) Ctrl(0)
00:00:00.762000 Parameters
00:00:00.764000 Error - Unknown HCI command: 64588 [0xfc4c] Length: 255
00:00:00.771000 --
00:00:00.797000 --
00:00:00.799000 RCVD Event from HCI. Name: HCI_Command_Complete  (Hex Code: 0x0e  Param Len: 4) Ctrl(0)
00:00:00.808000 Parameters
00:00:00.811000                      Num HCI Cmd Packets : 1 (0x01)
00:00:00.817000                                 Cmd Code : 0xfc4c  ((null))
00:00:00.824000 00
00:00:00.826000 --
}

 

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello @jbiemar46456 

Currently  we don't support STM32H + 4343W on WICED. We will check if there is any resources available to share on porting to STM32H7 and update you. 

Meanwhile, in your case , can you try sending some Bluetooth specific commands after the patchram download & see if you get any response for that ? 

Regards,
Anjana

0 Likes
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked
0 Likes