Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. How to change NRF52832's pins P0.00 and P0.01 destinations?

How to change NRF52832's pins P0.00 and P0.01 destinations?

Scheduled Pinned Locked Moved Development
1 Posts 1 Posters 518 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dots123
    wrote on last edited by
    #1

    I have a custom board based on a module based on NRF52832 which have only HF Clock on it. I have made an "error" when I designed the pins destinations, so the P0.00 is now connected as SDA pin and P0.01 as SPI's CLK pin. But I don't want to change them, nor add a 32kHz Clock. So, I 've discovered https://github.com/mysensors/ArduinoHwNRF5 - which is great! I've followed the steps but I still get some notifications (The current selected board needs the core 'sandeepmistry:nRF5' that is not installed.) even if I've installed both correctly. It still compiles, with that error/notification.

    The problem is: I can't change the pins into SDA and CLK!

    I've changed in MyBoardNRF5.h this line #define PIN_SPI_SCK into (0), this line #define PIN_WIRE_SDA into (1u), whitout any success.
    I've changed in MyBoardsNRF5.cpp first lines into
    { PORT0, 0, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER}, // LFCLK
    { PORT0, 1, PIO_DIGITAL, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER}, // LFCLK
    whitout any luck.

    I've noticed that when I measure the pins, these pins are high, no matter what: P0.01, P0.05, P0.29, P0.30.
    These pins fluctuates with low voltage (0.15V - 0.45V): P0.00, P0.06, P0.08, P0.15, P0.18, P021.

    Even if I don't use Softdevice s132, even if I choose in Arduino these:
    pinMode(1, INPUT);
    digitalWrite(1, LOW);
    the result is the same: they remain HIGH or fluctuates (the other pins).

    I've compiled from the beginning with Low Frequency Clock: RC Oscillator.

    But the code - the blink on pin 28 works!

    Can you give me some indications, where I did wrong?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    15

    Online

    11.7k

    Users

    11.2k

    Topics

    113.0k

    Posts


    Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular