cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f407vet6 interface with x-Nucleo-BNRG2A1

Kumar123
Associate II

Hi

Does the X-NUCLEO-BNRG2A1 BLE module support interfacing with the STM32F407VET6 board? Please let me know.

10 REPLIES 10
Andrew Neil
Super User

@Kumar123 wrote:

the STM32F407VET6 board? 


What board?

It depends what you mean by, "support"?

It uses standard interfaces, and the STM32F4 supports them - so it certainly can be done.

If you mean, "is there ready-to-use software" - that's a somewhat different question.

Did you look at the User Manual UM2667, "Getting started with the X-NUCLEO-BNRG2A1 BLE expansion board based on BlueNRG-M2SP module for STM32 Nucleo" ?

It describes the connections ...

via: https://www.st.com/en/ecosystems/x-nucleo-bnrg2a1.html#documentation

You can also get the schematics:

https://www.st.com/en/ecosystems/x-nucleo-bnrg2a1.html#cad-resources 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi Andrew Neil

I am using the STM32F407VET6 board with the X-NUCLEO-BNRG2A1 BLE module. I am not using a standard STM32 Nucleo board. I followed these steps:

  1. Connected the BLE module to the STM32F407VET6 via SPI2.

  2. Connected the BLE wake-up pin to a GPIO pin. Also connected power supply and GND.

  3. Configured an LED output on PE11.

I used the BLE Sensor Demo example and checked using the ST BLE Sensor app, but the BLE device did not appear in the app.

 


@Kumar123 wrote:

I am not using a standard STM32 Nucleo board.


So please show the schematic - see How to write your question to maximize your chances to find a solution 

I would strongly recommend that you do use a Nucleo board at first to get you started.

Then you will have a known-good reference against which to test & debug your custom setup.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi Andrew Neil
It is working fine on the Nucleo-F401RE board, but I am currently testing it on the STM32F407VET6 board.

So compare & contrast the working & non-working setups.

See where it's going wrong.

Fix that.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi Andrew 
Which pins should be connected to the BLE module from the STM32F407VET6 board? I need some suggestions. I followed the steps used for the Nucleo-F401RE board and applied the same process to the F407 board. I have attached zip file. Let me know

https://drive.google.com/drive/folders/1NkXutEi0zW6U0jZdAzKCAYseLwQ57xrY?lfhs=2 

It doesn't matter what specific pins you use - use any which support the required functions (SPI, GPIO, whatever)

Again, you said you've got it working on the Nucleo-F401RE, so use that as your basis to port to the F407 custom board.

Use an oscilloscope to test that you have good signals reaching the required pins.

Use an analyser to test the the right transactions are happening on the SPI.

Step the code in the debugger to see what's happening.

Instrument your code to see what's happening in real time - without stepping.

compare & contrast the working (Nucleo) & non-working (custom) setups.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

@Kumar123 wrote:

I am not using a standard STM32 Nucleo board.


So have you checked that this mystery custom board is actually working at all ?

Can you toggle all the necessary GPIOs ?

Does the SPI work?

etc, etc, ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi Andrew
Yes, all GPIO pins are toggling correctly, and SPI is also working. I have sent a ZIP file — please take a look and let me know.