Skip to main content
VMach.1
Associate II
Sep 22, 2020 3:43 PM UTC
Solved

BlueNRG-M2SP and X-NUCLEO-BNRG2A1 not working on neither NUCLEO-H745ZI-Q nor custom board

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

    This topic has been closed for replies.
    VMach.1
    VMach.1Best answer
    Associate II
    Sep 23, 2020 7:48 PM UTC

    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.

    5 replies

    PFuen.1
    Associate
    Sep 22, 2020 6:22 PM UTC

    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.

    Tesla DeLorean
    Guru
    Sep 22, 2020 7:15 PM UTC

    @brk​ please have the Product Managers look into support issues

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    PFuen.1
    Associate
    Sep 22, 2020 7:42 PM UTC

    True, there should be more support to solve this kind of issues.

    Thanks for your comment and suggestion.

    VMach.1
    VMach.1AuthorBest answer
    Associate II
    Sep 23, 2020 7:48 PM UTC

    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.

    WSart.1
    Associate
    Jan 18, 2021 3:05 AM UTC

    @VMach.1​ would you mind sharing the code you have used?