2025-12-21 8:39 PM
Dear Community Members,
I am trying to control / communicate-with X-NUCLEO-BNRG2A1 via NUCLEO-STM32F411RE.
I am observing two issues for which I request your help:
1. Code works when J15 is open (i.e., pins 1 and 2 are not shorted) on X-NUCLEO-BNRG2A1, but the EXTI interrupt on PA0 of STM32F411RE never triggers in its code. On X-NUCLEO-BNRG2A1 R70, R81, R83, R84, R86, and R87 are DNP / NC. While R76, R82, R85, R88, R116, R74, R75, R79, R80, R77, R119, R71, R117, and R73 are connected.J!0 pins 1 and 2 are shorted. J14 pins 2 and 3 are shorted.
2. Using LightBlue App on mobile. Whatever changes I make to code I do not observe event value 5 on disconnect. I always observe event_pckt->evt reporting value 4. (Using printf) I observe 2 outputs with event value 4 at power on, 3 outputs with events with event value 4 at connect, and (possibly at least) 1 output with event value 4 at disconnect.
In main.c:
/* Initialise HCI */
extern void hci_event_cb(void *pckt);
hci_init(hci_event_cb, NULL);function hci_event_cb() code part
void hci_event_cb(void *pckt)
{
hci_event_pckt *event_pckt = (hci_event_pckt*)pckt;
printf("\r\nEvt %d\r\n", event_pckt->evt);
switch(event_pckt->evt)Please help with fixing both the issues.
Thanks,
Rajeev