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.

19 REPLIES 19

@Kumar123 wrote:

I have sent a ZIP file — please take a look and let me know.


Sorry, it's your project - you need to do the investigation.

Debugging is a key part of any development - hardware or software - you can't just throw up your hands, say "it doesn't work", and expect others to fix it for you.

Some tips on debugging:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/706966/highlight/true#M49

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

I doing the debug. I have attached on screen shot. This one only executing. Blnrg2 not show in st ble sensor app.

LOG("BlueNRG-2 SensorDemo_BLESensor-App Application\r\n");

 

Note that you can paste the image into the post - then we can see it in context:

AndrewNeil_0-1749110163105.png

But please don't post code as images - see How to insert source code.

 

So what is this LOG() actually supposed to do?

Is it a UART output?

PS:

Again, you have the working example on the Nucleo for reference - see what it does there ...

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:

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


Nucleo-F401RE board is indeed a board but STM32F407VET6 isn't, it's the microcontroller used on the board.

So what board you are using for that STM32F407VET6 MCU?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@mƎALLEm wrote:

So what board you are using for that STM32F407VET6 MCU?


Indeed.

@Kumar123 again, please post the schematic of this mystery board.

 

Again, see How to write your question to maximize your chances to find a solution 

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, LOG for debugging purpose.
On my STM32F407VET6 board, the RESET pin is connected to GND, and I'm using the SW3 button for reset. I have successfully flashed the code to the board, but the BLE device is not showing up in the ST BLE Sensor app.

 

Please give the full schematic.

 


@Kumar123 wrote:

On my STM32F407VET6 board, the RESET pin is connected to GND, and I'm using the SW3 button for reset. 


That doesn't make sense - connecting Reset (NRST) to ground will hold the processor permanently in reset - so nothing will ever happen

V = 100 pins;

T = LQFP.

So Reset (NRST) is on pin 14:

AndrewNeil_0-1749117704702.png

 

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

Can the NRST pin be used as a GPIO output pin (for Reset) in the .ioc configuration file? It is not showing up.


@Kumar123 wrote:

Can the NRST pin be used as a GPIO output pin.


No - see the datasheet:

AndrewNeil_0-1749124172018.png

https://www.st.com/resource/en/datasheet/stm32f407ve.pdf#page=49

via: https://www.st.com/en/microcontrollers-microprocessors/stm32f407ve.html#documentation

 


@Kumar123 wrote:

in the .ioc configuration file? It is not showing up.


The configuration tools won't offer options which aren't available in the hardware!

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 
I have created the .ioc configuration as shown. Can you confirm whether it supports BLE? The file is attached.ble4.png