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
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.
Ah - OK.
So look in the SDK documentaion:
infocenter.nordicsemi.com/.../sdk.html
eg,
Software Development Kit > nRF5 SDK > nRF5 SDK v15.0.0 > Hardware Drivers
Software Development Kit > nRF5 SDK > nRF5 SDK v15.0.0 > Examples > Hardware peripheral examples
Also refer to the device datasheet.
Thanks, but there isn't example for UARTE, just for UART.
I didn't find example code for UARTE with new NRFX_UARTE and I'm lost ...
The "uart" example in the SDK uses UARTE0 (and therefore DMA) by default.
If you are looking for a more direct way of calling nrfx_uarte_init, you could have a look at the small wrapper in nrf_drv_uart.h.
Cheers,
Håkon
Hi Häkon,
Thanks for your answer.
I'm sorry but I'm always lost. We have lots of files (app_uart, nrf_uarte,nrfx_uarte, ...)
I need to be closer to the nRF52832 datasheet to manage all I want.
In this example, how to enable or disable events for uart_error_handle ? I don't want to systematically go into the handler at every byte received, otherwise eDMA is useless ...
Many thanks for your help, I'm not sure I'm very clear.
Best regards,