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 Wilbur

    Can you try one more thing. The "standard" project transfer from one board to another, as you might be missing something by comparing the uvprox files. Here are all of the required steps to transfer a project to nRF52833 HW:

    • In the project settings, change to device "NordicSemiconductor->nRF52833_xxaa".
    • Add the preprocessor define "NRF52833_XXAA"
    • In the preprocessor settings, remove the defines "NRF52" and "NRF52840_XXAA".
    • In the linker script settings, adjust the linker script to match the maximum RAM and Flash Memory of the nRF52833.
    • Remove the startup and system files of the current project and add the startup_nrf52833.s and system_nrf52833.c files.

    Best regards,

    Simon

  • Hi Simon,

    Thanks for the detailed steps.  My comments below:

    • In the project settings, change to device "NordicSemiconductor->nRF52833_xxaa".
    • Add the preprocessor define "NRF52833_XXAA"
    • In the preprocessor settings, remove the defines "NRF52" and "NRF52840_XXAA".
    • In the linker script settings, adjust the linker script to match the maximum RAM and Flash Memory of the nRF52833.
    • Remove the startup and system files of the current project and add the startup_nrf52833.s and system_nrf52811.c files.
    • For project settings my device is Nordic Semiconductor nRF52 Series nRF52833_xxaa.
    • My preprocessor defines I have NRF52833_XXAA
    • My preprocessor settings there are no defines for NRF52 and NRF52840_XXAA
    • For Linker, "Use Memory Layout from Target Dialog" is enabled, with R/O Base 0x00000000, R/W Base 0x20000000
    • The files for the project show "arm_startup_nrf52833.s (Startup)" and "system_nrf52833.c (Startup)".  I do not see references to 52811 (I believe you may have a typo) or 52840.

    Would you be able to try this with a PCA10100 on your side to see if you get different results?

    Thanks,

    Wilbur

Reply
  • Hi Simon,

    Thanks for the detailed steps.  My comments below:

    • In the project settings, change to device "NordicSemiconductor->nRF52833_xxaa".
    • Add the preprocessor define "NRF52833_XXAA"
    • In the preprocessor settings, remove the defines "NRF52" and "NRF52840_XXAA".
    • In the linker script settings, adjust the linker script to match the maximum RAM and Flash Memory of the nRF52833.
    • Remove the startup and system files of the current project and add the startup_nrf52833.s and system_nrf52811.c files.
    • For project settings my device is Nordic Semiconductor nRF52 Series nRF52833_xxaa.
    • My preprocessor defines I have NRF52833_XXAA
    • My preprocessor settings there are no defines for NRF52 and NRF52840_XXAA
    • For Linker, "Use Memory Layout from Target Dialog" is enabled, with R/O Base 0x00000000, R/W Base 0x20000000
    • The files for the project show "arm_startup_nrf52833.s (Startup)" and "system_nrf52833.c (Startup)".  I do not see references to 52811 (I believe you may have a typo) or 52840.

    Would you be able to try this with a PCA10100 on your side to see if you get different results?

    Thanks,

    Wilbur

Children
No Data
Related