Author Topic: Changing Default UART Pins while uploading the sketch  (Read 302 times)

cat

  • RFduino Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Changing Default UART Pins while uploading the sketch
« on: October 31, 2017, 05:09:00 AM »
Hi,
Somehow Simblee's GPIO 1 Pin is not working and I am unable to upload my code. Is there a way to change my default UART pins while uploading my code? So that I can bootload with other GPIO pins.

Thanks.

Wayne

  • RFduino Jr. Member
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Changing Default UART Pins while uploading the sketch
« Reply #1 on: October 31, 2017, 07:11:12 AM »
I would not think you can do anything since they are dedicated currently.  You need to get in to swap pins I would guess.

And GPIO 1 is the RXD one..  Tough call.

cat

  • RFduino Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Changing Default UART Pins while uploading the sketch
« Reply #2 on: November 01, 2017, 12:41:42 AM »
Yes, it is tough call if there is hardware constraint. According to my knowledge GPIO 0 is TX Default and GPIO 1 RX Default, but UART is also possible on other GPIO pins. So I guess all I needed to do is to change the Default UART pins when Bootload is happening. I tried to do it in Variant.h, but it didn't work. So the Developers might know if there is hardware constraint or not.

@tolson your help would be appreciated.

tolson

  • Global Moderator
  • *****
  • Posts: 880
  • Karma: +21/-0
    • View Profile
    • Thomas Olson Consulting
Re: Changing Default UART Pins while uploading the sketch
« Reply #3 on: November 01, 2017, 10:45:16 AM »
The bootloader is hardcoded to GPIO 0 and 1. As is the firmware inside the RFduino/Simblee.

Simblee RXD (INPUT) is on GPIO 0 connects to the UART TXD.
Simblee TXD (OUTPUT) is on GPIO 1 connects to the UART RXD.
You can only change the serial port for your application during runtime.
It will always default back to 0,1 on reset.
« Last Edit: November 01, 2017, 11:20:38 AM by tolson »