Skip to content

NANO arduino_nano_header: connector pin issues. #55

Closed
@KurtE

Description

@KurtE

Describe the bug
As mentioned in the now closed thread:
#45 (comment)

Some of the IO pins on the NANO 33 are not working properly. As @mjs513 mentioned, some of the pins are not working,
Note: I removed from below the ones that actually work:

0 n
1 n
7 n
8 n
10 Just stays high
18 n
19 n
21 n 

I believe most of the issues have to do with the file: arduino_nano_header.dtsi (in zephyr)
Currently:

		gpio-map = <0 0 &gpio1 3 0>,   /* D0 / UART-TX */
			   <1 0 &gpio1 10 0>,  /* D1 / UART-RX */
			   <2 0 &gpio1 11 0>,  /* D2 */
			   <3 0 &gpio1 12 0>,  /* D3 */
			   <4 0 &gpio1 15 0>,  /* D4 */
			   <5 0 &gpio1 13 0>,  /* D5 */
			   <6 0 &gpio1 14 0>,  /* D6 */
			   <7 0 &gpio0 9 0>,   /* D7 */
			   <8 0 &gpio0 10 0>,  /* D8 */
			   <9 0 &gpio0 27 0>,  /* D9 */
			   <10 0 &gpio1 2 0>,  /* D10 */
			   <11 0 &gpio1 1 0>,  /* D11 / SPI-MOSI */
			   <12 0 &gpio1 8 0>,  /* D12 / SPI-MISO */
			   <13 0 &gpio0 13 0>, /* D13 / SPI-SCK */
			   <14 0 &gpio0 4 0>,  /* D14 / A0 */
			   <15 0 &gpio0 5 0>,  /* D15 / A1 */
			   <16 0 &gpio0 30 0>, /* D16 / A2 */
			   <17 0 &gpio0 29 0>, /* D17 / A3 */
			   <18 0 &gpio0 14 0>, /* D18 / A4 / I2C-SDA */
			   <19 0 &gpio0 15 0>, /* D19 / A5 / I2C-SCL */
			   <20 0 &gpio0 28 0>, /* D20 / A6 */
			   <21 0 &gpio1 3 0>;  /* D21 / A7 */

First issue: I believe most of the other connector setups have the first 6 be the A0-A5 not sure if this should be done here?
Second: can/should we just override it within the overlay file for now:

Pins I think need changing: 7, 8, 18, 19, 21

		gpio-map = <0 0 &gpio1 3 0>,   /* D0 / UART-TX */
			   <1 0 &gpio1 10 0>,  /* D1 / UART-RX */
			   <2 0 &gpio1 11 0>,  /* D2 */
			   <3 0 &gpio1 12 0>,  /* D3 */
			   <4 0 &gpio1 15 0>,  /* D4 */
			   <5 0 &gpio1 13 0>,  /* D5 */
			   <6 0 &gpio1 14 0>,  /* D6 */
			   <7 0 &gpio0 23 0>,   /* D7 */
			   <8 0 &gpio0 21 0>,  /* D8 */
			   <9 0 &gpio0 27 0>,  /* D9 */
			   <10 0 &gpio1 2 0>,  /* D10 */
			   <11 0 &gpio1 1 0>,  /* D11 / SPI-MOSI */
			   <12 0 &gpio1 8 0>,  /* D12 / SPI-MISO */
			   <13 0 &gpio0 13 0>, /* D13 / SPI-SCK */
			   <14 0 &gpio0 4 0>,  /* D14 / A0 */
			   <15 0 &gpio0 5 0>,  /* D15 / A1 */
			   <16 0 &gpio0 30 0>, /* D16 / A2 */
			   <17 0 &gpio0 29 0>, /* D17 / A3 */
			   <18 0 &gpio0 31 0>, /* D18 / A4 / I2C-SDA */
			   <19 0 &gpio0 2 0>, /* D19 / A5 / I2C-SCL */
			   <20 0 &gpio0 28 0>, /* D20 / A6 */
			   <21 0 &gpio0 3 0>;  /* D21 / A7 */

Next up to see if I can actually override it within the overlay...

Additional context
Tried with both BLE Sense V2, and a BLE V1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions