cancel
Showing results for 
Search instead for 
Did you mean: 

Is there support for BlueNRG-M2's Cortex M0 processor on CubeMX?

PauloH3
Associate

Hi!

I'm starting a hostless BlueNRG-M2 application (this application runs directly on BlueNRG-M2's Cortex-M0, not on an external MCU).

I was able to find and run the example projects using the "STSW-BLUENRG1-DK" package, but I did not find a way to configure the pins and build a base project using CubeMX.

I was wondering if there is support for this MCU on CubeMX or not. Because right now I'm using the examples to build my own application, and I'm not sure if that's the right approach.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Laurent LOUAZON
ST Employee

Hello,

BlueNRG-M2 is based on BlueNRG-2 SoC.

These are not part of CubeMx.

Now, products are quite simple regarding clocking scheme or GPIO setting.

BlueNRG-M2 datasheet (table 😎 or BlueNRG-2 datasheet (table130) is giving IO possible settings.

Each can be configured as IO or alternate function with serial mode.

This is done in basic h file as you will see in various examples available in BlueNRG-2 SDK.

For example if willing to use DIO11 (module pin11) as SPI_CS (Serial 0 mode 100 from BlueNRg-2 datasheet table 130) we will define it as below

#define GPIO_InitSpiCs1Pin11()   GPIO_Init(&(GPIO_InitType){GPIO_Pin_11, Serial0_Mode, DISABLE, DISABLE});

Regards

Laurent

View solution in original post

1 REPLY 1
Laurent LOUAZON
ST Employee

Hello,

BlueNRG-M2 is based on BlueNRG-2 SoC.

These are not part of CubeMx.

Now, products are quite simple regarding clocking scheme or GPIO setting.

BlueNRG-M2 datasheet (table 😎 or BlueNRG-2 datasheet (table130) is giving IO possible settings.

Each can be configured as IO or alternate function with serial mode.

This is done in basic h file as you will see in various examples available in BlueNRG-2 SDK.

For example if willing to use DIO11 (module pin11) as SPI_CS (Serial 0 mode 100 from BlueNRg-2 datasheet table 130) we will define it as below

#define GPIO_InitSpiCs1Pin11()   GPIO_Init(&(GPIO_InitType){GPIO_Pin_11, Serial0_Mode, DISABLE, DISABLE});

Regards

Laurent