nRF52840 UARTE nRF52840 UARTE

I planned to use THE UARTE of nRF52840, but I encountered some problems when I added it to the project from the routine of SDK17.0.2. I compared the UARTE and sdk_config.h configurations in the project with those in the routine, but found no problems.

(17): error:  #94: the size of an array must be greater than zero   NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 0, 0, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);

I don't know what the problem is. Now I don't know what to do, you know? tell me thank you !!!

I checked enable in sdk_config.h, but why is it gray in the program? What's the reason?

What's the reason?

  • Hi

    What specific project did you add the UARTE peripheral to? We already have basic peripheral UART and BLE app UART examples in the nRF5 SDK that use the UARTE. I also see that the error code you have added is including mentions of LIBUARTE, and not "regular" UARTE. These are somewhat different, read up on LIBUARTE here, and UARTE here.

    I'm not sure why you've added the Timer peripheral configs as well, but the reason they are grey on one side is that they aren't enabled, you might have enabled them in another build configuration that you have built for, or that you haven't compiled and built the application after setting these configs.

    Best regards,

    Simon

Related