2023-11-15 06:41 AM - edited 2023-11-23 12:51 AM
Hello everyone,
I am currently having trouble making a simple UART communication (+ the HCI command-based protocol) between the X-NUCLEO-BNRG2A1 shield embedding a BlueNRG-M2 (which itself embeds a BlueNRG-2) and my Nucleo-G070RB. I cannot use SPI for this.
First, on X-NUCLEO-BNRG2A1 side (BlueNRG-2) :
Then, on NUCLEO-G070RB side (STM32G0xx) :
Finally, I mapped / configured / checked the GPIOs / buses like this:
As a result, BlueNRG-M2SP should be working as BlueNRG-2N: is powered up & grounded correclty, is enabled (resetn = 1) & SEL pin = 1 for UART, has UART TX & RX mapped & receives good HCI commands, but no response and my application commands end all in timeout.
I tried swapping RX & TX just in case, nothing either.
Have I missed something ? Like the DIO 4 & 5 are maybe the ones to use ? The "emulation" FW is not UART HCI protocol compatible ?
I really appreciate any response, I am a bit in a pickle here ... :face_with_rolling_eyes:
Max.Pach
2023-11-22 11:44 PM
UP :thumbs_up:
2023-12-04 11:48 PM
Nevermind, seems to come from the way you flash the BlueNRG board ...
I was using the X-NUCLEO-BNRG2A1 & the STEVAL-IDB008V2. Using the latter, I of course made the HW workarounds to enable external com without having the embedded components in the way.
Using RF Flasher and a bunch of different Example apps (DTM Uart, Beacon, the BlueNRG 2N "emulation"), no response, on both boards.
Using the BlueNRG DK graphical app, I managed to flash through UART the STEVAL-IDB008V2 with a DTM Uart image that now communicates with Both GUI & my FW on external Nucleo-G070RB. Howerver, when I compare the flash with the DTM Uart image using RF Flasher, there are differences.
I am really confused with that. This should not happen. Flashing the device with an example bin from the BlueNRG DK folders through RF Flasher should work. Now I am stuck with the X-NUCLEO-BNRG2A1 not working as there is no way to program it using the BlueNRG DK graphical app.
So what I am missing there ? I will try on Ubuntu using OpenOCD but I fear the same result will happen.
2023-12-04 11:53 PM
I also fear that posts on this community forum are too often un-replied.
I stopped counting un-replied posts that I found looking for different answers around ST µcontrollers ...