2020-09-22 08:43 AM
Hi all,
I am using X-NUCLEO-BNRG2A1 + NUCLEO-L476RG as for preliminary test. I've tested the SampleApp example and it works fine.
The final goal is to use the BlueNRG-M2SA in a stm32h753XI custom board + custom antenna. I've tried to generate the SampleApp using cubeMX without success (same issue as descrived below)
By now, I'm trying to use the X-NUCLEO-BNRG2A1 within both, my stm32h753XI custom board and a NUCLEO-H745ZI-Q (this is dual core, but i'm only using the M7-core).
I'm also using the SampleApp example with no success so far.
I configure the necessary EXTI, CS, RESET pins for the SoC as well as the corresponding SPI interface.
I'm always stuck at the same point: performing an hci_reset(); returns me a BLE_STATUS_TIMEOUT on the SPI send command because when doing a CS reset the IRQ pin never gets ready.
/* CS reset */
HAL_GPIO_WritePin(HCI_TL_SPI_CS_PORT, HCI_TL_SPI_CS_PIN, GPIO_PIN_RESET);
/*
* Wait until BlueNRG-2 is ready.
* When ready it will raise the IRQ pin.
*/
while(!IsDataAvailable())
{
if((HAL_GetTick() - tickstart_data_available) > TIMEOUT_DURATION)
{
result = -3;
break;
}
}
if(result == -3)
{
/* The break causes the exiting from the "while", so the CS line must be released */
HAL_GPIO_WritePin(HCI_TL_SPI_CS_PORT, HCI_TL_SPI_CS_PIN, GPIO_PIN_SET);
break;
}
Someone else facing this issue with any board ?
There is a similar question here https://community.st.com/s/question/0D53W0000056SoaSAE/what-changes-need-to-be-made-to-run-the-demo-application-sensordemoblesensorapp-on-acustom-board-with-bluenrgm2sp-
but no one is answering.
Any clue?
Thanks in advance
Solved! Go to Solution.
2020-09-23 12:48 PM
I finally got it working using the X-NUCLEO-BNRG2A1 + STM32H745I-DISCO.
The trick was to use the X-CUBE-BLE2 + SampleApp application example but configuring HCI_TL_INTERFACE as "Template" and doing the pins/ports initialization myself.
2020-09-22 11:22 AM
Hi, I have also the same issue, and I have also asked for it in the community, however nobody answers :downcast_face_with_sweat: . In my case, I am trying to use X-NUCLEO-BNRG2A1 with NUCLEO-G070RB with no success.
2020-09-22 12:15 PM
@brk please have the Product Managers look into support issues
2020-09-22 12:42 PM
True, there should be more support to solve this kind of issues.
Thanks for your comment and suggestion.
2020-09-23 12:48 PM
I finally got it working using the X-NUCLEO-BNRG2A1 + STM32H745I-DISCO.
The trick was to use the X-CUBE-BLE2 + SampleApp application example but configuring HCI_TL_INTERFACE as "Template" and doing the pins/ports initialization myself.
2021-01-17 07:05 PM
@VMach.1 would you mind sharing the code you have used?