nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs
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 there,

    I'll be handling this case from now. 

    This case has been going back and forth between different problems. Could you now specify exactly what your problem is, and what you need help with? 

    regards

    Jared 

  • Hi jared,

    currently I am using nRF52840 development board connected through UART to our custom board .

    I used nRF connect APP to test the Bluetooth and was successful in sending data.

    1.My question was can we use the same to test using 3rd party App such as Bluetooth terminal??,

    I also used nRF2.0 but was not able to connect..let me know on this.

    2. Also cuurently I am using SEGGER embedded studio where I am running Baremetal code to run the hex file.

    Is there any other flash tool which we can use ??

    3. How do I change the UART speed from 115200 to 9600 ..there is #define should I just use this??

    4. The development board UART was connected to my USB and this worked fine, to connect to our custom board..Do I need to connect to pin number 6 and 8 to UART of the custom board.??also to change pins should I change in pCA10056.h file ???

    Let me know 

    Thanks 

    Ravi

  • Hi Jared,

    1.After testing with ble_app_uart_pca10056_s113.hex(ble_uart_App for Nordic App ) then we connected 6 and 8 pins to STM 32 MCU, we are not seeing any message going to the STM nor coming from STM to nordic.

    The messages are seen before we tap i.e till it reaches the pin..any configuration that needs to be done kindly guide us.

    2.I also tried with examples/peripheral/UART/uart_pca10056.hex for the third party App..I could see only loop back test here..the nRF connect App could not recognise the BLE nor the third party App.Any idea what needs to be done.

    we are more interested to get the integration with STM so that the flow is up in the UART between them.

    let me know

    regards

    Ravi

  • Hi jared,

    I have currently compiled for ble_peripheral/ble_App_UART/pca10056/ble_app_uart_pca10056_s113.hex file in my environment.

    This is along with pin number 6 and 8 which I have integrated to my STM32 environment.

    BLE APP(Nordic App/BLE scanner) sending to --->Nordic chip-> send to STM32---not working at STM

    STM32 sending data--->coming in the UART pins--> into Nordic--->Not seen in the Nordic App ,only seen at USB connected to laptop.

    to receive at Nordic level from STM32 and sending to Nordic App should be do some extra stuff in the example code??...kindly let me know.

    Thanks

    Ravi

  • Hi,

    So you are using a second UART instance which is connected to your STM32. What pins does this second instance use? Is the board still connected to the computer through USB? Some code would definitely help ;)

    regards

    Jared 

  • HI jared,

    I am using the first instance of the code ble_peripheral/ble_App_UART/pca10056/ble_app_uart_pca10056_s113.hex 

    this is the main file from the ble_peripheral/ble_app/uart/

    I have connected to UART  pin number 6 and pin number 8

    BLE APP(Nordic App/BLE scanner) sending to --->Nordic chip-> send to STM32---not working at STM

    STM32 sending data--->coming in the UART pins--> into Nordic--->Not seen in the Nordic App

    yes board is connected laptop using USB.

    is the connection fine with these pins

    first and second instance same pins..do we need different pins??

    Rx and Tx same pins

    Kindy suggest us one instance to check at a time so that we are clear.

    Thanks

    Ravi

  • Hi jared ,

    we would like to know 

    STM32 sending data--->coming in the UART pins--> into Nordic--->Not seen in the Nordic App

    yes board is connected laptop using USB.

    is the connection fine with these pins

    first and second instance same pins..do we need different pins??

    Rx and Tx same pins(Pin no6 and pinno 8 as given in the guide.

    Any pin changes needed let me know.

    I am seeing in the laptop which is connected via USB..should this be removed??

    Kindly let me know.

    regards

    Ravi

Reply
  • Hi jared ,

    we would like to know 

    STM32 sending data--->coming in the UART pins--> into Nordic--->Not seen in the Nordic App

    yes board is connected laptop using USB.

    is the connection fine with these pins

    first and second instance same pins..do we need different pins??

    Rx and Tx same pins(Pin no6 and pinno 8 as given in the guide.

    Any pin changes needed let me know.

    I am seeing in the laptop which is connected via USB..should this be removed??

    Kindly let me know.

    regards

    Ravi

Children
Related