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

"integration/nrfx/legacy" directory in SDK 15.0

I am porting software built with SDK 14.2 to SDK 15.0

It looks like some files have been moved from "components/drivers_nrf" to "integration/nrfx/legacy". The first one I've encountered is nrf_drv_clock.c but I see that there are others. 

Have these files/apis/whatever been deprecated? Are there "new" ways to do the things provided in these legacy files? I notice that (for example) many of the examples still use these "legacy" functions...

Any insights would be helpful. 

Parents Reply
  • Yes, it is caused by nordic macro. The issue is that nRF52840 support legacy UART for UART instance 0 (support both UART and UARTE), but not for instance 1 (UARTE only). When you enable lagacy UART support in the legacy UART driver and enable UART1 in the config, it will try to define both UART1 and UARTE1 instance. 

    These configs work fine for me when using UARTE1 with the legacy driver layer:

    The new nrfx driver solve these issues, as there are separate drivers for UART and UARTE.

Children
Related