Hi,
I am adding UART in my peripheral project and getting the following error. Kindly suggest.
Hi,
I am adding UART in my peripheral project and getting the following error. Kindly suggest.
Hi Muqarrab,
Please step in the code of nrf_libuarte_async_init and check which exact function that return the error ?
I saw that in your previous case back in December last year you managed to use libuarte with your app already, so what make this different ?
Actually, it's another project
I have followed the same steps but getting this issue.
Please step into the code and debug.
Error 0 means success so I don't see it as an error.
I am debugging and getting the following error.
Have you tried to step into the code of nrf_libuarte_async_enable() ? We can't help you if you don't try to do any debugging.
You would need to set a breakpoint inside the function and step by step check what causes the assert. The code is not a black box.
Please double check if you have declare the module with NRF_LIBUARTE_ASYNC_DEFINE() and call nrf_libuarte_async_init() prior to nrf_libuarte_async_enable()
Please double check if you have declare the module with NRF_LIBUARTE_ASYNC_DEFINE() and call nrf_libuarte_async_init() prior to nrf_libuarte_async_enable()
Yes, I have checked and all are declared.
Have you tried to step into the code of nrf_libuarte_async_enable() ? We can't help you if you don't try to do any debugging.
Sorry I was stepping into the code but getting an error immediately and not able to get on which line I am getting this error.
I have attached my project can you please check the issue? I am trying but not able to find issue
Hi Muqarrab,
I noticed that you flashed S140 v7.2.0 when you are on SDK v17.0.0.
Could you clarify that you also updated the header files for S140 v7.2.0 instead of the header files for S140v7.0.0 that comes with SDK v17.0.0
Please have a look at this case: Use libuarte together with SoftDevice
It seems that you are using TIMER0 for libuarte . You should not do that because it's used by the softdevice.
I attached the project I modified yours to use TIMER2 and RTC1, it seems to work.
NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 1, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 512, 3);
Hi Muqarrab,
I noticed that you flashed S140 v7.2.0 when you are on SDK v17.0.0.
Could you clarify that you also updated the header files for S140 v7.2.0 instead of the header files for S140v7.0.0 that comes with SDK v17.0.0
Please have a look at this case: Use libuarte together with SoftDevice
It seems that you are using TIMER0 for libuarte . You should not do that because it's used by the softdevice.
I attached the project I modified yours to use TIMER2 and RTC1, it seems to work.
NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 2, 1, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 512, 3);