This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_uart example with custom uart ISR

while the ble_uart example is a great resource of information, i have a need to completely separate the ble nus data in / out from the hw uart code

using sdk 14.2.0

i was able to put my own queue-ing code in between ble nus and hw uart and manage the data transfer control within main just for test purpose

basically the hw uart will get fed by one part of the application whereas the ble nus communication will come from a completely different part of the app

having said this, why do i need to use the s132 softdevice uart code at all including the s132 isr support for it ... my app uses the hw uart just as a data in / out device and i have already very efficient code for it being used in multiple arm based apps for years

the ble nus data portion would be the way the app communicates to the outside world and code for desktop and android devices is already existing and tested

to clarify this : i need the ble nus portion and it works great so far ... however i want to run my own hw uart code with my own uart rcv and xmt isr functs

what i tried so far was to disable the following in app_config.h

#define UART_ENABLED 0
#define UART0_ENABLED 0

#define APP_UART_ENABLED 0

with the result of a hardfault caused in nrf_sdh.c line 232

ret_code = sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler);

producing an 0x1001 error NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION

what am i missing or what went wrong ???

without any suggestions or assistance i will be completely lost

the whole softdevice and all the supporting code surrounding it are great, but for a, to me simple task, it's impossible to figure out what's wrong and how to proceed

what's the proper way to disable or take out the hw uart portion from the softdevice support and use custom hw uart code with isr support

Parents Reply Children
No Data
Related