2020-03-25 02:35 PM
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!
Solved! Go to Solution.
2020-03-29 11:57 PM
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.
2020-03-29 11:57 PM
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.
2020-03-30 02:09 PM
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!
2020-04-12 01:01 PM
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
2020-09-16 04:54 AM
@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.