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
  • Hi,

    Start with our lp-UART example in NCS or UART example in nRF5SDK. Documentation for the peripheral can be found here,

    regards

    Jared 

  • Hi,

    Thanks for your reply.I tried unboxing the Dk kit with pulsating example which was preinstalled ..I was able to control the LED's.after this I copied J-Link OB-SAM3U128-V2-NordicSemi 170724.bin to check for the flashing LED example.

    Now I cannot go back to previous one.

    what I need to know is should I install Segger Embedded studio to run the IDE....I need to know which IDE  I can install so that I can run the examples by flashing.

    IDE where I can code (pre installed code if any), compile and run ..similar to an IDE.Kindly let me know

    Like this if I already have UART example I shall modify the same and flash the hex file.Kindly guide me 

    regards

    Ravi chandran

  • Hi,

    just adding to this..I used termite to check the UART status start....but when I connect and press green light above RTS I still did not see any message now...I wanted to know how I can configure ourselves so that we can have control over the UART code so that we can flash what we intend for.

    our requirement is UART communication from out custom board to Nordic BLE and then receiving from Nordic BLE to custom board through UART.what needs to done to acheive this..kindly guide us.

    regards

    Ravi chandran

  • Hi,

    If you're using nRF5SDK then SES from SEGGER is a good choice for an IDE. See our Getting Started tutorial on Segger on how to get started.

    regards

    Jared

  • Hi jared,

    I tried going to nordicsemi website but the downloads does not give me SDK ..it downloads device downloads...API folder , then some hex file along with PDF..where can I dowload SEGGER embedded studio such that I can use Nrf SDK folder??...I have installed VS installer and Nrf connect..but could not find Segger studio....kindly let me know

    regards

    Ravi

Reply
  • Hi jared,

    I tried going to nordicsemi website but the downloads does not give me SDK ..it downloads device downloads...API folder , then some hex file along with PDF..where can I dowload SEGGER embedded studio such that I can use Nrf SDK folder??...I have installed VS installer and Nrf connect..but could not find Segger studio....kindly let me know

    regards

    Ravi

Children
  • Hi,

    Kindly let me know what combination I should choose S140 with nrfSDK_V17??..if so I am not able to see any Segger IDE getting installed...nor any example files kindly guide me here.

    regards

    Ravi

  • Hello Ravi, sorry about the wait. Its hard to avoid some delay during the holidays.

    As it has been 20 days, I guess I should start off asking if you have already managed to sort this out on your own?

    Otherwise, when starting off you do have the choice between our two SDKs, nRF5 SDK and nRF Connect SDK. On tips on what to choose, see here!

    As you did mention Visual Studio and nRF Connect in your previous replies, I assume that is what you would prefer to use? In that case I would recommend that you look here for a tutorial on how to get started with NCS. And here on how to continue with VS.

    Let me know if there is anything else.

    Best regards,

    Elfving

  • Hi Elfving,

    Thanks for your reply.we are using NRF52840 development kit for our BLE test .

    Our requirement is as follows

    1. we would like to configure the nRF developement board with particular UART so that what ever message comes in will go through the BLE and comes through UART to PC.

    can we use your nRF connect APP to check whether message is passed on??

    How do you configure and choose the UART and  make this work?

    2. Later in our custom board we have used nRF52840 along with STM which is connected via UART,we want messages to go through the UART to BLE and from there to air so that other devices picks this up.

    Thats our final requirement.

    Kindly let us know what are all the steps needs to be followed to acheive using development board.

    do we need to create an hex file to flash..let us know.which are all the necessary IDE required so that we can configure and test the same.

    Kindly guide us .

    Thanks and regards

    Ravi chandran

  • Hi Elfving,

    I would like to add to the above queries that I need BLE to run along with whatever comes as input to BLE should be sent to the STM which is connected via UART and what ever comes to BLE through UART will be sent outside the BLE.It has to be a 22 way communication.

    for this to test how can I enable BLE stack + configure UART and create a hex file and then test as follows

    1.nrfconnect App(send msg)-> connects to nRF 52840 dev board -> reaches UART and then displays in laptop using putty/teraterm/termite

    2. send msg via Putty/teraterm/termite->to  nRF 52840 dev board-> send to nRf connect App

    FIrst I need to create a hex fie for this

    psedo code

    enable BLE

    configure respective UART 2

    if(msg received through UART)

    send to APP

    if(msg received from App)

    send to UART2 to STM

    this is the sort of code we need to build and test.let me know how do we proceed with this.

    what are all the tools ,any IDE where we can configue and run directly let me know

    Thanks and regards

    Ravi chamdram

  • Hello Ravi!

    First of all, have you taken a look at the tutorials? Have you decided on whether you want to use nRF5SDK or NCS? And have you taken a look at the UART example, for instance this?

    Best regards,

    Elfving

Related