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

    It seems like the RTT viewer code is only starting up here, and not outputting any log information. How have you set up the connection to the J-Link on your end? What target device, target interface, and speed have you set? Also, if you have enabled DEBUG in the preprocessor definitions I would expect some debug messages in addition to the <info> in your log.

    Best regards,

    Simon

Reply
  • Hi

    It seems like the RTT viewer code is only starting up here, and not outputting any log information. How have you set up the connection to the J-Link on your end? What target device, target interface, and speed have you set? Also, if you have enabled DEBUG in the preprocessor definitions I would expect some debug messages in addition to the <info> in your log.

    Best regards,

    Simon

Children
  • Hi Simon,

    My J-Link RTT Viewer V6.88a Configuration settings are as follows:
    Connection to J-Link: USB
    Target Device: NRF52833_XXAA
    Target Interface: SWD
    Speed: 4000kHz
    RTT Control Block: Auto Detection

    DEBUG is in the C/C++ Preprocessor Symbols Define.

    I went ahead and re-extracted SDK17.0.2 to a new directory, verified the \examples\peripheral\uart\pca10100 works, and then modified the \examples\peripheral\libuarte\pca10056 uvprojx file with the following steps to match the uart example:

    1. Device: Selected nRF52833_xxAA
    2. Target: Unchecked IRAM2
    3. C/C++ Preprocessor Symbol Define: Changed to reference the target board/device (APP_TIMER_V2 APP_TIMER_V2_RTC1_ENABLED BOARD_PCA10100 BSP_DEFINES_ONLY CONFIG_GPIO_AS_PINRESET FLOAT_ABI_HARD NRF52833_XXAA __HEAP_SIZE=8192 __STACK_SIZE=8192 DEBUG)

    Again, I still have the same behavior where it will not run unless I reset the device. Can you try this with the PCA10100 board and see if you get the same results?  This is running main.c as-is.

    Second question, could the \examples\peripheral\uart example be modified for two UART ports as well?

    Thanks,
    Wilbur

Related