Replies: 1 comment 2 replies
-
Hello, at this time I don't think it is possible to use both uarts, serial1 is only designed to be used if using USB-CDC for logging, thus being the main Serial instance. The uart class in this repo will need to be changed to use uarte0 and 1 to enable this functionality. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I have serious trouble getting Serial1 to work.
I am using nRF52840 (XXAA) board with NimBLE and thus n-able. In platformio. I am able to have Serial to work on pins defined by me, by setting (i #defined the ports to the right ids):
Serial.setPins(P1_13, P0_28);
Serial.begin(115200);
I try to do the same with Serial1, but it will crash on Serial.begin(115200).
I tried to declare Serial1, but cannot figure out how. And I found out that adding some config parameters to platform.ini may be relevant, but it still crashes on Serial.begin(115200). My platform.ini looks like this:
[env:Nim-nrf52840server]
platform = https://github.com/h2zero/platform-n-able.git@^1.0.0
board = nrf52840_dj
framework = arduino
monitor_speed = 115200
upload_protocol = jlink
lib_deps =
h2zero/NimBLE-Arduino@^2.1.0
milesburton/DallasTemperature@^3.11.0
upload_port = COM9
extra_scripts =
pre:build_versioning.py
board_bootloader = adafruit
build_flags =
${env.build_flags}
-DNRF52_SERIES
-DNRF52840_XXAA
-DCONFIG_NIMBLE_CPP_LOG_LEVEL=5
-DCORE_DEBUG_LEVEL=5
Can anyone help me with that Serial1 problem, how do I make that work, or what flags do I need to add?
Many thank for any help, DJ
Beta Was this translation helpful? Give feedback.
All reactions