Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Arduino Nano 33 BLE Extra UART Serial Port #45

Closed
cacodoxy opened this issue Jan 9, 2020 · 3 comments
Closed

Arduino Nano 33 BLE Extra UART Serial Port #45

cacodoxy opened this issue Jan 9, 2020 · 3 comments

Comments

@cacodoxy
Copy link

cacodoxy commented Jan 9, 2020

I am trying to create a second Hardware UART Serial Port on my Arduino NANO33 BLE, but I keep getting the error: no matching function for call to 'arduino::UART::UART(PinName&, PinName&, PinName, PinName)'

I followed your instructions at #38
but to no avail. I am attaching the code I am using as well.

#include "Arduino.h"
#include "wiring_private.h"
#include "HardwareSerial.h"
#include <Serial.h>

void setup() {
UART mySerial(digitalPinToPinName(4), digitalPinToPinName(3), NC, NC);
}

...
When I move the UART outside the setup code, I get the same thing. Please help.

@cacodoxy cacodoxy changed the title Arduino Nano 33 BLE Arduino Nano 33 BLE Extra Serial Port Jan 9, 2020
@cacodoxy cacodoxy changed the title Arduino Nano 33 BLE Extra Serial Port Arduino Nano 33 BLE Extra UART Serial Port Jan 9, 2020
@facchinm
Copy link
Member

Hi @cacodoxy ,
you need to update the core version to 1.1.3 (the signature of UART constructor didn't accept RTS and CTS before, so we added them here 87a622f).
Please reopen if it's not working for you., thanks!

@Technorico
Copy link

Hi, I would like to use a second uart, too.
But when I type "UART" on the Arduino IDE, it isn't recognized by the compilator.
Furthermore I'm not able to find header files named wiring_private.h and Arduino.h.
Thanks in advance for the response.

PS: Sorry for bad English

@facchinm
Copy link
Member

@Technorico make sure you select Nano 33 BLE from boards menu before compiling. This core doesn't provide any wiring_private.h that, hence the name, is private and shouldn't be used for any user facing code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants