Is there support for BlueNRG-M2's Cortex M0 processor on CubeMX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-02 12:14 PM
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!
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 2:25 AM
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 8) 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 2:25 AM
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 8) 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
