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

Two UART example for the nRF52833 DK with SDK17.0.2 for Keil uVision

I am looking for an example where I can enable UARTE0 and UARTE1 on the nRF52833 DK.  I am using nRF5_SDK_17.0.2 with Keil uVision V5.  I am successful with the loopback example in examples > peripheral > uart > pca10100, and looking in the forums I understand that I need to use examples > peripheral > libuarte for the two UART configuration.  Could I get some guidance on how to modify the pca10056 example to work for the pca10100, and ultimately modified to enable the second UART port?  Thank you very much.

Parents
  • Hi again

    It's likely just a minor change that is missing somewhere in your ported project file. First, compare the pca10100 UART project file with the pca10056 UART project file and note the differences between the two. Then make the according changes to your libuarte project file, and double check.

    It's important that all instances of pca10056 is changed to pca10100, and all mentions of 52840 is changed to 52833. I also checked with Hung (who suggested this method for SEGGER, and it should not be any difference in the approach on Keil.

    Best regards,

    Simon

Reply
  • Hi again

    It's likely just a minor change that is missing somewhere in your ported project file. First, compare the pca10100 UART project file with the pca10056 UART project file and note the differences between the two. Then make the according changes to your libuarte project file, and double check.

    It's important that all instances of pca10056 is changed to pca10100, and all mentions of 52840 is changed to 52833. I also checked with Hung (who suggested this method for SEGGER, and it should not be any difference in the approach on Keil.

    Best regards,

    Simon

Children
  • Hi Simon,

    Thanks for the input, after rechecking and retrying everything without success, I found that for the program to run on the nRF52833 DK I needed to disconnect/reconnect the USB (or cycle the power) for it to work each time I do a flash download.  Interestingly, I did not need to do this for the other example PCA10100 programs I've tried, and the libuarte example would run on the nRF52 DK board that I also have without a disconnect/reconnect.

    Does requiring a power cycle indicate something is not quite right before I work on modifying the program to enable both UART ports for the nRF52833 DK?

    Thanks,

    Wilbur

Related