cancel
Showing results for 
Search instead for 
Did you mean: 

What MCU part number does the BlueNRG-2 use?

JTorr.1
Associate II

I am trying to build new firmware for the BlueNRG-2 but am not sure how to configure it as a target. I have looked all over in the documentation and it just mentions that the BlueNRG-2 uses a cortex-M0 processor. I'm assuming it is in the STM32F0 family? I figured there would be support for this device in STM32CubeIDE but haven't been able to find anything promising. I apologize if this seems like a stupid question, but if someone could point me in the right direction that would be awesome!

1 ACCEPTED SOLUTION

Accepted Solutions
Winfred LU
ST Employee

The Coretem-M0 in BlueNRG-2 is not one of the STM32F0 MCUs.

Currently STM32CubeIDE does not support BlueNRG-1/2 cores, so please try to start with sample projects in SDK.

https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html

View solution in original post

4 REPLIES 4
Winfred LU
ST Employee

The Coretem-M0 in BlueNRG-2 is not one of the STM32F0 MCUs.

Currently STM32CubeIDE does not support BlueNRG-1/2 cores, so please try to start with sample projects in SDK.

https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html

JTorr.1
Associate II

Hello Winfred! Thank you for your response!

I have been looking at the examples in the SDK, particularly the DTM_SPI source code. I apologize, I thought I saw in the source code that it was configuring the BlueNRG-2 for use with GPIO pins that weren't available on our module, the M2SA. After looking at it again, I realized it is using GPIOs 11,0,2, and 3 which are in fact available; that is my mistake. I should be able to just use the pre-built DTM_SPI.hex file to configure it as a network co-processor.

If you don't mind, just for learning purposes, how would you go about building for the BlueNRG-1/2? Would you use the GNU ARM Embedded Toolchain outside of an IDE, like from a CLI, and configure it for the BlueNRG-1/2? I am inexperienced and have never had to use an embedded toolchain explicitly, outside of an IDE, or make a custom build configuration, but it is something I would like to learn more about in my free time to gain a better understanding of the build process.

Thank you!

MSalv.1
Associate II

Hello!

I have the same problem. Even starting with SDK you linked, STM32Ide request conversion to its version and to select a correct MCU (not listed http://prntscr.com/rxzcqa ). Is it possible? STM32 Ide, as STM32CubeMX, are not compatible with the product BlueNRG M2 ?

I set up I a connection from the module via STLink V2 via pins SWDIO and SWCLK, but still I am able only to view the hex content of the memory (with BlueNrg 1 St Link utility). No one of the tools i was used to use with STM32F0 works.

EDIT: It does not work also with Atollic (screenshot attached).

First step after start debugging https://prnt.sc/ry18lz

After pressing resume, http://prntscr.com/ry19d4

DAuks.1
Associate II

@MSalv.1​ You can use Keil uVision. It is free of charge for m0 MCUs. You just need to add licence for that. https://www2.keil.com/stmicroelectronics-stm32/mdk. It works nicely for me. Ofcourse I am using VSCode for coding and keil uvision cli for building and flashing.