cancel
Showing results for 
Search instead for 
Did you mean: 

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

PR.10
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Winfred LU
ST Employee

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

View solution in original post

2 REPLIES 2
Winfred LU
ST Employee

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
Associate III

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.