This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART communication using nRH52840

  1. I am a newbee to nrf 52840..I saw lot of documents and got confused on where to start ..indly guide me on this
  2. we are trying nrf52840 dev kit as we are using nrf52840 in our custom board
  3. Let me know how can start for UART communciation using this dev Kit
  4. Kindly let me know the procedures
  5. Also if I plan to use custom board for this..let me know how we can program for incoming BLE msg to be sent via UART..

Kindly let me know

Thanks and regards

Ravi chandran

Parents Reply Children
  • Hi Elfving,

    Any update on how to move on from here...My bash is not opening up here..Kindly let me know.

    regards

    Ravi

  • Hey Ravi,

    I just noticed that you mentioned that the zephyr wasn't installed. Is the zephyr subfolder in your NCS installation not there? If that is the case then it would obviously not find the zephyr root, and there is something wrong with your installation.

    Regards,

    Elfving

  • Hi elfving,

    I am just planning to move to bare metal way of working using nRF52840...just let me know what are all the required files for these..I am trying to install SEGGER embedded studio..once completed I will let you know....

    1.downloaded SDK S113 along with nRF nRF5_SDK_17.0.2_d674dde
    2.inside nRF5_SDK_17.0.2_d674dde \examples\peripheral\UART you have UART example
    3. PCA10056 corresponds to nRF 52840 , there are arm packages..

    Once SEGGER Is installed...can we flash the UART hex file in the hex folder directly.

    what is th flashing tool used here??

    let me know

    thanks

    Ravi

  • Hey again,

    Yes, some of the examples in the nRF5 SDK come with precompiled hex files for various boards. I thought you wanted to use NCS though, but if getting something precompiled is enough for you then go ahead.

    In order to flash the hex file you acctually only need the commandline tools. Open a terminal in the folder with the hex file you need, with the board connected, and run:

    nrfjprog -f NRF52 --program myapp.hex

    For more on this see here.

    sravich1 said:
    I am just planning to move to bare metal way of working using nRF52840

    Well simply flashing pre-made hex files is very bare metal, though if you are planning on using changing and compiling your own versions I would recommend installing NCS. It is actually a pretty bare metal solution.

    As there was something wrong with your previous installation, I would recommend you to  remove this installation completely and try it one more time. An active VPN connection or firewall could possibly block the necessary downloads from GitHub. Additionally, my personal recommendation would be to stick with the default installation path.

    Regards,

    Elfving

  • Hey ,

    thanks for your valuable inputs..as you said I would like to go to NCS..so that in future I thought this would help as we move on with improved versions of BLE.

    But our current requirement as I had mentioned earlier is as follows

    1. nRF52840 BLE chip to run the BLE with UART connected to our custom board STM.

    2. STM sends messages to BLE through UART and from BLE further to some APP.

    3. Also their will be messages from App to BLE to STM

    4.I might have to change the UART pins since our custom board connected to different pins

    For these I thought bare metal is more than enough.

    1. I have now installed SEGGER embedded studio and ran the BLE_peripheral example

    2. I am trying to connect to nRF_UART and check the same whether this would work..Hope!!

    3. Then I need to change for respective UART and try to see if this works.

    Hope My path is correct just let me know

    regards

    Ravi

Related