Skip to main content
PR.10
Associate III
February 20, 2023
Solved

BlueNRG-M2 Pin assignment has 4 mode options. Can I set them? Can they be combined? Are there only analog inputs?

  • February 20, 2023
  • 2 replies
  • 1089 views

described in table 8 of BlueNRG-M2 datasheet. But there is no description of what the Mode is.

Is it a pin or SW configuration or model type?

0693W00000aHLj1QAG.png

This topic has been closed for replies.
Best answer by Winfred LU

mode 000 = GPIO mode

mode 001 = Serial0 mode

mode 010 = Serial1 mode

mode 101 = Serial2 mode

Those are the operating modes that I/O pins can be configured.

The modes are set in registers GPIO-MODE0 ~ GPIO-MODE3,

at offsets GPIO_BASE_ADDR+0x2C ~ GPIO_BASE_ADDR+0x38

See also BlueNRG-2 datasheet, chapter 3.12 GPIO

https://www.st.com/resource/en/datasheet/bluenrg-2.pdf

2 replies

Winfred LU
Winfred LUBest answer
ST Employee
February 23, 2023

mode 000 = GPIO mode

mode 001 = Serial0 mode

mode 010 = Serial1 mode

mode 101 = Serial2 mode

Those are the operating modes that I/O pins can be configured.

The modes are set in registers GPIO-MODE0 ~ GPIO-MODE3,

at offsets GPIO_BASE_ADDR+0x2C ~ GPIO_BASE_ADDR+0x38

See also BlueNRG-2 datasheet, chapter 3.12 GPIO

https://www.st.com/resource/en/datasheet/bluenrg-2.pdf

PR.10
PR.10Author
Associate III
February 23, 2023

I read there is a pin, but could not find it. This explains it. If I set sections differently it is at least palatially configurable then.Thanks for fast replay.