Hi,
I'm looking for an example of how NRFX_UARTE works.
I would like to set up a serial port with EasyDMA to send and receive a thirty bytes.
Thanks in advance for your help.
Best regards,
Hi,
I'm looking for an example of how NRFX_UARTE works.
I would like to set up a serial port with EasyDMA to send and receive a thirty bytes.
Thanks in advance for your help.
Best regards,
Do you mean the Nordic UART Service - NUS?
The examples appear under the SDK in the Infocenter; eg,
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/examples_ble.html - Central
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/examples_ble.html - Peripheral
Hi awneil,
Thanks for your answer but I don't want send and receive bytes by BLE, just with serial port.
I need to use UARTE, not BLE Service NUS.
I have :
NRFX_UARTE_ENABLED 0
NRFX_UARTE0_ENABLED 0
NRFX_UART_ENABLED 0
NRFX_UART0_ENABLED 0
UART_ENABLED 1
UART_EASY_DMA_SUPPORT 1
UART_LEGACY_SUPPORT 0
UART0_ENABLED 1
UART0_CONFIG_USE_EASY_DMA 1
NRFX_PRS_ENABLED 1
NRFX_PRS_BOX_4_ENABLED 1
Could you try to remove the nrfx_uarte.c and nrfx_prs.c from your project and see if it works then?
Thank you, it seems to work now. I test it all and come back here to say if everything is ok.
I will not have compatibility problems with future SDKS?
Glad to hear that it works now.
A general rule is that as long as you do not add or use any modules that depends on the UART peripheral, it should be fine. As you're doing a bare-metal implementation, it is _very unlikely_ that the register definitions will ever change for the current device that you are using.
However; I cannot guarantee that a module that you require in the future does not depend on the UART in some way (for logging or similar).
Best regards,
Håkon
Many thanks for your help. I think I can do what I want now.
Ok for the compatibility, I understand.
Many thanks for your help. I think I can do what I want now.
Ok for the compatibility, I understand.